android_kernel_xiaomi_sm8350/arch/mips/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
8250-platform.c
asm-offsets.c MIPS: Add hibernation support 2009-06-17 11:06:31 +01:00
binfmt_elfn32.c
binfmt_elfo32.c
branch.c
cevt-bcm1480.c MIPS: Build fix - include <linux/smp.h> into all smp_processor_id() users. 2009-06-24 18:34:39 +01:00
cevt-ds1287.c
cevt-gt641xx.c
cevt-r4k.c MIPS: Build fix - include <linux/smp.h> into all smp_processor_id() users. 2009-06-24 18:34:39 +01:00
cevt-sb1250.c MIPS: Build fix - include <linux/smp.h> into all smp_processor_id() users. 2009-06-24 18:34:39 +01:00
cevt-smtc.c MIPS: Build fix - include <linux/smp.h> into all smp_processor_id() users. 2009-06-24 18:34:39 +01:00
cevt-txx9.c MIPS: TXx9: micro optimization for clocksource and clock_event 2009-06-17 11:06:25 +01:00
cpu-bugs64.c
cpu-probe.c MIPS: Build fix - include <linux/smp.h> into all smp_processor_id() users. 2009-06-24 18:34:39 +01:00
csrc-bcm1480.c clocksource: pass clocksource to read() callback 2009-04-21 13:41:47 -07:00
csrc-ioasic.c clocksource: pass clocksource to read() callback 2009-04-21 13:41:47 -07:00
csrc-r4k.c clocksource: pass clocksource to read() callback 2009-04-21 13:41:47 -07:00
csrc-sb1250.c clocksource: pass clocksource to read() callback 2009-04-21 13:41:47 -07:00
early_printk.c
entry.S
genex.S
gpio_txx9.c
head.S
i8253.c MIPS: Build fix - include <linux/smp.h> into all smp_processor_id() users. 2009-06-24 18:34:39 +01:00
i8259.c cpumask: remove references to struct irqaction's mask field. 2009-03-30 22:05:14 +10:30
init_task.c mm: consolidate init_mm definition 2009-06-16 19:47:28 -07:00
irq_cpu.c MIPS: Enable GENERIC_HARDIRQS_NO__DO_IRQ for all platforms 2009-03-30 14:49:44 +02:00
irq_txx9.c
irq-gic.c MIPS: Build fix - include <linux/smp.h> into all smp_processor_id() users. 2009-06-24 18:34:39 +01:00
irq-gt641xx.c
irq-msc01.c MIPS: Enable GENERIC_HARDIRQS_NO__DO_IRQ for all platforms 2009-03-30 14:49:44 +02:00
irq-rm7000.c
irq-rm9000.c
irq.c
kgdb.c MIPS: Build fix - include <linux/smp.h> into all smp_processor_id() users. 2009-06-24 18:34:39 +01:00
kspd.c
linux32.c MIPS: Compat: Zero upper 32-bit of offset_high and offset_low. 2009-03-30 14:49:40 +02:00
machine_kexec.c
Makefile
mips_ksyms.c
mips-mt-fpaff.c
mips-mt.c
module.c module: cleanup FIXME comments about trimming exception table entries. 2009-06-12 21:47:05 +09:30
octeon_switch.S
proc.c MIPS: Outline udelay and fix a few issues. 2009-06-08 16:57:51 +01:00
process.c MIPS: Add arch generic CPU hotplug 2009-06-24 18:34:40 +01:00
ptrace32.c
ptrace.c
r4k_fpu.S
r4k_switch.S
r2300_fpu.S
r2300_switch.S
r6000_fpu.S
relocate_kernel.S
reset.c
rtlx.c
scall32-o32.S preadv/pwritev: MIPS: Add preadv(2) and pwritev(2) syscalls. 2009-04-02 19:05:08 -07:00
scall64-64.S preadv/pwritev: MIPS: Add preadv(2) and pwritev(2) syscalls. 2009-04-02 19:05:08 -07:00
scall64-n32.S MIPS: Compat: Use generic 32-bit wrapers for sys_timerfd_{g,s}ettime 2009-05-14 13:50:25 +01:00
scall64-o32.S MIPS: Compat: Use generic 32-bit wrapers for sys_timerfd_{g,s}ettime 2009-05-14 13:50:25 +01:00
setup.c MIPS: Stop using <asm-generic/int-l64.h>. 2009-03-30 14:49:41 +02:00
signal32.c
signal_n32.c
signal-common.h
signal.c
smp-cmp.c MIPS: Build fix - include <linux/smp.h> into all smp_processor_id() users. 2009-06-24 18:34:39 +01:00
smp-mt.c
smp-up.c MIPS: Add arch generic CPU hotplug 2009-06-24 18:34:40 +01:00
smp.c MIPS: Add arch generic CPU hotplug 2009-06-24 18:34:40 +01:00
smtc-asm.S
smtc-proc.c
smtc.c MIPS: Build fix - include <linux/smp.h> into all smp_processor_id() users. 2009-06-24 18:34:39 +01:00
spram.c
stacktrace.c
sync-r4k.c
syscall.c
time.c
topology.c MIPS: Add arch generic CPU hotplug 2009-06-24 18:34:40 +01:00
traps.c MIPS: Move Cavium CP0 hwrena impl bits to cpu-feature-overrides.h 2009-06-17 11:06:31 +01:00
unaligned.c MIPS: Use force_sig when handling address errors. 2009-05-14 13:50:29 +01:00
vmlinux.lds.S linker script: unify usage of discard definition 2009-07-09 11:27:40 +09:00
vpe.c
watch.c