public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Adam Megacz <adam@megacz.com>
To: binutils@sources.redhat.com
Subject: behavior of "strip -N"
Date: Tue, 29 Jan 2002 10:29:00 -0000	[thread overview]
Message-ID: <86sn8pt4xk.fsf@megacz.com> (raw)


Hi,

I've noticed that when I strip a global symbol using strip -N and then
link with --noinhibit-exec, the locations where that symbol's address
would have been written get a 0x0 instead.

However, when I strip a file-local symbol, those locations seem to get
written with the address of the start of the section they fall in.

Is there any way to get the first behavior (0x0) when stripping
file-local symbols?

Context: I'm writing a post-compile, pre-link processor for
applications compiled with gcj (the GNU java-to-native-code static
compiler). The processor does high-level reachability analysis and
prunes unreachable methods and classes. There are some cases where I
need a 0x0 to be written into the code where the address of a deleted
method/class would have formerly lived. No, I can't integrate this
into the compiler.

  - a

             reply	other threads:[~2002-01-29 18:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-29 10:29 Adam Megacz [this message]
2002-01-29 16:41 ` behavior of "strip -N" [[ added an example ]] Adam Megacz
2002-01-29 23:09 ` behavior of "strip -N" Ian Lance Taylor
2002-01-30 21:52   ` Adam Megacz
2002-01-31 22:08     ` Ian Lance Taylor

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=86sn8pt4xk.fsf@megacz.com \
    --to=adam@megacz.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).