question: i386 ld.gold reports "internal error" linking files with SHT_RELA section
Tue Aug 30 14:38:42 GMT 2022
Building SeaMonkey on i686 results:
"/usr/bin/ld.gold: internal error in relocate_section, at ../../gold/i386.cc:3683"
gold_assert(sh_type == elfcpp::SHT_REL);
AFAIK i386 normally use SHT_REL and x86_64 normally use SHT_RELA. But
we've found that nasm-2.15.05 generates SHT_RELA for i386 as well.
So should SHT_RELA be allowed for i386 at all? If "yes" we should fix
it for gold, if "no" we should fix it for nasm.
Xi Ruoyao <firstname.lastname@example.org>
School of Aerospace Science and Technology, Xidian University
More information about the Binutils