Bug 797750 - 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 NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: binutils
Version: 7.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Nick Clifton
QA Contact: qe-baseos-tools-bugs
URL:
Whiteboard:
Depends On: 241252
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-27 08:40 UTC by Michal Nowak
Modified: 2013-03-08 02:13 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 241252
Environment:
Last Closed: 2012-03-15 14:58:44 UTC
Target Upstream Version:


Attachments (Terms of Use)

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.


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