linux/arch/microblaze/kernel
Tejun Heo 023bf6f1b8 linker script: unify usage of discard definition
Discarded sections in different archs share some commonality but have
considerable differences.  This led to linker script for each arch
implementing its own /DISCARD/ definition, which makes maintaining
tedious and adding new entries error-prone.

This patch makes all linker scripts to move discard definitions to the
end of the linker script and use the common DISCARDS macro.  As ld
uses the first matching section definition, archs can include default
discarded sections by including them earlier in the linker script.

ia64 is notable because it first throws away some ia64 specific
subsections and then include the rest of the sections into the final
image, so those sections must be discarded before the inclusion.

defconfig compile tested for x86, x86-64, powerpc, powerpc64, ia64,
alpha, sparc, sparc64 and s390.  Michal Simek tested microblaze.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Paul Mundt <lethal@linux-sh.org>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Tested-by: Michal Simek <monstr@monstr.eu>
Cc: linux-arch@vger.kernel.org
Cc: Michal Simek <monstr@monstr.eu>
Cc: microblaze-uclinux@itee.uq.edu.au
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Tony Luck <tony.luck@intel.com>
2009-07-09 11:27:40 +09:00
..
cpu microblaze: Storage class should be before const qualifier 2009-05-01 16:38:13 +02:00
asm-offsets.c microblaze_mmu_v2: MMU asm offset update 2009-05-26 16:45:19 +02:00
early_printk.c microblaze_mmu_v2: Alocate TLB for early console 2009-05-26 16:45:14 +02:00
entry-nommu.S microblaze_mmu_v2: Enable fork syscall for MMU and add fork as vfork for noMMU 2009-05-26 16:45:21 +02:00
entry.S microblaze_mmu_v2: entry.S, entry.h 2009-05-26 16:45:20 +02:00
exceptions.c microblaze_mmu_v2: Add MMU related exceptions handling 2009-05-26 16:45:20 +02:00
head.S microblaze_mmu_v2: MMU update for startup code 2009-05-26 16:45:14 +02:00
heartbeat.c microblaze_v8: heartbeat file 2009-03-27 14:25:24 +01:00
hw_exception_handler.S microblaze_mmu_v2: Update exception handling - MMU exception 2009-05-26 16:45:20 +02:00
init_task.c microblaze: remove init_mm 2009-06-20 14:36:50 +02:00
intc.c microblaze: Fix kind-of-intr checking against number of interrupts 2009-05-18 14:47:42 +02:00
irq.c microblaze_v8: Interrupt handling and timer support 2009-03-27 14:25:49 +01:00
Makefile microblaze_mmu_v2: Makefiles 2009-05-26 16:45:24 +02:00
microblaze_ksyms.c microblaze: export some symbols 2009-05-21 15:56:05 +02:00
misc.S microblaze: Fix problem with early_printk in startup 2009-05-30 16:40:58 +02:00
module.c microblaze_v8: kernel modules support 2009-03-27 14:25:17 +01:00
of_device.c microblaze: struct device - replace bus_id with dev_name() 2009-04-14 10:37:27 +02:00
of_platform.c microblaze_v8: Open firmware files 2009-03-27 14:25:12 +01:00
process.c microblaze_mmu_v2: Update process creation for MMU 2009-05-26 16:45:18 +02:00
prom_parse.c microblaze_v8: Open firmware files 2009-03-27 14:25:12 +01:00
prom.c microblaze: Fix cast warning for __va in prom.c 2009-05-21 16:39:58 +02:00
ptrace.c microblaze: remove duplicated #include's 2009-04-14 11:09:15 +02:00
selfmod.c microblaze_v8: Selfmodified code 2009-03-27 14:25:15 +01:00
setup.c microblaze: Cleanup compiled-in rootfs in BSS section 2009-05-21 16:39:16 +02:00
signal.c microblaze_mmu_v2: Update signal returning address 2009-05-26 16:45:22 +02:00
sys_microblaze.c microblaze: Fix return value for sys_ipc 2009-05-01 16:38:14 +02:00
syscall_table.S microblaze_mmu_v2: Enable fork syscall for MMU and add fork as vfork for noMMU 2009-05-26 16:45:21 +02:00
timer.c microblaze: add parameter to microblaze_read() 2009-04-23 16:27:38 +02:00
traps.c microblaze_mmu_v2: Traps MMU update 2009-05-26 16:45:21 +02:00
vmlinux.lds.S linker script: unify usage of discard definition 2009-07-09 11:27:40 +09:00