binutils-gdb/ld/testsuite/ld-pe/exclude-symbols-embedded-i386.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
221 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"