linux-stable/arch/m32r/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
..
align.c
asm-offsets.c
entry.S m32r/kernel/: cleanups 2008-09-27 18:27:21 +09:00
head.S m32r: convert to use __HEAD and HEAD_TEXT macros. 2009-04-26 09:20:38 -07:00
init_task.c mm: consolidate init_mm definition 2009-06-16 19:47:28 -07:00
irq.c sparseirq: use kstat_irqs_cpu instead 2009-01-11 15:53:13 +01:00
m32r_ksyms.c m32r: export empty_zero_page 2008-09-27 18:27:21 +09:00
Makefile m32r: build fix for __stringify macro 2009-05-02 21:43:26 +09:00
module.c module: cleanup FIXME comments about trimming exception table entries. 2009-06-12 21:47:05 +09:30
process.c ptrace: remove PT_DTRACE from arch/m32r 2009-06-18 13:03:49 -07:00
ptrace.c ptrace: remove PT_DTRACE from arch/m32r 2009-06-18 13:03:49 -07:00
setup.c
signal.c
smp.c m32r/kernel/: cleanups 2008-09-27 18:27:21 +09:00
smpboot.c percpu: fix percpu accessors to potentially !cpu_possible() cpus: m32r 2009-01-01 10:12:14 +10:30
sys_m32r.c m32r: use generic sys_pipe 2008-05-09 08:04:56 -07:00
syscall_table.S
time.c cpumask: remove references to struct irqaction's mask field. 2009-03-30 22:05:14 +10:30
traps.c m32r/kernel/: cleanups 2008-09-27 18:27:21 +09:00
vmlinux.lds.S linker script: unify usage of discard definition 2009-07-09 11:27:40 +09:00