android_kernel_xiaomi_sm8350/arch/blackfin
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
..
boot Blackfin: stick the CPU name into boot image name 2009-06-22 21:16:03 -04:00
configs Blackfin: update defconfigs 2009-06-22 21:16:01 -04:00
include/asm Blackfin: fix dma-mapping build errors 2009-06-22 22:31:00 -04:00
kernel linker script: unify usage of discard definition 2009-07-09 11:27:40 +09:00
lib Blackfin: export ip_compute_csum/csum_partial_copy_from_user symbols 2009-06-13 07:20:06 -04:00
mach-bf518 Blackfin: unify memory map headers 2009-06-22 21:16:07 -04:00
mach-bf527 Blackfin: drop unused ISP1760 port1_disable from board resources 2009-06-22 21:16:13 -04:00
mach-bf533 Blackfin: unify memory map headers 2009-06-22 21:16:07 -04:00
mach-bf537 Blackfin: drop unused ISP1760 port1_disable from board resources 2009-06-22 21:16:13 -04:00
mach-bf538 Blackfin: unify memory map headers 2009-06-22 21:16:07 -04:00
mach-bf548 Blackfin: drop unused ISP1760 port1_disable from board resources 2009-06-22 21:16:13 -04:00
mach-bf561 Blackfin: drop unused ISP1760 port1_disable from board resources 2009-06-22 21:16:13 -04:00
mach-common Blackfin: hook up new perf_counter_open syscall 2009-06-22 21:47:40 -04:00
mm Merge branch 'master' into for-next 2009-07-04 07:13:18 +09:00
oprofile
Kconfig Blackfin: fix GPTMR0_CLOCKSOURCE dependency on BFIN_GPTIMERS 2009-06-22 21:16:15 -04:00
Kconfig.debug Blackfin: make deferred hardware errors more exact 2009-06-12 06:11:44 -04:00
Makefile Blackfin: add support for bzip2/lzma compressed kernel images 2009-06-13 07:20:13 -04:00