Lib change leads to larger executables

Frits van Bommel fvbommel at REMwOVExCAPSs.nl
Wed Feb 21 12:57:06 PST 2007


Walter Bright wrote:
> Sean Kelly wrote:
>> For some reason I thought an optimizing linker worked at a segment 
>> level, but I suppose that is not true for data in a library?  In other 
>> words, since libraries are indexed by module name, I suppose this 
>> means they are necessarily dealt with at module granularity instead?
> 
> The linker works at the .obj file level.

GNU ld seems to be perfectly happy working at the section level (with 
--gc-sections).



More information about the Digitalmars-d mailing list