Description of problem: .debug_pubtypes is a section defined in the DWARF debugging information standard version 3 and resides in elf an section; however, this is missing from the internal linker script. As a result, it is affected by "ld --unique". Version-Release number of selected component (if applicable): binutils-2.17.50.0.6-2.el5 How reproducible: 100% Steps to Reproduce: 1. Create input objects having several .debug_pubtypes or .debug_ranges sections 2. Link the objects using ld --unique 3. Check the resulting object with readelf Actual results: .debug_pubtypes or .debug_ranges sections are treated as orphans and are not merged in the output (a separate output section is emitted for each .debug_pubtypes or .debug_ranges section in the input). Expected results: When using --unique, these sections are not treated as orphans and are merged into the a single section in the output. Additional info: Upstream ml post: http://sourceware.org/ml/binutils/2007-05/msg00029.html Upstream commit: http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/scripttempl/elf.sc.diff?r1=1.79&r2=1.80&cvsroot=src
Created attachment 155363 [details] patch adding .debug_pubtypes and .debug_ranges to elf.sc
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release.
Red Hat Product Management and Engineering have evaluated this request and currently plan to include it in the next Red Hat Enterprise Linux minor release. Please note that its inclusion depends upon the successful completion of code integration and testing.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2007-0397.html