This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Excude whole libs when building w32 dlls with -export-all [Refresh]
- From: Christopher Faylor <cgf at redhat dot com>
- To: binutils <binutils at sources dot redhat dot com>
- Date: Wed, 22 May 2002 14:08:30 -0400
- Subject: Re: Excude whole libs when building w32 dlls with -export-all [Refresh]
- References: <20020520225008.84334.qmail@web14501.mail.yahoo.com>
On Tue, May 21, 2002 at 08:50:08AM +1000, Danny Smith wrote:
>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.
I've applied this patch (with Nick's permission).
Thanks, Danny.
cgf