From: Robert Jarzmik <robert.jarzmik@free.fr>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: gdb@sourceware.org, robert.jarzmik@intel.com
Subject: Re: Gdb, PIE and scan_dyntag(DT_DEBUG)
Date: Tue, 01 Apr 2014 21:00:00 -0000 [thread overview]
Message-ID: <8738hwvk8e.fsf@free.fr> (raw)
In-Reply-To: <20140401064803.GA31557@host2.jankratochvil.net> (Jan Kratochvil's message of "Tue, 1 Apr 2014 08:48:03 +0200")
Jan Kratochvil <jan.kratochvil@redhat.com> writes:
> On Tue, 01 Apr 2014 00:56:59 +0200, Robert Jarzmik wrote:
>> To be more precise, the ELF program headers of the unstripped binary and the
>> stripped binary didn't match,
>
> In general eu-strip (from elfutils; compared to binutils strip) is more
> preserving the binaries when they still should match each other.
> And Fedora is using eu-strip for the debug info packages separation.
> IIRC I have seen some other distro using regular strip for it.
And you're damn right about it. I checked the Program Headers:
Type Offset VirtAddr PhysAddr
FileSiz MemSiz Flags Align
*** unstripped app_process ***
[Requesting program interpreter: /system/bin/linker64]
LOAD 0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000001788 0x0000000000001788 R E 1000
LOAD 0x0000000000001c20 0x0000000000002c20 0x0000000000002c20
0x00000000000003e0 0x00000000000003e8 RW 1000
*** binutils strip passed app_process ***
[Requesting program interpreter: /system/bin/linker64]
LOAD 0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000001788 0x0000000000001788 R E 1000
LOAD 0x0000000000001c20 0x0000000000002c20 0x0000000000002c20
0x00000000000003d8 0x00000000000003e8 RW 1000
*** elfutils eu-strip passed app_process ***
[Requesting program interpreter: /system/bin/linker64]
LOAD 0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000001788 0x0000000000001788 R E 1000
LOAD 0x0000000000001c20 0x0000000000002c20 0x0000000000002c20
0x00000000000003e0 0x00000000000003e8 RW 1000
So eu-strip makes my day :)
Thanks for the info, I didn't know there was a difference in strip between
binutils and elfutils.
Cheers.
--
Robert
prev parent reply other threads:[~2014-04-01 21:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-25 20:43 Robert Jarzmik
2014-03-31 18:47 ` Jan Kratochvil
2014-03-31 22:57 ` Robert Jarzmik
2014-04-01 6:48 ` Jan Kratochvil
2014-04-01 21:00 ` Robert Jarzmik [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=8738hwvk8e.fsf@free.fr \
--to=robert.jarzmik@free.fr \
--cc=gdb@sourceware.org \
--cc=jan.kratochvil@redhat.com \
--cc=robert.jarzmik@intel.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