diff options
author | Alan Modra <amodra@gmail.com> | 2017-05-18 14:28:17 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2017-05-18 14:28:17 +0930 |
commit | 087ea22225435ab5800e6c29671acab40dc6ca82 (patch) | |
tree | 9b8ee7c7e8a54fff14e5d91b5b2863bdb4ce9bd9 /ld/testsuite/ld-gc/pr20882.d | |
parent | a406db9163e45ab55c3addff2ce1e61796f1bddc (diff) | |
download | gdb-087ea22225435ab5800e6c29671acab40dc6ca82.zip gdb-087ea22225435ab5800e6c29671acab40dc6ca82.tar.gz gdb-087ea22225435ab5800e6c29671acab40dc6ca82.tar.bz2 |
pr20882 testcase
-gdwarf-sections doesn't work on targets that lack support to emit
address size relative relocs. The testcase as it was avoided
-gdwarf-sections doing anything by providing a non-empty .debug_line.
It's better to not use -gdwarf-sections. Also, the testcase failed
to match the output for 16-bit address targets like avr.
PR ld/20882
* testsuite/ld-gc/pr20882.d: Don't pass -gdwarf-sections to gas.
Allow for 16-bit address targets and match expected data fully.
* testsuite/ld-gc/pr20882a.s: Delete .debug_line section.
* testsuite/ld-gc/pr20882b.s: Likewise.
* testsuite/ld-gc/pr20882c.s: Likewise.
Diffstat (limited to 'ld/testsuite/ld-gc/pr20882.d')
-rw-r--r-- | ld/testsuite/ld-gc/pr20882.d | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ld/testsuite/ld-gc/pr20882.d b/ld/testsuite/ld-gc/pr20882.d index 55fa141..dd388c5 100644 --- a/ld/testsuite/ld-gc/pr20882.d +++ b/ld/testsuite/ld-gc/pr20882.d @@ -2,9 +2,8 @@ #source: pr20882a.s #source: pr20882b.s #source: pr20882c.s -#as: -gdwarf-sections #ld: --gc-sections -e main #readelf: -x .debug_info #... - +0x0+ [0-9a-f ]+ 28 +.+\( + 0x0+ (0a000000 00000000 |00000000 0000000a |06000000 |00000006 |0400|0004)28 .* |