2013-11-25 11:07:07 +00: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-10 22:02:05 +00:00
|
|
|
[0-9a-f]+ .*
|
2013-11-25 11:07:07 +00:00
|
|
|
Contents of section .got.plt:
|
2013-12-10 22:02:05 +00:00
|
|
|
[0-9a-f]+ 0+ 0+ 0+ 0+ .*
|
|
|
|
(103b8|10408) 0+ 0+ [0-9a-f]+ [0-9a-f]+ .*
|
2013-11-25 11:07:07 +00:00
|
|
|
|
|
|
|
Disassembly of section .text:
|
|
|
|
|
2013-12-10 22:02:05 +00:00
|
|
|
.* <ifunc>:
|
|
|
|
.*: d65f03c0 ret
|
2013-11-25 11:07:07 +00:00
|
|
|
|
2013-12-10 22:02:05 +00:00
|
|
|
.* <bar>:
|
|
|
|
.*: 90000080 adrp x0, 10000 <.*>
|
|
|
|
.*: .* ldr x0, \[x0,#(960|1040)\]
|
|
|
|
.*: d65f03c0 ret
|
2013-11-25 11:07:07 +00:00
|
|
|
|
2013-12-10 22:02:05 +00:00
|
|
|
#pass
|