linux/arch/blackfin/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
..
cplb-mpu Blackfin: decouple unrelated cache settings to get exact behavior 2009-06-22 21:15:59 -04:00
cplb-nompu Blackfin: only handle CPLB protection violations when MPU is enabled 2009-06-13 07:20:06 -04:00
.gitignore Blackfin: ignore generated vmlinux.lds 2009-05-27 00:27:03 -04:00
asm-offsets.c Blackfin arch: SMP supporting patchset: Blackfin kernel and memory management code 2008-11-18 17:48:22 +08:00
bfin_dma_5xx.c Blackfin: rename bfin_addr_dcachable to bfin_addr_dcacheable 2009-06-13 07:20:06 -04:00
bfin_gpio.c Blackfin: punt useless GPIO init call 2009-06-12 06:11:30 -04:00
bfin_ksyms.c Blackfin: pull in asm/io.h in ksyms for prototypes 2009-06-18 21:40:44 -04:00
cplbinfo.c Blackfin arch: Faster C implementation of no-MPU CPLB handler 2009-01-07 23:14:38 +08:00
dma-mapping.c [Blackfin] arch: __FUNCTION__ is gcc-specific, use __func__ 2008-04-23 09:39:01 +08:00
early_printk.c Blackfin: do not configure the UART early if on wrong processor 2009-06-13 07:20:10 -04:00
entry.S Blackfin arch: merge adeos blackfin part to arch/blackfin/ 2009-01-07 23:14:39 +08:00
fixed_code.S Blackfin arch: move fixed code into init section 2008-11-18 17:48:22 +08:00
flat.c Blackfin arch: cleanup warnings from checkpatch -- no functional changes 2007-07-12 22:58:21 +08:00
ftrace-entry.S Blackfin: initial support for ftrace grapher 2009-06-13 07:20:16 -04:00
ftrace.c Blackfin: initial support for ftrace grapher 2009-06-13 07:20:16 -04:00
gptimers.c Blackfin: update gptimers API 2009-06-12 06:11:47 -04:00
init_task.c mm: consolidate init_mm definition 2009-06-16 19:47:28 -07:00
ipipe.c Blackfin: remove obsolete mcount support from I-pipe code 2009-06-22 21:15:56 -04:00
irqchip.c Blackfin: abstract irq14 lowering in do_irq 2009-06-22 21:15:46 -04:00
kgdb_test.c Blackfin arch: fix bug - kgdb fails to continue after setting breakpoint on bf561-ezkit kernel with smp patch 2009-03-05 16:44:53 +08:00
kgdb.c Blackfin: unify memory region checks between kgdb and traps 2009-06-22 21:15:34 -04:00
Makefile Blackfin: remove obsolete mcount support from I-pipe code 2009-06-22 21:15:56 -04:00
module.c Blackfin: rename Blackfin relocs according to the toolchain 2009-06-12 06:11:59 -04:00
process.c Blackfin: unify memory region checks between kgdb and traps 2009-06-22 21:15:34 -04:00
ptrace.c Blackfin arch: fix bug - gdb signull case make trunk kernel panic frequently 2009-03-05 18:50:26 +08:00
reboot.c Blackfin arch: bfin_reset->_bfin_reset redirection no longer needed 2009-02-04 16:49:45 +08:00
setup.c Blackfin: fix early crash when booting on wrong cpu 2009-06-22 21:16:17 -04:00
signal.c [Blackfin] arch: disable single stepping when delivering a signal 2008-05-07 11:41:26 +08:00
stacktrace.c Blackfin: add preliminary support for STACKTRACE 2009-06-13 07:20:14 -04:00
sys_bfin.c Blackfin: delete unused sys_getpagesize() function 2009-06-12 06:11:31 -04:00
time-ts.c Blackfin: add support for gptimer0 as a tick source 2009-06-12 06:11:37 -04:00
time.c Blackfin: convert SMP to only use generic time framework 2009-06-12 06:11:56 -04:00
traps.c Blackfin: unify memory region checks between kgdb and traps 2009-06-22 21:15:34 -04:00
vmlinux.lds.S linker script: unify usage of discard definition 2009-07-09 11:27:40 +09:00