864bb26cb3
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.
18 lines
273 B
ArmAsm
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
|