This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH] Change export behavior for PE files
- From: Danny Smith <dannysmith at clear dot net dot nz>
- To: Christopher Faylor <me at cgf dot cx>, Filip Navara <xnavara at volny dot cz>,binutils at sources dot redhat dot com
- Date: Sat, 12 Mar 2005 07:05:36 +1300
- Subject: Re: [PATCH] Change export behavior for PE files
- References: <4231AB85.1030005@volny.cz><20050311153640.GE26408@gully.casa.cgf.cx>
- Reply-to: Danny Smith <dannysmith at users dot sourceforge dot net>
Christopher Faylor wrote:
> On Fri, Mar 11, 2005 at 03:30:29PM +0100, Filip Navara wrote:
>> I guess this one will not get accepted and you'll tell me that it's not
>> bug, but feature. Anyway I decided to at least try to push this patch
>> since I need to generate export-less DLLs and I don't see any other way
>> to do it when "-shared" is used.
>
> Actually the change makes sense to me and it seems like you're fixing a
> bug but I'd like to get Danny Smith's input too before committing it.
>
This will break a lot of projects which expect a default behaviour
of --export-all.
Is there no way to use a def file with with an empty EXPORTS section to signify
no exports?
Or what about a a --no-export-all switch?
Danny
> Do you have an assignment with the FSF?
>
> cgf
>
>> 2005-03-11 Filip Navara <navaraf@reactos.com>
>>
>> * ld/pe-dll.c (process_def_file, pe_dll_build_sections,
>> pe_dll_fill_sections): Don't export all symbols for shared
>> libraries when --export-all-symbols is not specified and
>> no .def file is specified.