public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Nick Clifton <nickc@redhat.com>
To: Jan Beulich <JBeulich@novell.com>
Cc: binutils@sources.redhat.com
Subject: Re: stripping symbols needed for relocations
Date: Wed, 13 Oct 2004 15:57:00 -0000	[thread overview]
Message-ID: <416D51A7.5000108@redhat.com> (raw)
In-Reply-To: <s16a810c.000@emea1-mh.id2.novell.com>

Hi Jan,

> Wouldn't it make sense to prevent doing such (except when --strip-all)
> in the first place (binutils/objcopy.c, filter_symbols) rather than
> generating an error message (bfd/elf.c,
> _bfd_elf_symbol_from_bfd_symbol)? Or are there specific uses of doing so
> that would not result in such an error?

I think that the only case where it would not matter is if the 
relocation is in a section which is going to be discarded.  So to answer 
your first question, yes I think that filter_symbols() should try to 
preserve reloc-used symbols unless --strip-all or --strip-symbol is in 
effect.  Note that the code does already try to do this by looking for 
the BSF_KEEP flag.

Cheers
   Nick


  reply	other threads:[~2004-10-13 15:57 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-11 11:48 Jan Beulich
2004-10-13 15:57 ` Nick Clifton [this message]
2004-10-14  8:15 Jan Beulich
     [not found] <s16e439a.026@emea1-mh.id2.novell.com>
2004-10-18 14:19 ` Nick Clifton
2004-12-15 15:51 Jan Beulich
2004-12-16 12:07 ` Nick Clifton
2004-12-16 13:18 Jan Beulich
2004-12-16 14:20 ` Dave Korn
2004-12-16 15:48 ` Nick Clifton

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=416D51A7.5000108@redhat.com \
    --to=nickc@redhat.com \
    --cc=JBeulich@novell.com \
    --cc=binutils@sources.redhat.com \
    /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).