PATCH: requesting feedback on dead function optimisation

Alan Modra alan at linuxcare.com.au
Mon Apr 10 22:01:13 EST 2000


On Mon, 10 Apr 2000, Graham Stoney wrote:

> Alan Modra writes:
> > Graham, I suspect that if you create a custom linker script that tells ld
> > where to put your .init.* sections, then you won't need the patch.
>
> I'm not sure how that would help. The problem is that the order of the
> individual .text.__FUNCTION__ sections is different to the order of the
> combined entries in the __ex_table section. The .init.* stuff is something
> else entirely.

Sorry, I was forgetting which sections were getting reversed.  Create a
linker script with an entry like
  *(.text.*)
in section .text then.

--
Linuxcare.  Support for the Revolution.


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-dev mailing list