[PATCH] ARM: use --fix-v4bx to allow building ARMv4 with future gcc
Russell King - ARM Linux
linux at arm.linux.org.uk
Thu Mar 17 03:46:45 PDT 2016
On Thu, Mar 17, 2016 at 11:38:30AM +0100, Arnd Bergmann wrote:
> Compiling with -march=armv4t leads the compiler to using 'bx reg'
> instructions instead of 'ld pc,reg'. This is not supported on
ITYM mov pc, reg
> However, in order to still allow users of old toolchains to link
> the kernel, we only pass the option to linkers that support it,
> based on a $(ld-option ...) call. I'm intentionally passing the
> flag to all linker versions here regardless of whether it's needed
> or not, so we can more easily spot any regressions if something
> goes wrong.
>
> For consistency, I'm passing the --fix-v4bx flag for both the
> vmlinux final link and the individual loadable modules.
> The module loader code already interprets the R_ARM_V4BX relocations
> in loadable modules and converts bx instructions into ldr even
MOV.
--
RMK's Patch system: http://www.arm.linux.org.uk/developer/patches/
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.
More information about the linux-arm-kernel
mailing list