Hi Everybody,<br><br>I am trying to build a package that does not strip comments from the binary.  <br><br>example ( working ) : <br><br>readelf -p .comment /usr/lib64/libnss_dns.so <br><br>String dump of section '.comment':<br>
  [     1]  GCC: (GNU) 4.3.2 20081105 (Red Hat 4.3.2-7)<br>  [    2e]  GCC: (GNU) 4.3.2 20081105 (Red Hat 4.3.2-7)<br>  [    5b]  GCC: (GNU) 4.3.2 20081105 (Red Hat 4.3.2-7)<br>  [    88]  GCC: (GNU) 4.3.2 20081105 (Red Hat 4.3.2-7)<br>
  [    b5]  GCC: (GNU) 4.3.2 20081105 (Red Hat 4.3.2-7)<br>  [    e2]  GCC: (GNU) 4.3.2 20081105 (Red Hat 4.3.2-7)<br>  [   10f]  GCC: (GNU) 4.3.2 20081105 (Red Hat 4.3.2-7)<br>  [   13c]  GCC: (GNU) 4.3.2 20081105 (Red Hat 4.3.2-7) <br>
<br><br>The binaries that I build with rpmbuild see to be stripped:<br><br>readelf -p .comment /usr/local/lib64/testlib.so<br>readelf: Warning: Section '.comment' was not dumped because it does not exist!<br><br><br>
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. <br><br>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.<br>
<br>Any and all suggestions greatly appreciated!<br><br>Thank You,<br>Matt<br><br><br><br><br><br><br><br><br><br><br><br><br><br>