Commit | Line | Data |
---|---|---|
f6c7c3e8 AM |
1 | #source: startv2.s |
2 | #source: funref.s | |
3 | #as: -a64 | |
d1eca1e4 | 4 | #ld: -melf64ppc --emit-stub-syms |
f6c7c3e8 | 5 | #ld_after_inputfiles: tmpdir/funv2.so |
d1eca1e4 AM |
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. | |
f6c7c3e8 | 12 | |
d1eca1e4 AM |
13 | Relocation section .* contains 1 entries: |
14 | .* | |
15 | .* R_PPC64_ADDR64 .* my_func \+ 0 | |
16 | ||
17 | Relocation section .* contains 1 entries: | |
f6c7c3e8 AM |
18 | .* |
19 | .* R_PPC64_JMP_SLOT .* my_func \+ 0 | |
d1eca1e4 AM |
20 | |
21 | Symbol table '\.dynsym' contains 5 entries: | |
22 | .* | |
23 | 0: .* | |
24 | 1: 0+00000000 0 FUNC GLOBAL DEFAULT UND my_func | |
23283c1b | 25 | #... |
d1eca1e4 AM |
26 | |
27 | Symbol table '\.symtab' contains 21 entries: | |
23283c1b | 28 | #... |
d1eca1e4 | 29 | 16: 0+00000000 0 FUNC GLOBAL DEFAULT UND my_func |
23283c1b | 30 | #pass |