mirror of
https://github.com/systemd/systemd.git
synced 2024-12-25 01:34:28 +03:00
systemd-boot: LLVM/lld does not support PE/COFF relocations. Bail out with an error message
This commit is contained in:
parent
c68fc3514d
commit
e39288193f
@ -45,10 +45,17 @@ if conf.get('ENABLE_EFI') == 1 and get_option('gnu-efi') != 'false'
|
||||
if efi_cc.length() == 0
|
||||
efi_cc = cc.cmd_array()
|
||||
endif
|
||||
efi_ld = get_option('efi-ld')
|
||||
efi_ld = get_option('efi-ld').to_lower()
|
||||
if efi_ld == ''
|
||||
efi_ld = find_program('ld', required: true)
|
||||
endif
|
||||
|
||||
if efi_ld == 'lld' or efi_ld == 'ld.lld'
|
||||
# LLVM/LLD does not support PE/COFF relocations
|
||||
# https://lists.llvm.org/pipermail/llvm-dev/2021-March/149234.html
|
||||
error('LLVM/lld does not support PE/COFF relocations. Use different linker for EFI image.')
|
||||
endif
|
||||
|
||||
efi_incdir = get_option('efi-includedir')
|
||||
|
||||
gnu_efi_path_arch = ''
|
||||
|
Loading…
Reference in New Issue
Block a user