From: Nick Clifton <nickc@redhat.com>
To: Elena Zannoni <ezannoni@redhat.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: RFC: strip --strip-nondebug
Date: Fri, 06 Jun 2003 14:32:00 -0000 [thread overview]
Message-ID: <m38ysf5lf4.fsf@redhat.com> (raw)
In-Reply-To: <16096.38018.961095.469616@localhost.redhat.com> (Elena Zannoni's message of "Fri, 6 Jun 2003 09:17:54 -0400")
Hi Elena,
> > What is this section and how is it supposed to get into the stripped
> > executable ?
>
> The strip utility does it.
Ah - I was afraid of that. You see what I had hoped was that the GNU
strip program would only ever have to produce *one* output file at a
time. So you could use one command to strip an executable and a
second command to create a debug-info file for that executable, rather
than trying to do both things at once. (Which would mean a lot more
changes to the internals of strip, something I was trying to avoid).
If "--only-keep-debug" (my suggested new name for the --strip-nondebug
switch) has to produce a debug-info file *and* a stripped executable
with an extra .gnu_debuglink section in it, then it gets rather
complicated...
Of course we could have a five stage process:
1. strip --strip-debug foo.exe -o foo.exe.stripped
2. strip --only-keep-debug foo.exe -o foo.dbg
4. echo foo.dbg > debug_link
3. objcopy --add-section .gnu_debuglink=debug_link foo.stripped
5. rm debug_link
I'll give it a go and see what happens.
> BTW, I find it a bit silly that a non-gnu utility decided to use the
> .gnu_debuglink name. Maybe you should call it somethign different,
> and gdb can look for both names?
I have no problem with the name. In fact I am very happy to keep
calling it .gnu_debuglink. This assumes of course that there is some
documentation as to the exact format of the contents of this
section...
Cheers
Nick
next prev parent reply other threads:[~2003-06-06 14:32 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-05 15:57 Nick Clifton
2003-06-05 16:06 ` Ian Lance Taylor
2003-06-05 16:24 ` Daniel Jacobowitz
2003-06-05 16:14 ` Andrew Cagney
2003-06-05 16:24 ` Elena Zannoni
2003-06-05 17:08 ` Nick Clifton
2003-06-05 19:19 ` Elena Zannoni
2003-06-06 11:17 ` Nick Clifton
2003-06-06 13:11 ` Elena Zannoni
2003-06-06 14:32 ` Nick Clifton [this message]
2003-06-06 14:51 ` Nick Clifton
2003-06-06 21:34 ` Andrew Cagney
2003-06-07 10:39 ` Nick Clifton
2003-06-07 15:37 ` Andrew Cagney
2003-06-05 18:29 ` Michael Snyder
2003-06-05 18:48 ` Daniel Jacobowitz
2003-06-05 19:06 ` Michael Snyder
2003-06-05 19:13 ` Elena Zannoni
2003-06-05 19:47 ` Nick Clifton
2003-06-05 19:54 ` Kris Warkentin
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=m38ysf5lf4.fsf@redhat.com \
--to=nickc@redhat.com \
--cc=ezannoni@redhat.com \
--cc=gdb-patches@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