This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Dead-stripping unused code?
- From: Daniel Jacobowitz <drow at false dot org>
- To: Rick Mann <rmann at latencyzero dot com>
- Cc: binutils <binutils at sourceware dot org>
- Date: Thu, 20 Sep 2007 18:14:42 -0400
- Subject: Re: Dead-stripping unused code?
- References: <3C7EC5D4-1CB3-449A-80E4-E912F797D567@latencyzero.com>
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