question: i386 ld.gold reports "internal error" linking files with SHT_RELA section
H.J. Lu
hjl.tools@gmail.com
Thu Sep 1 16:34:46 GMT 2022
On Wed, Aug 31, 2022 at 5:47 PM Xi Ruoyao <xry111@xry111.site> wrote:
>
> On Wed, 2022-08-31 at 12:20 -0700, H.J. Lu wrote:
>
> > It just works with ld.bfd by accident. A linker, like gold, can disallow RELA
> > relocation. A linker, like lld, can use addend in RELA relocation and addend
> > at the relocation offset is ignored.
>
> Thanks, we've reported the issue to NASM:
> https://bugzilla.nasm.us/show_bug.cgi?id=3392807
>
I created a pull request:
https://github.com/netwide-assembler/nasm/pull/37
to fix this issue.
--
H.J.
More information about the Binutils
mailing list