public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* question: i386 ld.gold reports "internal error" linking files with SHT_RELA section
@ 2022-08-30 14:38 Xi Ruoyao
  2022-08-30 18:21 ` H.J. Lu
  0 siblings, 1 reply; 8+ messages in thread
From: Xi Ruoyao @ 2022-08-30 14:38 UTC (permalink / raw)
  To: binutils; +Cc: Pierre Labastie

Building SeaMonkey on i686 results:

    "/usr/bin/ld.gold: internal error in relocate_section, at ../../gold/i386.cc:3683"

i386.cc:3683 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 <xry111@xry111.site>
School of Aerospace Science and Technology, Xidian University

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-09-01 16:35 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-30 14:38 question: i386 ld.gold reports "internal error" linking files with SHT_RELA section Xi Ruoyao
2022-08-30 18:21 ` H.J. Lu
2022-08-30 18:53   ` Pierre Labastie
2022-08-30 20:36     ` H.J. Lu
2022-08-31  4:43       ` Xi Ruoyao
2022-08-31 19:20         ` H.J. Lu
2022-09-01  0:47           ` Xi Ruoyao
2022-09-01 16:34             ` H.J. Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).