android_kernel_xiaomi_sm8350/arch/alpha/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
alpha_ksyms.c
asm-offsets.c
binfmt_loader.c alpha: binfmt_aout fix 2009-05-02 15:36:10 -07:00
console.c
core_apecs.c
core_cia.c
core_irongate.c
core_lca.c
core_marvel.c
core_mcpcia.c
core_polaris.c
core_t2.c
core_titan.c
core_tsunami.c
core_wildfire.c
entry.S
err_common.c
err_ev6.c alpha: titan and marvel build fixes 2009-05-02 15:36:10 -07:00
err_ev7.c alpha: titan and marvel build fixes 2009-05-02 15:36:10 -07:00
err_impl.h alpha: titan and marvel build fixes 2009-05-02 15:36:10 -07:00
err_marvel.c alpha: titan and marvel build fixes 2009-05-02 15:36:10 -07:00
err_titan.c alpha: titan and marvel build fixes 2009-05-02 15:36:10 -07:00
es1888.c
gct.c
head.S alpha: 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
io.c
irq_alpha.c alpha: remove obsolete hw_interrupt_type 2009-06-16 19:47:46 -07:00
irq_i8259.c alpha: remove obsolete hw_interrupt_type 2009-06-16 19:47:46 -07:00
irq_impl.h alpha: remove obsolete hw_interrupt_type 2009-06-16 19:47:46 -07:00
irq_pyxis.c alpha: remove obsolete hw_interrupt_type 2009-06-16 19:47:46 -07:00
irq_srm.c alpha: remove obsolete hw_interrupt_type 2009-06-16 19:47:46 -07:00
irq.c
machvec_impl.h
Makefile alpha: binfmt_aout fix 2009-05-02 15:36:10 -07:00
module.c
ns87312.c
osf_sys.c Push BKL into do_mount() 2009-06-11 21:36:08 -04:00
pci_impl.h
pci_iommu.c alpha: convert u64 to unsigned long long 2009-04-01 08:59:16 -07:00
pci-noop.c
pci-sysfs.c
pci.c alpha: convert u64 to unsigned long long 2009-04-01 08:59:16 -07:00
process.c Simplify copy_thread() 2009-04-02 19:04:51 -07:00
proto.h alpha: titan and marvel build fixes 2009-05-02 15:36:10 -07:00
ptrace.c
setup.c alpha: bad macro expansion, parameter is member 2009-06-16 19:47:46 -07:00
signal.c
smc37c93x.c
smc37c669.c alpha: convert u64 to unsigned long long 2009-04-01 08:59:16 -07:00
smp.c
srm_env.c proc 2/2: remove struct proc_dir_entry::owner 2009-03-31 01:14:44 +04:00
srmcons.c
sys_alcor.c alpha: remove obsolete hw_interrupt_type 2009-06-16 19:47:46 -07:00
sys_cabriolet.c alpha: remove obsolete hw_interrupt_type 2009-06-16 19:47:46 -07:00
sys_dp264.c alpha: remove obsolete hw_interrupt_type 2009-06-16 19:47:46 -07:00
sys_eb64p.c alpha: remove obsolete hw_interrupt_type 2009-06-16 19:47:46 -07:00
sys_eiger.c alpha: remove obsolete hw_interrupt_type 2009-06-16 19:47:46 -07:00
sys_jensen.c alpha: remove obsolete hw_interrupt_type 2009-06-16 19:47:46 -07:00
sys_marvel.c alpha: remove obsolete hw_interrupt_type 2009-06-16 19:47:46 -07:00
sys_miata.c
sys_mikasa.c alpha: remove obsolete hw_interrupt_type 2009-06-16 19:47:46 -07:00
sys_nautilus.c
sys_noritake.c alpha: remove obsolete hw_interrupt_type 2009-06-16 19:47:46 -07:00
sys_rawhide.c alpha: remove obsolete hw_interrupt_type 2009-06-16 19:47:46 -07:00
sys_ruffian.c time: move PIT_TICK_RATE to linux/timex.h 2009-06-16 19:47:27 -07:00
sys_rx164.c alpha: remove obsolete hw_interrupt_type 2009-06-16 19:47:46 -07:00
sys_sable.c alpha: remove obsolete hw_interrupt_type 2009-06-16 19:47:46 -07:00
sys_sio.c
sys_sx164.c
sys_takara.c alpha: remove obsolete hw_interrupt_type 2009-06-16 19:47:46 -07:00
sys_titan.c alpha: remove obsolete hw_interrupt_type 2009-06-16 19:47:46 -07:00
sys_wildfire.c alpha: remove obsolete hw_interrupt_type 2009-06-16 19:47:46 -07:00
systbls.S
time.c
traps.c alpha: convert u64 to unsigned long long 2009-04-01 08:59:16 -07:00
vmlinux.lds.S linker script: unify usage of discard definition 2009-07-09 11:27:40 +09:00