Bug 7076

Summary: strip segfaults on static executable linked with -Wl,-z,relro
Product: binutils Reporter: Mark Seaborn <mrs>
Component: binutilsAssignee: unassigned
Status: RESOLVED WORKSFORME    
Severity: normal CC: bug-binutils
Priority: P2    
Version: 2.19   
Target Milestone: ---   
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

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.