1 #source: gc-start.s 2 #source: gc-relocs-309.s 3 #source: gc-relocs-311.s 4 #source: gc-relocs-312.s 5 #ld: --gc-sections -T aarch64.ld 6 #objdump: -s -t -d 7 8 # Executable with got related relocs against global sysmbol gced. 9 # After gc-section removal we are cheking that symbol does not exit 10 # got section is empty and text section contains only start function. 11 12 .*: file format elf64-(little|big)aarch64 13 14 SYMBOL TABLE: 15 0+8000 l d \.text 0+ \.text 16 0+9000 l d \.got 0+ \.got 17 0+0000 l df \*ABS\* 0+ .* 18 0+0000 l df \*ABS\* 0+ 19 0+9000 l O \.got 0+ _GLOBAL_OFFSET_TABLE_ 20 0+8000 g \.text 0+ _start 21 22 Contents of section .text: 23 8000 1f2003d5 .* 24 Contents of section .got: 25 9000 0+ 0+ 0+ 0+ .* 26 9010 0+ 0+ 0+ 0+ .* 27 28 Disassembly of section .text: 29 30 0+8000 \<_start>: 31 8000: d503201f nop 32 33