[Fedora-packaging] dont strip comments.
Matt Sellers
indigoblu at gmail.com
Tue Nov 17 15:01:31 UTC 2009
Hi Everybody,
I am trying to build a package that does not strip comments from the
binary.
example ( working ) :
readelf -p .comment /usr/lib64/libnss_dns.so
String dump of section '.comment':
[ 1] GCC: (GNU) 4.3.2 20081105 (Red Hat 4.3.2-7)
[ 2e] GCC: (GNU) 4.3.2 20081105 (Red Hat 4.3.2-7)
[ 5b] GCC: (GNU) 4.3.2 20081105 (Red Hat 4.3.2-7)
[ 88] GCC: (GNU) 4.3.2 20081105 (Red Hat 4.3.2-7)
[ b5] GCC: (GNU) 4.3.2 20081105 (Red Hat 4.3.2-7)
[ e2] GCC: (GNU) 4.3.2 20081105 (Red Hat 4.3.2-7)
[ 10f] GCC: (GNU) 4.3.2 20081105 (Red Hat 4.3.2-7)
[ 13c] GCC: (GNU) 4.3.2 20081105 (Red Hat 4.3.2-7)
The binaries that I build with rpmbuild see to be stripped:
readelf -p .comment /usr/local/lib64/testlib.so
readelf: Warning: Section '.comment' was not dumped because it does not
exist!
I can see that the comments are there before the binary is stripped for
packing. My goal is to have a package stripped of debug symbols but keep
the .comment section intact.
This seems to be performed by the script in /usr/lib/rpm/find-debug.sh using
"eu-strip", and while hacking this script is easy, I would like to enable
this functionality in a more sane fashion if possible.
Any and all suggestions greatly appreciated!
Thank You,
Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-packaging/attachments/20091117/25988650/attachment.htm>
More information about the Fedora-packaging
mailing list