This is the mail archive of the binutils@sources.redhat.com 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: unused functions


On Thu, 31 Oct 2002, Aleksandar Simeonov wrote:

> Hi everybody,
> I'm looking the way to delete all unused functions from output elf file. Is
> there any suggestions about that? I need that for mips-lexra.

Use the gcc option -ffunction-sections.  Then when linking, use
the ld option --gc-sections.  Use -Wl,--gc-sections when linking
through gcc; recommended.  These options are documented; see the
gcc and binutils documentation for further info.

brgds, H-P


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