binutils-gdb/ld/testsuite/ld-elf/note1_2.s
Nick Clifton 864bb26cb3 Stop generating GNU build notes for linkonce sections.
gas	* write.c (maybe_generate_build_notes): Generate notes on a
	per-code-section basis.  Skip linkonce sections.

ld	* testsuite/ld-elf/notes.exp: New file: Run new test.
	* testsuite/ld-elf/note1_1.s: New file: Source file for test.
	* testsuite/ld-elf/note1_2.s: New file: Source file for test.
	* testsuite/ld-elf/note1.r: New file: Expected readelf output.
2018-05-14 15:32:43 +01:00

18 lines
273 B
ArmAsm

.section .gnu.linkonce.t.thunk.ax,"ax",%progbits
.globl thunk.ax
.hidden thunk.ax
.p2align 4
.type thunk.ax,%function
thunk.ax:
.dc.l 0
.size thunk.ax, . - thunk.ax
.p2align 4
.globl bar
.type bar,%function
bar:
.dc.a thunk.ax
.dc.l 0
.size bar, . - bar