linux_dsm_epyc7002/drivers/firmware/efi/libstub
Ard Biesheuvel f77767ed5f efi/libstub/x86: Work around LLVM ELF quirk build regression
When building the x86 EFI stub with Clang, the libstub Makefile rules
that manipulate the ELF object files may throw an error like:

    STUBCPY drivers/firmware/efi/libstub/efi-stub-helper.stub.o
  strip: drivers/firmware/efi/libstub/efi-stub-helper.stub.o: Failed to find link section for section 10
  objcopy: drivers/firmware/efi/libstub/efi-stub-helper.stub.o: Failed to find link section for section 10

This is the result of a LLVM feature [0] where symbol references are
stored in a LLVM specific .llvm_addrsig section in a non-transparent way,
causing generic ELF tools such as strip or objcopy to choke on them.

So force the compiler not to emit these sections, by passing the
appropriate command line option.

[0] https://sourceware.org/bugzilla/show_bug.cgi?id=23817

Cc: Nick Desaulniers <ndesaulniers@google.com>
Cc: Peter Collingbourne <pcc@google.com>
Cc: Sami Tolvanen <samitolvanen@google.com>
Reported-by: Arnd Bergmann <arnd@arndb.de>
Suggested-by: Fangrui Song <maskray@google.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
2020-05-05 09:28:39 +02:00
..
alignedmem.c efi/libstub: Add API function to allocate aligned memory 2020-04-24 14:52:16 +02:00
arm32-stub.c efi/libstub: Move pr_efi/pr_efi_err into efi namespace 2020-05-01 09:40:02 +02:00
arm64-stub.c efi/libstub: Move pr_efi/pr_efi_err into efi namespace 2020-05-01 09:40:02 +02:00
efi-stub-helper.c efi/libstub: Unify initrd loading across architectures 2020-05-01 09:40:02 +02:00
efi-stub.c efi/libstub: Check return value of efi_parse_options 2020-05-01 09:40:02 +02:00
efistub.h efi/libstub: Fix mixed mode boot issue after macro refactor 2020-05-05 09:25:39 +02:00
fdt.c efi/libstub: Move pr_efi/pr_efi_err into efi namespace 2020-05-01 09:40:02 +02:00
file.c efi/libstub: Move pr_efi/pr_efi_err into efi namespace 2020-05-01 09:40:02 +02:00
gop.c efi/gop: Use efi_err for error messages 2020-05-01 09:40:02 +02:00
hidden.h efi/libstub: Use hidden visibility for all source files 2020-02-23 21:57:12 +01:00
Makefile efi/libstub/x86: Work around LLVM ELF quirk build regression 2020-05-05 09:28:39 +02:00
mem.c efi/libstub: Move efi_relocate_kernel() into separate source file 2020-04-24 14:52:16 +02:00
pci.c efi/libstub: Move pr_efi/pr_efi_err into efi namespace 2020-05-01 09:40:02 +02:00
random.c efi/libstub: Describe RNG functions 2020-02-23 21:57:19 +01:00
randomalloc.c efi/libstub/random: Increase random alloc granularity 2020-04-23 20:15:06 +02:00
relocate.c efi/libstub: Move pr_efi/pr_efi_err into efi namespace 2020-05-01 09:40:02 +02:00
secureboot.c efi/libstub: Move pr_efi/pr_efi_err into efi namespace 2020-05-01 09:40:02 +02:00
skip_spaces.c efi/libstub: Clean up command line parsing routine 2020-02-23 21:57:15 +01:00
string.c efi/libstub: Clean up command line parsing routine 2020-02-23 21:57:15 +01:00
tpm.c efi/tpm: Use efi_err for error messages 2020-05-01 09:40:02 +02:00
x86-stub.c efi/libstub: Check return value of efi_parse_options 2020-05-01 09:40:02 +02:00