android_kernel_xiaomi_sm8350/arch/mn10300/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 mn10300: use kbuild.h instead of defining macros in asm-offsets.c 2008-04-29 08:06:30 -07:00
entry.S MN10300: Wire up new syscalls 2009-06-30 18:58:37 -07:00
fpu-low.S
fpu.c
gdb-cache.S
gdb-io-serial-low.S Separate out the proc- and unit-specific header directories from the general 2009-04-10 14:33:48 +01:00
gdb-io-serial.c Separate out the proc- and unit-specific header directories from the general 2009-04-10 14:33:48 +01:00
gdb-io-ttysm-low.S Separate out the proc- and unit-specific header directories from the general 2009-04-10 14:33:48 +01:00
gdb-io-ttysm.c Separate out the proc- and unit-specific header directories from the general 2009-04-10 14:33:48 +01:00
gdb-low.S
gdb-stub.c Separate out the proc- and unit-specific header directories from the general 2009-04-10 14:33:48 +01:00
head.S mn10300: 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
internal.h
io.c
irq.c MN10300: Convert obsolete no_irq_type to no_irq_chip 2009-04-09 10:33:21 -07:00
kernel_execve.S
kprobes.c
kthread.S
Makefile Generic semaphore implementation 2008-04-17 10:42:34 -04:00
mn10300_ksyms.c mn10300: provide __ucmpdi2() for MN10300 2008-07-04 10:40:07 -07:00
mn10300-debug.c
mn10300-serial-low.S Separate out the proc- and unit-specific header directories from the general 2009-04-10 14:33:48 +01:00
mn10300-serial.c Separate out the proc- and unit-specific header directories from the general 2009-04-10 14:33:48 +01:00
mn10300-serial.h
mn10300-watchdog-low.S
mn10300-watchdog.c Separate out the proc- and unit-specific header directories from the general 2009-04-10 14:33:48 +01:00
module.c MN10300: Add support for new ELF relocs in kernel modules 2009-06-18 13:10:33 -07:00
process.c ptrace: remove PT_DTRACE from avr32, mn10300, parisc, s390, sh, xtensa 2009-06-18 13:03:48 -07:00
profile-low.S
profile.c
ptrace.c MN10300: Add utrace/tracehooks support 2009-06-11 09:02:20 -07:00
rtc.c mn10300: use bcd2bin/bin2bcd 2008-10-20 08:52:41 -07:00
setup.c MN10300: Discard duplicate PFN_xxx() macros 2009-04-15 13:55:13 -07:00
sigframe.h
signal.c MN10300: Add utrace/tracehooks support 2009-06-11 09:02:20 -07:00
switch_to.S
sys_mn10300.c unified (weak) sys_pipe implementation 2008-05-03 13:50:33 -07:00
time.c cpumask: remove references to struct irqaction's mask field. 2009-03-30 22:05:14 +10:30
traps.c Separate out the proc- and unit-specific header directories from the general 2009-04-10 14:33:48 +01:00
vmlinux.lds.S linker script: unify usage of discard definition 2009-07-09 11:27:40 +09:00