This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Dead-stripping unused code?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]