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:
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.