[PATCH] Change export behavior for PE files

Danny Smith dannysmith@clear.net.nz
Fri Mar 11 18:06:00 GMT 2005


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.



More information about the Binutils mailing list