[patch] Check for -Wl,--gc-sections

Havoc Pennington hp at redhat.com
Mon Jun 18 07:45:49 PDT 2007


Richard Hughes wrote:
> Havoc mentioned I should try using --gc-sections to reduce the size of
> the setuid binary.
> 

I think you need a compiler flag to put each function in a separate 
section also, at least to get maximum benefit.

Though since this isn't the default I've always assumed there must be 
some sort of downside, I can't tell you what it might be.

Havoc



More information about the dbus mailing list