question: i386 reports "internal error" linking files with SHT_RELA section

Xi Ruoyao
Tue Aug 30 14:38:42 GMT 2022

Building SeaMonkey on i686 results:

    "/usr/bin/ internal error in relocate_section, at ../../gold/" is:

    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 <>
School of Aerospace Science and Technology, Xidian University

More information about the Binutils mailing list