[PATCH] ppc32: discard *.exit.text and *.exit.data sections
authorTom Rini <trini@kernel.crashing.org>
Tue, 13 Sep 2005 08:25:09 +0000 (01:25 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 13 Sep 2005 15:22:28 +0000 (08:22 -0700)
commit6a00cbfcf8ffdd719cb5a27e1a0a9779665d1e23
tree3596cb8dc87fa3b8472234670e2022882ee64738
parent5b952b3c143660b6436fcb299b249cefde61c18d
[PATCH] ppc32: discard *.exit.text and *.exit.data sections

Discard *.exit.text sections on runtime.  We cannot do this on link time
because of the way BUG macros are implemented.  If "__exit function" calls
one of those macros, __bug_table section will reference this function.
This is similar to ".altinstructions" situation on i386.

*.exit.data seems to be OK in this respect and is discarded on link
time.

Signed-off-by: Eugene Surovegin <ebs@ebshome.net>
Signed-off-by: Tom Rini <trini@kernel.crashing.org>
Acked-by: Paul Mackerras <paulus@samba.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/ppc/kernel/vmlinux.lds.S