From: "H.J. Lu" <hjl.tools@gmail.com>
To: Xi Ruoyao <xry111@xry111.site>
Cc: Pierre Labastie <pierre.labastie@neuf.fr>,
Binutils <binutils@sourceware.org>
Subject: Re: question: i386 ld.gold reports "internal error" linking files with SHT_RELA section
Date: Thu, 1 Sep 2022 09:34:46 -0700 [thread overview]
Message-ID: <CAMe9rOosnBxD+-uyp+qXU4ZWBvzieCzu0aJhoS5w5C3wMbZM0Q@mail.gmail.com> (raw)
In-Reply-To: <cd8beec78d23762a5e736e31f1fcc60ebbd520a2.camel@xry111.site>
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.
prev parent reply other threads:[~2022-09-01 16:35 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-30 14:38 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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAMe9rOosnBxD+-uyp+qXU4ZWBvzieCzu0aJhoS5w5C3wMbZM0Q@mail.gmail.com \
--to=hjl.tools@gmail.com \
--cc=binutils@sourceware.org \
--cc=pierre.labastie@neuf.fr \
--cc=xry111@xry111.site \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).