Bug 81644
Summary: | /usr/bin/strip generates garbage from valid ELF executables | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | John Reiser <jreiser> | ||||||||||
Component: | binutils | Assignee: | Jakub Jelinek <jakub> | ||||||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | |||||||||||
Severity: | medium | Docs Contact: | |||||||||||
Priority: | medium | ||||||||||||
Version: | 8.0 | CC: | jjackson, mitr | ||||||||||
Target Milestone: | --- | ||||||||||||
Target Release: | --- | ||||||||||||
Hardware: | i386 | ||||||||||||
OS: | Linux | ||||||||||||
Whiteboard: | |||||||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||||||
Doc Text: | Story Points: | --- | |||||||||||
Clone Of: | Environment: | ||||||||||||
Last Closed: | 2004-10-07 13:40:47 UTC | Type: | --- | ||||||||||
Regression: | --- | Mount Type: | --- | ||||||||||
Documentation: | --- | CRM: | |||||||||||
Verified Versions: | Category: | --- | |||||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||||
Embargoed: | |||||||||||||
Attachments: |
|
Description
John Reiser
2003-01-12 01:48:11 UTC
Created attachment 89309 [details] ELF executable with empty "linking view" /bin/date compressed by UPX (http://upx.sourceforge.net) Created attachment 89310 [details]
result of stripping date.upx.no_shdr
92-bytes of headers, and nothing else; 'strip' gutted the file
Created attachment 89311 [details]
ELF executable with non-empty, compatible, linking view
Output from a test version of UPX that supplies a linking view for compressed
output executables.
Created attachment 89312 [details]
result of stripping date.upx.shdr
The second PT_LOAD has been scrambled: p_align changed from 0x1000 to 4;
p_offset changed to inhibit mmap().
Why would 'strip' be applied to output from UPX? rpmbuild does it by default when building a binary package .rpm, and it's not obvious how to turn it off. *** Bug 76780 has been marked as a duplicate of this bug. *** binutils-2.15.91.0.2-8 issues warnings: strip date.upx.no_shdr BFD: date.upx.no_shdr: warning: Empty loadable segment detected, is this intentional ? BFD: date.upx.no_shdr: warning: Empty loadable segment detected, is this intentional ? strip: there are no sections to be copied! but doesn't change the binary. |