1 #source: startv2.s
2 #source: funref.s
3 #as: -a64
4 #ld: -melf64ppc --emit-stub-syms
5 #ld_after_inputfiles: tmpdir/funv2.so
6 #readelf: -rs --wide
7 # Check that we do the right thing with funref.s that doesn't have
8 # anything to mark it as ELFv1 or ELFv2.  We should get a dynamic
9 # reloc on the function address, not have a global entry stub, and
10 # my_func should be undefined dynamic with value zero.
11 # FIXME someday: No need for a plt entry.
12 
13 Relocation section .* contains 1 entries:
14 .*
15 .* R_PPC64_ADDR64 .* my_func \+ 0
16 
17 Relocation section .* contains 1 entries:
18 .*
19 .* R_PPC64_JMP_SLOT .* my_func \+ 0
20 
21 Symbol table '\.dynsym' contains 5 entries:
22 .*
23      0: .*
24      1: 0+00000000     0 FUNC    GLOBAL DEFAULT  UND my_func
25 #...
26 
27 Symbol table '\.symtab' contains 21 entries:
28 #...
29     16: 0+00000000     0 FUNC    GLOBAL DEFAULT  UND my_func
30 #pass
31