kernel_optimize_test/arch/cris/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
..
asm-offsets.c [CRIS] Merge asm-offsets.c for both arches into one file. 2008-10-31 23:37:00 +01:00
crisksyms.c Generic semaphore implementation 2008-04-17 10:42:34 -04:00
irq.c sparseirq: use kstat_irqs_cpu on non-x86 architectures too 2009-01-12 20:01:12 +01:00
Makefile Generic semaphore implementation 2008-04-17 10:42:34 -04:00
module.c module: cleanup FIXME comments about trimming exception table entries. 2009-06-12 21:47:05 +09:30
process.c mm: consolidate init_mm definition 2009-06-16 19:47:28 -07:00
profile.c cris: use simple_read_from_buffer() 2008-07-24 10:47:24 -07:00
ptrace.c CRIS: Remove useless CVS log from kernel/ptrace.c 2008-02-08 11:06:37 +01:00
setup.c cpumask: prepare for iterators to only go to nr_cpu_ids/nr_cpumask_bits.: cris 2009-03-16 14:11:46 +10:30
sys_cris.c cris: kill sys_pipe implementation 2008-05-09 08:03:03 -07:00
time.c cris: use bcd2bin/bin2bcd 2008-10-20 08:52:41 -07:00
traps.c CRIS: Minor generic kernel/traps.c changes. 2008-02-08 11:06:24 +01:00
vmlinux.lds.S linker script: unify usage of discard definition 2009-07-09 11:27:40 +09:00