diff options
author | Callum Farmer <gmbr3@opensuse.org> | 2023-03-22 15:30:04 +0000 |
---|---|---|
committer | Callum Farmer <gmbr3@opensuse.org> | 2023-03-22 15:32:24 +0000 |
commit | bc233a7a4b1eef18e85928117d3851bf4bb94836 (patch) | |
tree | 4afc17a499de2e9703dc752c3dc5cc1a8fcd51a1 /gnuefi/elf_x86_64_efi.lds | |
parent | 0f9c15fe4fd4b37691fdb505794b0d73df21d4d5 (diff) | |
download | gnu-efi-bc233a7a4b1eef18e85928117d3851bf4bb94836.tar.gz |
Prevent deletion of .reloc by gc-sections
Add keyword KEEP to prevent .reloc being removed
when using --gc-sections with GNU ld
Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
Diffstat (limited to 'gnuefi/elf_x86_64_efi.lds')
-rw-r--r-- | gnuefi/elf_x86_64_efi.lds | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gnuefi/elf_x86_64_efi.lds b/gnuefi/elf_x86_64_efi.lds index 2f0ecaa..9ec9cc1 100644 --- a/gnuefi/elf_x86_64_efi.lds +++ b/gnuefi/elf_x86_64_efi.lds @@ -26,7 +26,7 @@ SECTIONS . = ALIGN(4096); .reloc : { - *(.reloc) + KEEP (*(.reloc)) } . = ALIGN(4096); .data : |