Excude whole libs when building w32 dlls with -export-all [Refresh]
Danny Smith
danny_r_smith_2001@yahoo.co.nz
Mon May 20 15:50:00 GMT 2002
The previous post had incorrect subject heading. This is a repost. Sorry.
This is a refresh of:
http://sources.redhat.com/ml/binutils/2002-04/msg00472.html
The patch allows exclusion of symbols in specified libs (optionally all
libs) from export table when producing dll's using ld --shared.
Listing of symbol names in a .def file forces those specific symbols
to be included even if they are contained in excluded libs.
Can this be reviewed?
The diff updated to current CVS is attached.
2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
* emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
(longopts): Add new option --exclude-libs.
(gld_${EMULATION_NAME}_list_options): Give quick help about it.
(gld_${EMULATION_NAME}_parse_args): Use it.
* pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
* pe-dll.c (exclude_list_struct): Add field type to distinguish
symbols from whole archives.
(pe_dll_add_excludes): Set excludes->type.
(auto_export): Add new variable libname and set to
archive basename if abfd. Use it when filtering default and
user-specified libarary excludes. Let string "ALL" mean all libs
when filtering user-specified libs.
* ld.texinfo: Document --exclude-libs.
http://briefcase.yahoo.com.au - Yahoo! Briefcase
- Save your important files online for easy access!
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: exclude_libs.diff
URL: <http://cygwin.com/pipermail/cygwin-apps/attachments/20020520/c30ff61e/attachment.ksh>
More information about the Cygwin-apps
mailing list