aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-riscv-elf/ifunc-seperate-plt-pic.d
blob: 9efa244f04402672265f76790f949e0ee0a76faa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#name: Link shared ifunc resolver with PLT caller (pic)
#source: ifunc-seperate-caller-plt.s
#as:
#ld: -z nocombreloc -shared tmpdir/ifunc-seperate-resolver.so
#readelf: -rW

Relocation section '.rela.data' at .*
[ ]+Offset[ ]+Info[ ]+Type[ ]+.*
[0-9a-f]+[ 	]+[0-9a-f]+[ 	]+R_RISCV_(32|64)[ 	]+[0-9a-f]+[ 	]+foo \+ 0
#...
Relocation section '.rela.got' at .*
[ ]+Offset[ ]+Info[ ]+Type[ ]+.*
[0-9a-f]+[ 	]+[0-9a-f]+[ 	]+R_RISCV_(32|64)[ 	]+[0-9a-f]+[ 	]+foo \+ 0
#...
Relocation section '.rela.plt' at .*
[ ]+Offset[ ]+Info[ ]+Type[ ]+.*
[0-9a-f]+[ 	]+[0-9a-f]+[ 	]+R_RISCV_JUMP_SLOT[ 	]+[0-9a-f]+[ 	]+foo \+ 0