Re: PATCH: requesting feedback on dead function optimisation

From: Alan Modra (alan@linuxcare.com.au)
Date: Mon Apr 10 2000 - 07:01:13 EST


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.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Apr 15 2000 - 21:00:14 EST