Taking an undefined function's address in an executable
[deliverable/binutils-gdb.git] / ld / testsuite / ld-powerpc / ambiguousv1b.d
1 #source: startv1.s
2 #source: funref2.s
3 #as: -a64
4 #ld: -melf64ppc --emit-stub-syms
5 #ld_after_inputfiles: tmpdir/funv1.so
6 #readelf: -rs --wide
7 # Check that we do the right thing with funref2.s that doesn't have
8 # anything to mark it as ELFv1 or ELFv2. Since my_func address is
9 # taken in a read-only section we should get a copy reloc for the OPD
10 # entry.
11
12 Relocation section .* contains 1 entries:
13 .*
14 .* R_PPC64_COPY .* my_func \+ 0
15
16 Symbol table '\.dynsym' contains 5 entries:
17 .*
18 0: .*
19 1: 0+10010390 4 FUNC GLOBAL DEFAULT 12 my_func
20 2: 0+10010390 0 NOTYPE GLOBAL DEFAULT 12 __bss_start
21 3: 0+10010390 0 NOTYPE GLOBAL DEFAULT 11 _edata
22 4: 0+10010398 0 NOTYPE GLOBAL DEFAULT 12 _end
23
24 Symbol table '\.symtab' contains 20 entries:
25 .*
26 0: .*
27 1: 0+10000158 0 SECTION LOCAL DEFAULT 1
28 2: 0+10000170 0 SECTION LOCAL DEFAULT 2
29 3: 0+10000198 0 SECTION LOCAL DEFAULT 3
30 4: 0+10000210 0 SECTION LOCAL DEFAULT 4
31 5: 0+10000248 0 SECTION LOCAL DEFAULT 5
32 6: 0+10000260 0 SECTION LOCAL DEFAULT 6
33 7: 0+10000264 0 SECTION LOCAL DEFAULT 7
34 8: 0+1000026c 0 SECTION LOCAL DEFAULT 8
35 9: 0+10010270 0 SECTION LOCAL DEFAULT 9
36 10: 0+10010370 0 SECTION LOCAL DEFAULT 10
37 11: 0+10010388 0 SECTION LOCAL DEFAULT 11
38 12: 0+10010390 0 SECTION LOCAL DEFAULT 12
39 13: 0+10010270 0 OBJECT LOCAL DEFAULT 9 _DYNAMIC
40 14: 0+10000264 0 NOTYPE GLOBAL DEFAULT 7 func_tab
41 15: 0+10010390 4 FUNC GLOBAL DEFAULT 12 my_func
42 16: 0+10010370 0 FUNC GLOBAL DEFAULT 10 _start
43 17: 0+10010390 0 NOTYPE GLOBAL DEFAULT 12 __bss_start
44 18: 0+10010390 0 NOTYPE GLOBAL DEFAULT 11 _edata
45 19: 0+10010398 0 NOTYPE GLOBAL DEFAULT 12 _end
This page took 0.03033 seconds and 4 git commands to generate.