android_kernel_xiaomi_sm8350/arch/um/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
..
skas
asm-offsets.c
config.c.in uml: remove useless comments 2009-04-01 08:59:17 -07:00
dyn.lds.S linker script: unify usage of discard definition 2009-07-09 11:27:40 +09:00
exec.c x86, um: get rid of uml unistd.h 2008-10-22 22:55:21 -07:00
exitcode.c
gmon_syms.c
gprof_syms.c
init_task.c mm: consolidate init_mm definition 2009-06-16 19:47:28 -07:00
initrd.c
internal.h x86, um: get rid of uml unistd.h 2008-10-22 22:55:21 -07:00
irq.c um: remove obsolete hw_interrupt_type 2009-06-16 19:47:47 -07:00
ksyms.c
Makefile uml: don't use a too long string literal 2009-04-01 08:59:16 -07:00
mem.c
physmem.c
process.c Simplify copy_thread() 2009-04-02 19:04:51 -07:00
ptrace.c UML on UML fixed: it did not start 2009-03-12 16:20:23 -07:00
reboot.c
sigio.c
signal.c
smp.c cpumask: centralize cpu_online_map and cpu_possible_map 2008-12-13 21:19:41 +10:30
syscall.c uml: fix warnings in kernel_execve 2009-04-02 19:04:50 -07:00
sysrq.c
time.c clocksource: pass clocksource to read() callback 2009-04-21 13:41:47 -07:00
tlb.c
trap.c Move FAULT_FLAG_xyz into handle_mm_fault() callers 2009-06-21 13:08:22 -07:00
uaccess.c
um_arch.c
umid.c
uml.lds.S linker script: unify usage of discard definition 2009-07-09 11:27:40 +09:00
vmlinux.lds.S