public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Nick Clifton <nickc@redhat.com>
To: Alan Modra <amodra@gmail.com>
Cc: binutils@sourceware.org, mjw@fedoraproject.org, amulhern@redhat.com
Subject: Re: RFC: Can static executables contain relocations against symbols ?
Date: Thu, 30 Mar 2023 09:57:42 +0100	[thread overview]
Message-ID: <af5d7ec8-833d-4775-a436-7c7bf482f2d0@redhat.com> (raw)
In-Reply-To: <ZCUWI4bx6XJd8+Na@squeak.grove.modra.org>

Hi Alan,

>> Anyway, does the following fix the particular problem you are seeing?

I am not sure - I will have to investigate.  Reproducing the original
problem is difficult because it involves using the Rust compiler on
a non-x86_64 platform, so it may take me a while.

> I'm going to commit the patch even if it doesn't fix your problem
> since that 1995 comment from commit ede4eed48386 needs fixing, and
> it's wrong to use a non-alloc symtab with an alloc reloc section as
> others have commented.

That is a good point.  Thanks for creating a better patch.

Cheers
   Nick



  reply	other threads:[~2023-03-30  8:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-29 14:39 Nick Clifton
2023-03-29 15:47 ` Mark Wielaard
2023-03-29 16:00 ` Michael Matz
2023-03-30  1:22 ` Alan Modra
2023-03-30  4:54   ` Alan Modra
2023-03-30  8:57     ` Nick Clifton [this message]
2023-03-30  9:12       ` Alan Modra

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=af5d7ec8-833d-4775-a436-7c7bf482f2d0@redhat.com \
    --to=nickc@redhat.com \
    --cc=amodra@gmail.com \
    --cc=amulhern@redhat.com \
    --cc=binutils@sourceware.org \
    --cc=mjw@fedoraproject.org \
    /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).