diff options
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 7 | ||||
-rw-r--r-- | ld/testsuite/ld-gc/pr20882.d | 9 | ||||
-rw-r--r-- | ld/testsuite/ld-gc/pr20882b.s | 9 |
3 files changed, 21 insertions, 4 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index a750599..e74f722 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,5 +1,12 @@ 2018-03-14 H.J. Lu <hongjiu.lu@intel.com> + PR ld/20882 + * testsuite/ld-gc/pr20882.d: Also dump and check .debug_abbrev + section. + * testsuite/ld-gc/pr20882b.s: Add .debug_abbrev section. + +2018-03-14 H.J. Lu <hongjiu.lu@intel.com> + * testsuite/ld-gc/gc.exp: Fix a typo: $LFLAGS -> $LDFLAGS. 2018-03-13 Nick Clifton <nickc@redhat.com> diff --git a/ld/testsuite/ld-gc/pr20882.d b/ld/testsuite/ld-gc/pr20882.d index dd388c5..1d68d05 100644 --- a/ld/testsuite/ld-gc/pr20882.d +++ b/ld/testsuite/ld-gc/pr20882.d @@ -3,7 +3,10 @@ #source: pr20882b.s #source: pr20882c.s #ld: --gc-sections -e main -#readelf: -x .debug_info +#readelf: -x .debug_info -x .debug_abbrev -#... - 0x0+ (0a000000 00000000 |00000000 0000000a |06000000 |00000006 |0400|0004)28 .* +Hex dump of section '\.debug_info': + 0x0+ .* + +Hex dump of section '\.debug_abbrev': + 0x0+ 61626364 +abcd diff --git a/ld/testsuite/ld-gc/pr20882b.s b/ld/testsuite/ld-gc/pr20882b.s index ea0cf2e..baabf55 100644 --- a/ld/testsuite/ld-gc/pr20882b.s +++ b/ld/testsuite/ld-gc/pr20882b.s @@ -2,4 +2,11 @@ .hidden t.c.4903c230 .globl t.c.4903c230 t.c.4903c230: - .byte 0x28 + .dc.a .Ldebug_abbrev0 + + .section .debug_abbrev,"",%progbits +.Ldebug_abbrev0: + .byte 0x61 + .byte 0x62 + .byte 0x63 + .byte 0x64 |