linux_dsm_epyc7002/arch/arm/mach-bcm
Stefan Agner 3fe1ee40b2 ARM: use arch_extension directive instead of arch argument
The LLVM Target parser currently does not allow to specify the security
extension as part of -march (see also LLVM Bug 40186 [0]). When trying
to use Clang with LLVM's integrated assembler, this leads to build
errors such as this:
  clang-8: error: the clang compiler does not support '-Wa,-march=armv7-a+sec'

Use ".arch_extension sec" to enable the security extension in a more
portable fasion. Also make sure to use ".arch armv7-a" in case a v6/v7
multi-platform kernel is being built.

Note that this is technically not exactly the same as the old code
checked for availabilty of the security extension by calling as-instr.
However, there are already other sites which use ".arch_extension sec"
unconditionally, hence de-facto we need an assembler capable of
".arch_extension sec" already today (arch/arm/mm/proc-v7.S). The
arch extension "sec" is available since binutils 2.21 according to
its documentation [1].

[0] https://bugs.llvm.org/show_bug.cgi?id=40186
[1] https://sourceware.org/binutils/docs-2.21/as/ARM-Options.html

Signed-off-by: Stefan Agner <stefan@agner.ch>
Acked-by: Mans Rullgard <mans@mansr.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
2019-06-19 09:44:25 -07:00
..
bcm63xx_pmb.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
bcm63xx_smp.c ARM: bcm: fix a leaked reference by adding missing of_node_put 2019-05-20 09:34:26 -07:00
bcm63xx_smp.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
bcm63xx.c ARM: BCM63XX: add basic support for the Broadcom BCM63138 DSL SoC 2014-09-17 10:56:06 -07:00
bcm_5301x.c ARM: BCM5301X: Add back handler ignoring external imprecise aborts 2016-11-16 12:39:05 -08:00
bcm_cygnus.c ARM: cygnus: fix const declaration bcm_cygnus_dt_compat 2015-03-24 15:13:23 -07:00
bcm_hr2.c ARM: bcm: Add support for Broadcom Hurricane 2 SoC 2017-10-12 11:30:20 -07:00
bcm_kona_smc.c ARM: use arch_extension directive instead of arch argument 2019-06-19 09:44:25 -07:00
bcm_kona_smc.h ARM: bcm: use inline assembly for "smc" request 2014-04-25 08:51:36 -04:00
bcm_nsp.c ARM: NSP: Add basic support for Broadcom Northstar Plus SoC 2015-09-14 15:44:18 -07:00
board_bcm281xx.c ARM: bcm: fix a leaked reference by adding missing of_node_put 2019-05-20 09:34:26 -07:00
board_bcm2835.c ARM: mach-bcm: Switch bcm2835 and platsmp to SPDX identifier 2018-11-14 20:55:30 +01:00
board_bcm21664.c ARM: SoC platform updates for v4.8 2016-08-01 18:27:08 -04:00
board_bcm23550.c ARM: Add support for Broadcom BCM23550 SoC 2016-06-06 11:47:28 -07:00
brcmstb.c soc: brcmstb: biuctrl: Move to early_initcall 2017-12-20 17:37:44 -08:00
Kconfig ARM: bcm: Enable PINCTRL for ARCH_BRCMSTB 2019-06-11 14:59:50 -07:00
kona_l2_cache.c ARM: bcm: fix missing include of kona_l2_cache.h 2016-06-08 10:17:15 -07:00
kona_l2_cache.h ARM: bcm: rename "kona.h" and "kona.c" 2014-04-25 08:51:38 -04:00
Makefile ARM: use arch_extension directive instead of arch argument 2019-06-19 09:44:25 -07:00
platsmp-brcmstb.c ARM: bcm: fix a leaked reference by adding missing of_node_put 2019-05-20 09:34:26 -07:00
platsmp.c ARM: mach-bcm: Switch bcm2835 and platsmp to SPDX identifier 2018-11-14 20:55:30 +01:00
platsmp.h ARM: mach-bcm: Switch bcm2835 and platsmp to SPDX identifier 2018-11-14 20:55:30 +01:00