diff options
author | Jan Janssen <medhefgo@web.de> | 2021-11-08 13:43:55 +0100 |
---|---|---|
committer | Jan Janssen <medhefgo@web.de> | 2021-11-29 14:24:56 +0100 |
commit | fe330f02dfebbaa462e0f4590de1049e47da54b9 (patch) | |
tree | 5fb95ba1135c97c1b9c6f26beb401e599414f581 /meson_options.txt | |
parent | Merge pull request #21534 from yuwata/udev-accept-longer-hw-address (diff) | |
download | systemd-fe330f02dfebbaa462e0f4590de1049e47da54b9.tar.xz systemd-fe330f02dfebbaa462e0f4590de1049e47da54b9.zip |
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.txt | 4 |
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') |