[PATCH] Fix PR6744 (--export-dynamic not supported on PE)
Dave Korn
dave.korn.cygwin@googlemail.com
Thu Apr 2 03:36:00 GMT 2009
Hi all,
As suggested in PR6744, it would be helpful to make clearer that
--export-dynamic is not the way to get all your symbols exported from a shared
object on PE targets. The attached patch enhances the documentation for
--export-dynamic to refer readers to --export-all-symbols, and updates the PE
and PE+ emulations to issue a warning if --export-dynamic is given on the
command-line, as suggested there.
Tested on i686-pc-cygwin, natively and crossed to i686-pc-mingw32 and
x86_64-pc-mingw32 with no regressions, and eyeballed the info pages to ensure
the docs built right.
I'll follow up with a testcase shortly. Ok for HEAD?
ld/ChangeLog
* ld.texinfo (--export-dynamic): Mention --export-all-symbols.
* emultempl/pe.em (gld_${EMULATION_NAME}_after_parse): Issue
warning if --export-dynamic was passed on command-line.
* emultempl/pep.em (gld_${EMULATION_NAME}_after_parse): Likewise.
cheers,
DaveK
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pr6744.diff
URL: <https://sourceware.org/pipermail/binutils/attachments/20090402/9d8f1405/attachment.ksh>
More information about the Binutils
mailing list