]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: localise Image objcopy flags
authorMark Rutland <mark.rutland@arm.com>
Tue, 12 Jul 2016 15:28:01 +0000 (16:28 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 19 Jul 2016 14:30:23 +0000 (15:30 +0100)
commit6fa19a2ab26a8b2e965cbd8871d049d6c741ab98
tree4465e46c9ec93dedf7c88a63cf9d4b4b50fc2f66
parent14c0c8f4d5acd65ed981a3e2effe81e7f7c43b43
arm64: localise Image objcopy flags

We currently define OBJCOPYFLAGS in the top-level arm64 Makefile, and
thus these flags will be passed to all uses of objcopy, kernel-wide, for
which they are not explicitly overridden. The flags we set are intended
for converting vmlinux (and ELF) into Image (a raw binary), and thus the
flags chosen are problematic for some other uses which do not expect a
raw binary result, e.g. the upcoming lkdtm rodata test:

  http://www.openwall.com/lists/kernel-hardening/2016/06/08/2

This patch localises the objcopy flags such that they are only used for
the vmlinux -> Image conversion.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Acked-by: Kees Cook <keescook@chromium.org>
Tested-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/Makefile
arch/arm64/boot/Makefile