Lib change leads to larger executables

Walter Bright newshound at digitalmars.com
Wed Feb 21 17:01:50 PST 2007


Lionello Lunesu wrote:
> "Walter Bright" <newshound at digitalmars.com> wrote in message 
> news:erie2v$kad$2 at digitalmars.com...
>> Frits van Bommel wrote:
>>> GNU ld seems to be perfectly happy working at the section level 
>>> (with --gc-sections).
>> Yeah, well, try linking D programs with --gc-sections, and you'll get a 
>> crashing executable.
> 
> Thomas has suggested some fixes for that in bugzilla #879.

Yes, I know, and I'll probably implement them. But they are a hack. A 
much better solution would be a change to the ELF format to allow 
sections to be marked as "don't gc this section", but I doubt that'll 
happen.



More information about the Digitalmars-d mailing list