ld: Add support for a new option, -exclude-symbols, in COFF object file directives
authorMartin Storsjö <martin@martin.st>
Tue, 19 Jul 2022 19:48:06 +0000 (22:48 +0300)
committerMartin Storsjö <martin@martin.st>
Mon, 1 Aug 2022 20:17:56 +0000 (23:17 +0300)
commit37513c1efbe5e8e1863f8ddf078cd395aa663388
tree75bb5a657dc86a8e22cc6d08e6da8962089833b8
parent75337cbc1476b7eb403fe0e73c52bf080b5996c8
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.
ld/deffile.h
ld/deffilep.y
ld/pe-dll.c
ld/testsuite/ld-pe/exclude-symbols-embedded-i386.d [new file with mode: 0644]
ld/testsuite/ld-pe/exclude-symbols-embedded-i386.s [new file with mode: 0644]
ld/testsuite/ld-pe/exclude-symbols-embedded-x86_64.d [new file with mode: 0644]
ld/testsuite/ld-pe/exclude-symbols-embedded-x86_64.s [new file with mode: 0644]
ld/testsuite/ld-pe/pe.exp