mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-23 19:34:14 +07:00
f77767ed5f
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> |
||
---|---|---|
.. | ||
alignedmem.c | ||
arm32-stub.c | ||
arm64-stub.c | ||
efi-stub-helper.c | ||
efi-stub.c | ||
efistub.h | ||
fdt.c | ||
file.c | ||
gop.c | ||
hidden.h | ||
Makefile | ||
mem.c | ||
pci.c | ||
random.c | ||
randomalloc.c | ||
relocate.c | ||
secureboot.c | ||
skip_spaces.c | ||
string.c | ||
tpm.c | ||
x86-stub.c |