linux/arch/mips
Ralf Baechle 2efac77e82 [MIPS] Discard .exit.text and .exit.data at runtime.
While the recent cset 86384d5441 did improve
things it didn't resolve all the problems.  So bite the bullet and discard
.exit.text and .exit.data at runtime.  Which of course sucks because it
bloats binaries with code that will never ever be used but it's the only
thing that will work reliable as demonstrated by the function sd_major() in
drivers/scsi/sd.c.

Gcc may compile sd_major() using a jump table which it will put into
.rodata.  If it also inlines sd_major's function body into exit_sd() which
gcc > 3.4.x does.  If CONFIG_BLK_DEV_SD has been set to y we would like ld
to discard exit_sd's code at link time.  However sd_major happens to
contain a switch statement which gcc will compile using a jump table in
.rodata on the architectures I checked.  So, when ld later discards
.exit.text only the jump table in .rodata with its stale references to
the discard .exit.text will be left which any no antique ld will honor
with a link error.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2006-12-12 01:46:24 +00:00
..
arc Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
au1000 [MIPS] IRQ cleanups 2006-11-30 01:14:46 +00:00
basler/excite [MIPS] Complete fixes after removal of pt_regs argument to int handlers. 2006-10-08 02:38:28 +01:00
boot Add .gitignore files for MIPS. 2005-11-07 18:05:37 +00:00
cobalt [MIPS] Rewrite GALILEO_INL/GALILEO_OUTL to GT_READ/GT_WRITE 2006-11-30 01:14:43 +00:00
configs [PATCH] add STB810 support (Philips PNX8550-based) 2006-12-09 01:04:00 +00:00
ddb5xxx [MIPS] IRQ cleanups 2006-11-30 01:14:46 +00:00
dec [MIPS] *-berr: Header inclusions for DEC bus error handlers 2006-12-06 20:16:09 +00:00
emma2rh [MIPS] Compile __do_IRQ() when really needed 2006-12-06 20:16:08 +00:00
gt64120 [MIPS] IRQ cleanups 2006-11-30 01:14:46 +00:00
jazz [MIPS] Compile __do_IRQ() when really needed 2006-12-06 20:16:08 +00:00
jmr3927 [MIPS] mips HPT cleanup: make clocksource_mips public 2006-11-30 01:14:49 +00:00
kernel [MIPS] Discard .exit.text and .exit.data at runtime. 2006-12-12 01:46:24 +00:00
lasat [PATCH] sysctl: remove unused "context" param 2006-12-10 09:55:41 -08:00
lib [MIPS] Export csum_partial_copy_nocheck. 2006-12-10 21:52:11 +00:00
lib-32 [MIPS] Unify csum_partial.S 2006-12-04 22:43:13 +00:00
lib-64 [MIPS] Unify csum_partial.S 2006-12-04 22:43:13 +00:00
math-emu [MIPS] Make sure cpu_has_fpu is used only in atomic context 2006-10-09 23:20:48 +01:00
mips-boards [MIPS] Fix double inclusions 2006-11-30 01:14:47 +00:00
mm [MIPS] Export local_flush_data_cache_page for sake of IDE. 2006-12-10 21:52:11 +00:00
momentum [MIPS] Compile __do_IRQ() when really needed 2006-12-06 20:16:08 +00:00
oprofile [MIPS] Oprofile: kernel support for the R10000. 2006-11-30 01:14:45 +00:00
pci [PATCH] add STB810 support (Philips PNX8550-based) 2006-12-09 01:04:00 +00:00
philips/pnx8550 [PATCH] add STB810 support (Philips PNX8550-based) 2006-12-09 01:04:00 +00:00
pmc-sierra [MIPS] mips hpt cleanup: get rid of mips_hpt_init 2006-11-30 01:14:46 +00:00
qemu [MIPS] Complete fixes after removal of pt_regs argument to int handlers. 2006-10-08 02:38:28 +01:00
sgi-ip22 [MIPS] Compile __do_IRQ() when really needed 2006-12-06 20:16:08 +00:00
sgi-ip27 [MIPS] Compile __do_IRQ() when really needed 2006-12-06 20:16:08 +00:00
sgi-ip32 [MIPS] IRQ cleanups 2006-11-30 01:14:46 +00:00
sibyte [MIPS] SWARM: Fix a typo in #error directives 2006-12-04 22:43:13 +00:00
sni [MIPS] IRQ cleanups 2006-11-30 01:14:46 +00:00
tx4927 [MIPS] Add GENERIC_HARDIRQS_NO__DO_IRQ for i8259 users 2006-12-09 01:04:00 +00:00
tx4938 [MIPS] Compile __do_IRQ() when really needed 2006-12-06 20:16:08 +00:00
vr41xx [MIPS] Add GENERIC_HARDIRQS_NO__DO_IRQ for i8259 users 2006-12-09 01:04:00 +00:00
defconfig [MIPS] Rename SNI_RM200_PCI to just SNI_RM preparing for more RM machines 2006-12-09 01:03:58 +00:00
Kconfig [PATCH] add STB810 support (Philips PNX8550-based) 2006-12-09 01:04:00 +00:00
Kconfig.debug [MIPS] TRACE_IRQFLAGS_SUPPORT support. 2006-07-13 21:26:09 +01:00
Makefile [PATCH] add STB810 support (Philips PNX8550-based) 2006-12-09 01:04:00 +00:00