Bug 729 - sstrip creates corrupted headers
Summary: sstrip creates corrupted headers
Status: RESOLVED FIXED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2009.11
Hardware: Other Linux
: P5 normal
Target Milestone: 2010.05
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-18 20:12 UTC by Mike Z
Modified: 2010-07-13 18:22 UTC (History)
2 users (show)

See Also:
Host: x86_64-linux
Target: MIPS/MIPSel
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Z 2009-11-18 20:12:58 UTC
Although only a static file is shown, results are the same for dynamic objects.

Having selected sstrip:
mszick@deb2core:/Builds/BLDRT/buildroot$ ls -l output/target/sbin/pkgdetails
-rwxr-xr-x 1 mszick mszick 42199 2009-11-18 12:41 output/target/sbin/pkgdetails

mszick@deb2core:/Builds/BLDRT/buildroot$ file output/target/sbin/pkgdetails
output/target/sbin/pkgdetails: ELF 32-bit LSB executable, MIPS, MIPS32 rel2 version 1 (SYSV), statically linked, corrupted section header size

Having selected strip:
mszick@deb2core:/Builds/BLDRT/buildroot/output/target/sbin$ ls -l pkgdetails
-rwxr-xr-x 1 mszick mszick 46992 2009-11-18 13:38 pkgdetails

mszick@deb2core:/Builds/BLDRT/buildroot/output/target/sbin$ file pkgdetails
pkgdetails: ELF 32-bit LSB executable, MIPS, MIPS32 rel2 version 1 (SYSV), statically linked, with unknown capability 0xf41 = 0x756e6700, stripped
Comment 1 Thomas Petazzoni 2010-02-21 19:03:53 UTC
Does the resulting file runs properly on the target or not ?

I'm not sure what sstrip does compared to strip, but it might be that sstrip strips things that confuse tools such as "file" while still allowing the program to run properly.
Comment 2 Thomas Petazzoni 2010-07-13 18:22:34 UTC
Quite likely fixed by http://git.buildroot.net/buildroot/commit/?id=c0e307b848d8de23e6f10a179c4f240c023c8b82