HACK: firmware, LLVMLinux: fix EFI libstub with clang
authorBernhard Rosenkränzer <bero@linaro.org>
Wed, 22 Feb 2017 23:42:02 +0000 (00:42 +0100)
committerStefan Agner <stefan@agner.ch>
Mon, 7 Aug 2017 06:21:11 +0000 (23:21 -0700)
commit79942e9c686136802bf1075cf8a5da4f7494e503
tree118527d608ad6265e70133635abcea3fa4577249
parentb16221c99315ddf81a52fa47589371b66cb9d21e
HACK: firmware, LLVMLinux: fix EFI libstub with clang

Without any extra guidance, clang will generate libstub with either
absolute or relative ELF relocations.  Use the right combination of
-fpic and -fno-pic on different files to avoid this.

Signed-off-by: Greg Hackmann <ghackmann@google.com>
Forward-ported-by: Bernhard Rosenkränzer <bero@linaro.org>
Signed-off-by: Bernhard Rosenkränzer <bero@linaro.org>
drivers/firmware/efi/libstub/Makefile