android_kernel_xiaomi_sm7250/arch/m68k/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
..
.gitignore m68k: Add vmlinux.lds to .gitignore 2009-01-12 20:56:32 +01:00
asm-offsets.c m68k/m68kmmu: use kbuild.h instead of defining macros in asm-offsets.c 2008-04-29 08:06:30 -07:00
dma.c m68k: Add missing dma_sync_single_range_for_{cpu,device}() 2008-10-14 10:23:27 -07:00
entry.S m68k,m68knommu: Wire up preadv and pwritev 2009-04-22 20:39:49 +02:00
head.S m68k: convert to use __HEAD and HEAD_TEXT macros. 2009-04-26 09:20:38 -07:00
ints.c m68k: Fix off-by-one in m68k_setup_user_interrupt() 2008-11-15 11:36:06 -08:00
m68k_ksyms.c Generic semaphore implementation 2008-04-17 10:42:34 -04:00
Makefile m68k: remove the dead PCI code 2008-10-14 10:23:27 -07:00
module.c module: cleanup FIXME comments about trimming exception table entries. 2009-06-12 21:47:05 +09:30
module.lds m68k: runtime patching infrastructure 2007-05-31 07:58:13 -07:00
process.c mm: consolidate init_mm definition 2009-06-16 19:47:28 -07:00
ptrace.c Consolidate PTRACE_DETACH 2007-10-16 09:42:49 -07:00
setup.c m68k: Kill several external declarations in source files 2009-01-12 20:56:34 +01:00
signal.c m68k: Wire up sys_restart_syscall 2009-01-12 20:56:43 +01:00
sun3-head.S m68k: arch/m68k/kernel/sun3-head.S needs <linux/init.h> 2009-04-28 16:07:18 -07:00
sys_m68k.c unified (weak) sys_pipe implementation 2008-05-03 13:50:33 -07:00
time.c m68k: Hook up rtc-generic 2009-04-02 01:05:31 +00:00
traps.c ptrace: remove PT_DTRACE from m68k, m68knommu 2009-06-18 13:03:48 -07:00
vmlinux-std.lds linker script: unify usage of discard definition 2009-07-09 11:27:40 +09:00
vmlinux-sun3.lds linker script: unify usage of discard definition 2009-07-09 11:27:40 +09:00
vmlinux.lds.S Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00