[patch rfa] add --no-export-dynamic option to ld (for parity with gold)
Chris Demetriou
cgd@google.com
Wed Apr 29 07:41:00 GMT 2009
gold supports the --no-export-dynamic option to undo the effect of
--export-dynamic. This patch adds a similar flag to ld.
I realize that the testsuite change is ... umm, cheap? but it wasn't
obvious to me a better place to test this change, the test I enhanced
already tests with and without --export-dynamic, and it seems likely
that anybody releasing a new binutils is likely to test ELF support
first, so if the option magically breaks this test will be good enough
to catch it. 8-)
built on i686-linux, tested with no failures. (I did some manual
tweaking to make sure that the test failed if the option had no
effect, too.)
chris
---
[ld/ChangeLog]
2009-04-29 Chris Demetriou <cgd@google.com>
* lexsup.c (option_values): Add OPTION_NO_EXPORT_DYNAMIC.
(ld_options): Likewise.
(parse_args): Likewise.
* ld.texinfo: Document --no-export-dynamic.
* NEWS: Mention --no-export-dynamic.
[ld/testsuite/ChangeLog]
2009-04-29 Chris Demetriou <cgd@google.com>
* ld-elfvers/vers.exp (vers4b): New test to verify that
--no-export-dynamic undoes --export-dynamic.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ld-no-export-dynamic.patch
Type: application/octet-stream
Size: 4551 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20090429/06cd0870/attachment.obj>
More information about the Binutils
mailing list