Red Hat Bugzilla – Bug 241252
Add .debug_pubtypes and .debug_ranges to builtin ld linker script
Last modified: 2012-02-27 03:40:51 EST
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):
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
.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).
When using --unique, these sections are not treated as orphans and are merged
into the a single section in the output.
Upstream ml post:
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
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.