From fe330f02dfebbaa462e0f4590de1049e47da54b9 Mon Sep 17 00:00:00 2001 From: Jan Janssen Date: Mon, 8 Nov 2021 13:43:55 +0100 Subject: 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. --- meson_options.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'meson_options.txt') 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') -- cgit v1.2.1