Bug 7076 - strip segfaults on static executable linked with -Wl,-z,relro
Summary: strip segfaults on static executable linked with -Wl,-z,relro
Status: RESOLVED WORKSFORME
Alias: None
Product: binutils
Classification: Unclassified
Component: binutils (show other bugs)
Version: 2.19
: P2 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-07 20:44 UTC by Mark Seaborn
Modified: 2008-12-17 18:00 UTC (History)
1 user (show)

See Also:
Host: x86_64-linux-gnu
Target: x86_64-linux-gnu
Build: x86_64-linux-gnu
Last reconfirmed:


Attachments
Static ELF executable that strip segfaults on (2.64 KB, application/octet-stream)
2008-12-07 20:47 UTC, Mark Seaborn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Seaborn 2008-12-07 20:44:23 UTC
strip segfaults on a static x86-64 executable produced by compiling and linking
against dietlibc on Ubuntu intrepid.  The details of how I produced the
executable are here:
<https://bugs.launchpad.net/ubuntu/+source/dietlibc/+bug/254790>.  The
executable is linked with -Wl,-z,relro.

I couldn't find a test case that reproduces this without linking against
dietlibc, so I will attach the executable.  The executable contains a RELRO
segment which I suspect is not correct.  However, ideally strip should not segfault.
Comment 1 Mark Seaborn 2008-12-07 20:47:10 UTC
Created attachment 3096 [details]
Static ELF executable that strip segfaults on
Comment 2 Mark Seaborn 2008-12-12 15:57:25 UTC
Probably a duplicate of Bug 7011.
Comment 3 H.J. Lu 2008-12-17 18:00:17 UTC
It works for me on trunk as of 20081210.