This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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!


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]