Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 797750

Summary: Add .debug_pubtypes and .debug_ranges to builtin ld linker script
Product: Red Hat Enterprise Linux 7 Reporter: Michal Nowak <mnowak>
Component: binutilsAssignee: Nick Clifton <nickc>
Status: CLOSED NOTABUG QA Contact: qe-baseos-tools-bugs
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: law, mnowak, ohudlick
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 241252 Environment:
Last Closed: 2012-03-15 14:58:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 241252    
Bug Blocks:    

Comment 2 Michal Nowak 2012-03-14 14:02:05 UTC
Ping?

Comment 3 Jeff Law 2012-03-14 17:08:31 UTC
This looks like a testsuite bug to me.

AFAICT the problem is the test doesn't account for the possibility that the debug_range sections have relocations:

      if [ `readelf -WS [xy].o | grep debug_ranges | wc -l` -eq 2 ]; then
          if [ `readelf -WS x | grep debug_ranges | wc -l` -eq 1 ]; then
            export RESULT=PASS
          fi
        fi


Note the -eq 2.  We're expecting precisely two hits when grepping for debug_ranges, but we actually get 3 because y.o has relocs in that section:

[law@stumpy 241252]$ readelf -WS y.o | grep debug_range
  [13] .debug_ranges     PROGBITS        0000000000000000 000b39 000030 00      0   0  1
  [15] .debug_ranges     PROGBITS        0000000000000000 000bbc 000060 00      0   0  1
  [16] .rela.debug_ranges RELA            0000000000000000 002878 0000c0 18     25  15  8



You might filter out the REL/RELA sections or require PROGBITS.  Only the first test should be changed, the second test is operating on an executable and thus shouldn't have relocs against the debug_ranges section.

Comment 4 Michal Nowak 2012-03-15 14:58:44 UTC
Thanks. Fixed the test.