2013-11-25 19:07:07 +08:00
|
|
|
#source: ifunc-21.s
|
|
|
|
#ld: -shared -z nocombreloc
|
|
|
|
#objdump: -d -s -j .got.plt -j .text
|
|
|
|
#target: aarch64*-*-*
|
|
|
|
|
|
|
|
# Ensure the .got.plt slot used is correct
|
|
|
|
|
|
|
|
.*: file format elf64-(little|big)aarch64
|
|
|
|
|
|
|
|
Contents of section .text:
|
2013-12-11 06:02:05 +08:00
|
|
|
[0-9a-f]+ .*
|
2013-11-25 19:07:07 +08:00
|
|
|
Contents of section .got.plt:
|
2013-12-11 06:02:05 +08:00
|
|
|
[0-9a-f]+ 0+ 0+ 0+ 0+ .*
|
|
|
|
(103b8|10408) 0+ 0+ [0-9a-f]+ [0-9a-f]+ .*
|
2013-11-25 19:07:07 +08:00
|
|
|
|
|
|
|
Disassembly of section .text:
|
|
|
|
|
2013-12-11 06:02:05 +08:00
|
|
|
.* <ifunc>:
|
|
|
|
.*: d65f03c0 ret
|
2013-11-25 19:07:07 +08:00
|
|
|
|
2013-12-11 06:02:05 +08:00
|
|
|
.* <bar>:
|
|
|
|
.*: 90000080 adrp x0, 10000 <.*>
|
2016-09-22 00:11:52 +08:00
|
|
|
.*: .* ldr x0, \[x0, #(960|1040)\]
|
2013-12-11 06:02:05 +08:00
|
|
|
.*: d65f03c0 ret
|
2013-11-25 19:07:07 +08:00
|
|
|
|
2013-12-11 06:02:05 +08:00
|
|
|
#pass
|