mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 14:39:09 +08:00
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.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
PR ld/19972
|
||||||
|
* testsuite/ld-elf/eh6.d: Pass -rW to readelf and check for
|
||||||
|
R_386_NONE or R_X86_64_NONE.
|
||||||
|
|
||||||
2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
|
2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* testsuite/ld-x86-64/pic1.d: New file.
|
* testsuite/ld-x86-64/pic1.d: New file.
|
||||||
|
@ -1,8 +1,11 @@
|
|||||||
#source: eh6.s
|
#source: eh6.s
|
||||||
#ld: --gc-sections -shared
|
#ld: --gc-sections -shared
|
||||||
#readelf: -wf
|
#readelf: -wf -rW
|
||||||
#target: x86_64-*-linux-gnu* i?86-*-linux-gnu i?86-*-gnu*
|
#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:
|
Contents of the .eh_frame section:
|
||||||
|
|
||||||
0+0000 0+001[4c] 0+0000 CIE
|
0+0000 0+001[4c] 0+0000 CIE
|
||||||
|
Reference in New Issue
Block a user