1 #source: startv1.s 2 #source: funref.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 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. 11 12 Relocation section .* contains 1 entries: 13 .* 14 .* R_PPC64_ADDR64 +0+ my_func \+ 0 15 16 Symbol table '\.dynsym' contains 5 entries: 17 .* 18 0: .* 19 1: 0+00000000 0 FUNC GLOBAL DEFAULT UND my_func 20 2: 0+10010390 0 NOTYPE GLOBAL DEFAULT 11 __bss_start 21 3: 0+10010390 0 NOTYPE GLOBAL DEFAULT 11 _edata 22 4: 0+10010390 0 NOTYPE GLOBAL DEFAULT 11 _end 23 24 Symbol table '\.symtab' contains 19 entries: 25 Num: Value Size Type Bind Vis Ndx Name 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+10010268 0 SECTION LOCAL DEFAULT 8 35 9: 0+10010368 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+10010268 0 OBJECT LOCAL DEFAULT 8 _DYNAMIC 39 13: 0+10010368 0 NOTYPE GLOBAL DEFAULT 9 func_tab 40 14: 0+00000000 0 FUNC GLOBAL DEFAULT UND my_func 41 15: 0+10010370 0 FUNC GLOBAL DEFAULT 10 _start 42 16: 0+10010390 0 NOTYPE GLOBAL DEFAULT 11 __bss_start 43 17: 0+10010390 0 NOTYPE GLOBAL DEFAULT 11 _edata 44 18: 0+10010390 0 NOTYPE GLOBAL DEFAULT 11 _end 45