Bug 241252 - Add .debug_pubtypes and .debug_ranges to builtin ld linker script
Summary: Add .debug_pubtypes and .debug_ranges to builtin ld linker script
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: binutils
Version: 5.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Jakub Jelinek
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 797750
TreeView+ depends on / blocked
 
Reported: 2007-05-24 16:34 UTC by Bryn M. Reeves
Modified: 2018-10-19 23:24 UTC (History)
1 user (show)

Fixed In Version: RHBA-2007-0397
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 797750 (view as bug list)
Environment:
Last Closed: 2007-11-07 16:57:05 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
patch adding .debug_pubtypes and .debug_ranges to elf.sc (573 bytes, patch)
2007-05-24 16:34 UTC, Bryn M. Reeves
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2007:0397 0 normal SHIPPED_LIVE binutils bug fix update 2007-10-30 15:24:42 UTC

Description Bryn M. Reeves 2007-05-24 16:34:48 UTC
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

Comment 1 Bryn M. Reeves 2007-05-24 16:34:49 UTC
Created attachment 155363 [details]
patch adding .debug_pubtypes and .debug_ranges to elf.sc

Comment 3 RHEL Program Management 2007-05-24 16:43:49 UTC
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.

Comment 7 Marizol Martinez 2007-06-08 19:55:08 UTC
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.

Comment 13 errata-xmlrpc 2007-11-07 16:57:05 UTC
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



Note You need to log in before you can comment on or make changes to this bug.