]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: remove no-op -p linker flag
authorGreg Hackmann <ghackmann@android.com>
Wed, 27 Jun 2018 19:46:14 +0000 (12:46 -0700)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 5 Jul 2018 18:12:48 +0000 (19:12 +0100)
commitc48dd3ca99c22c2e6fc5889f10992649db7dd438
tree7bef89bd785323a5b03a202af8739f99897a14ae
parentcf39849e1c4a5784e22735a2e909860ce62d280c
arm64: remove no-op -p linker flag

Linking the ARM64 defconfig kernel with LLVM lld fails with the error:

  ld.lld: error: unknown argument: -p
  Makefile:1015: recipe for target 'vmlinux' failed

Without this flag, the ARM64 defconfig kernel successfully links with
lld and boots on Dragonboard 410c.

After digging through binutils source and changelogs, it turns out that
-p is only relevant to ancient binutils installations targeting 32-bit
ARM.  binutils accepts -p for AArch64 too, but it's always been
undocumented and silently ignored.  A comment in
ld/emultempl/aarch64elf.em explains that it's "Only here for backwards
compatibility".

Since this flag is a no-op on ARM64, we can safely drop it.

Acked-by: Will Deacon <will.deacon@arm.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Greg Hackmann <ghackmann@google.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/Makefile