This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Unreviewed patch to pe-dll.c: Allow exclusion of whole libs with --export-all
- From: Danny Smith <danny_r_smith_2001 at yahoo dot co dot nz>
- To: binutils <binutils at sources dot redhat dot com>
- Date: Tue, 11 Dec 2001 06:57:02 +1100 (EST)
- Subject: Unreviewed patch to pe-dll.c: Allow exclusion of whole libs with --export-all
Hello,
I would be grateful if someone could review this patch:
http://sources.redhat.com/ml/binutils/2001-11/msg00572.html
Following is excerpted form that post:
The auto-export feature of ld for pe-dll targets needs an option to exclude
whole libs from export. The following patch allows exclusion of specific or
all libs.
It also adds a few more default lib excludes and scans for backward
compat implib symbols (__imp_)
2001-11-22 Danny Smith <dannysmith@users.sourceforge.net>
* ld/emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
(longopts): Add new option --exclude-libs.
(gld_${EMULATION_NAME}_list_options): Document it.
(gld_${EMULATION_NAME}_parse_args): Use it.
* ld/pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
* ld/pe-dll.c (autofilter_liblist): Add more default libs.
(exclude_list_struct): Add field type to distinguish
symbols from whole archives.
(pe_dll_add_excludes): Set excludes->type.
(auto_export): Scan for old __imp_ prefix as well as _imp__
when filtering symbols. 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.
http://shopping.yahoo.com.au - Yahoo! Shopping
- Free CDs for thousands of Priority Shoppers!