diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2016-04-20 11:15:05 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2016-04-20 11:15:14 -0700 |
commit | c7ce9410351ea64fb4c250ceb6ed796090ae49d9 (patch) | |
tree | 3f1ee40021e44e298cdaa11eff2252ee9b61ebff /ld/testsuite | |
parent | 03f2309aa27e955b75634fc066b5d15d67e05321 (diff) | |
download | gdb-c7ce9410351ea64fb4c250ceb6ed796090ae49d9.zip gdb-c7ce9410351ea64fb4c250ceb6ed796090ae49d9.tar.gz gdb-c7ce9410351ea64fb4c250ceb6ed796090ae49d9.tar.bz2 |
Check R_386_NONE/R_X86_64_NONE in eh6.d
There is no need for run-time relocation when converting pointers
in .eh_frame section to DW_EH_PE_pcrel encoding. R_386_NONE and
R_X86_64_NONE are expected since the space for run-time relocation
has been allocated. This is an optimization.
PR ld/19972
* testsuite/ld-elf/eh6.d: Pass -rW to readelf and check for
R_386_NONE or R_X86_64_NONE.
Diffstat (limited to 'ld/testsuite')
-rw-r--r-- | ld/testsuite/ld-elf/eh6.d | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ld/testsuite/ld-elf/eh6.d b/ld/testsuite/ld-elf/eh6.d index 7812af2..475b2a7 100644 --- a/ld/testsuite/ld-elf/eh6.d +++ b/ld/testsuite/ld-elf/eh6.d @@ -1,8 +1,11 @@ #source: eh6.s #ld: --gc-sections -shared -#readelf: -wf +#readelf: -wf -rW #target: x86_64-*-linux-gnu* i?86-*-linux-gnu i?86-*-gnu* +#... +[0-9a-f]+ +[0-9a-f]+ +R_.*_NONE *0? +#... Contents of the .eh_frame section: 0+0000 0+001[4c] 0+0000 CIE |