This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: ld warning (was Optimization, remove unused code from Image)
- From: Eljay Love-Jensen <eljay at adobe dot com>
- To: "Madani, Srikanth, VF-DE" <Srikanth dot Madani at vodafone dot com>, gcc-help at gcc dot gnu dot org
- Date: Tue, 11 Jan 2005 08:00:15 -0600
- Subject: RE: ld warning (was Optimization, remove unused code from Image)
Hi Srikanth,
> ld --gc-sections *.o
Don't do that.
Try this instead:
gcc -Wl,--gc-sections *.o
Also note: --gc-sections doesn't work in some environments. (Hmmm, I was
under the vague impression that the gc facility was disabled entirely. But
don't quote me on that.)
HTH,
--Eljay