summaryrefslogtreecommitdiff
path: root/meson_options.txt
diff options
context:
space:
mode:
authorJan Janssen <medhefgo@web.de>2021-11-08 13:43:55 +0100
committerJan Janssen <medhefgo@web.de>2021-11-29 14:24:56 +0100
commitfe330f02dfebbaa462e0f4590de1049e47da54b9 (patch)
tree5fb95ba1135c97c1b9c6f26beb401e599414f581 /meson_options.txt
parent8fb444011ef4017a441b707ab00ccddf30b465a6 (diff)
downloadsystemd-fe330f02dfebbaa462e0f4590de1049e47da54b9.tar.gz
sd-boot: Let the compiler invoke the linker for us
For LTO to work, the linker has to be called with some magic sauce arguments. And the easiest way to get those is to just let the compiler to the job for us.
Diffstat (limited to 'meson_options.txt')
-rw-r--r--meson_options.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/meson_options.txt b/meson_options.txt
index 1e91bf1fd2..e4b85c73ee 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -411,7 +411,9 @@ option('gnu-efi', type : 'combo', choices : ['auto', 'true', 'false'],
description : 'gnu-efi support for sd-boot')
option('efi-cc', type : 'array',
description : 'the compiler to use for EFI modules')
-option('efi-ld', type : 'string', value : 'ld',
+# Note that LLD does not support PE/COFF relocations
+# https://lists.llvm.org/pipermail/llvm-dev/2021-March/149234.html
+option('efi-ld', type : 'combo', choices : ['bfd', 'gold'],
description : 'the linker to use for EFI modules')
option('efi-libdir', type : 'string',
description : 'path to the EFI lib directory')