More agressive entity removal during linking
Jeffrey A Law
law@cygnus.com
Thu Dec 9 02:00:00 GMT 1999
In message < Pine.LNX.3.96.991209003754.5211T-100000@wakko.deltatee.com >you wr
ite:
> > There is an option to do this, but it requires target specific compiler,
> > assembler and linker support as well as a modern object format such as EL
> F
> > (coff is too lame, sorry).
>
> Alright - is it possible to do this with GCC?
It depends on the specific port and whether or not the necessary hacks have
been added to all the necessary components of that port.
> I have no quams about
> switching the output target format for the compiler. Which format should I
> use and which linker/compiler/assembler option turns this on (presumably
> --gc-sections?) ?
You would want to use ELF. Yes --gc-sections is the right linker option. You
will also need to use -ffucntion-sections so that the compiler puts each
function into its own section.
I do not know if the m68k-elf tools have all the necessary functionality,
particularly the linker.
jeff
More information about the Gcc
mailing list