[PATCH] D21292: [mips] Correct ELF format for N32.

Hongyan Xia via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 21 02:51:55 PDT 2017


Jerryxia32 added a comment.

After compiling the above test code with gcc, it seems mips gcc under n32 PIC keeps the 3-in-1 relocation "R_MIPS_GPREL16/R_MIPS_SUB/R_MIPS_LO16" in $gp function prologues, whereas clang n32 PIC does not write 3-in-1 relocation records and keeps only the "R_MIPS_GPREL16". It will then trigger the ld "out of range" error.


https://reviews.llvm.org/D21292





More information about the llvm-commits mailing list