Commit | Line | Data |
---|---|---|
f6c7c3e8 AM |
1 | #source: startv1.s |
2 | #source: funref.s | |
3 | #as: -a64 | |
d1eca1e4 | 4 | #ld: -melf64ppc --emit-stub-syms |
f6c7c3e8 | 5 | #ld_after_inputfiles: tmpdir/funv1.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, and my_func should be undefined | |
10 | # dynamic with value zero. | |
f6c7c3e8 | 11 | |
d3a49aa8 | 12 | Relocation section .* contains 1 entry: |
f6c7c3e8 AM |
13 | .* |
14 | .* R_PPC64_ADDR64 +0+ my_func \+ 0 | |
d1eca1e4 | 15 | |
fd161d86 | 16 | Symbol table '\.dynsym' contains 2 entries: |
d1eca1e4 AM |
17 | .* |
18 | 0: .* | |
19 | 1: 0+00000000 0 FUNC GLOBAL DEFAULT UND my_func | |
23283c1b | 20 | #... |
bab55c05 | 21 | Symbol table '\.symtab' contains .* entries: |
23283c1b | 22 | #... |
bab55c05 | 23 | .*: 0+00000000 0 FUNC GLOBAL DEFAULT UND my_func |
23283c1b | 24 | #pass |