mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
c7ce941035
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.
21 lines
427 B
Makefile
21 lines
427 B
Makefile
#source: eh6.s
|
|
#ld: --gc-sections -shared
|
|
#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
|
|
Version: 1
|
|
Augmentation: "zPR"
|
|
Code alignment factor: 1
|
|
Data alignment factor: .*
|
|
Return address column: .*
|
|
Augmentation data: 9[bc] .* 1b
|
|
|
|
DW_CFA_nop
|
|
#pass
|