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 function elimination


Hi Jimmy,

I thght the linker alone was supposed to be able to do dead-procedure-elimination.

No. It is a nice feature, but it is not a requirement of a linker.


After all can't the linker determine which procedures are unreferenced in the final executable?

Which is exactly what the --ffunction-sections and --gc-sections switches do.


If i'm not mistaken the diablo linker can do this?

It probably can.


Cheers
  Nick



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