Dead-stripping unused code?

Daniel Jacobowitz drow@false.org
Fri Sep 21 07:24:00 GMT 2007


On Thu, Sep 20, 2007 at 03:07:12PM -0700, Rick Mann wrote:
> Basically, I want the linker not to complain about missing code that's never 
> called, but I do want it to complain about missing code that *is* called. Is 
> this possible?

See -ffunction-sections -fdata-sections for GCC, and --gc-sections for
the linker.  However, I'm not sure if you will still get excess
warnings.

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Binutils mailing list