binutils-gdb/ld/testsuite/ld-pe/exclude-symbols-embedded-x86_64.s
Martin Storsjö 37513c1efb ld: Add support for a new option, -exclude-symbols, in COFF object file directives
This maps to the same as ld's --exclude-symbols command line option,
but allowing specifying the option via directives embedded in the
object files instead of passed manually on the command line.
2022-08-01 23:17:56 +03:00

16 lines
211 B
ArmAsm

.global sym1
.global sym2
.global sym3
.global sym4
.global sym5
sym1:
sym2:
sym3:
sym4:
sym5:
ret
.section .drectve,"yn"
.ascii " -exclude-symbols:sym2,unknownsym"
.ascii " -exclude-symbols:unknownsym,sym4"