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

Simon Atanasyan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 19 14:29:48 PDT 2017


atanasyan added a comment.

In https://reviews.llvm.org/D21292#814984, @Jerryxia32 wrote:

> Able to compile and run non-PIC n32 binaries for my project. However, lld still crashes when linking PIC n32 object files. I think the fixup_Mips_GPOFF_HI/LO in the ELF writer should also have demux logic to differentiate between n64 and n32, otherwise the 3-in-1 relocation entry may be written to n32 and crashes lld.


How do you create the n32 object file and run LLD? I would like to reproduce the crash.


https://reviews.llvm.org/D21292





More information about the llvm-commits mailing list