diff options
Diffstat (limited to 'gnu-efi/gnu-efi-3.0.18-clang.patch')
| -rw-r--r-- | gnu-efi/gnu-efi-3.0.18-clang.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/gnu-efi/gnu-efi-3.0.18-clang.patch b/gnu-efi/gnu-efi-3.0.18-clang.patch new file mode 100644 index 0000000..7819351 --- /dev/null +++ b/gnu-efi/gnu-efi-3.0.18-clang.patch | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | https://bugs.gentoo.org/930538 | ||
| 2 | https://github.com/ncroxon/gnu-efi/issues/4 | ||
| 3 | https://github.com/ncroxon/gnu-efi/pull/5 | ||
| 4 | https://github.com/ncroxon/gnu-efi/commit/a0111e0df165d49cf34fc4f5fae46fc0921a756d | ||
| 5 | |||
| 6 | From a0111e0df165d49cf34fc4f5fae46fc0921a756d Mon Sep 17 00:00:00 2001 | ||
| 7 | From: Callum Farmer <gmbr3@opensuse.org> | ||
| 8 | Date: Wed, 24 Apr 2024 12:04:48 +0100 | ||
| 9 | Subject: [PATCH] Disable RELRO | ||
| 10 | |||
| 11 | No point having PT_GNU_RELRO as ELF data won't exist when merging into PE32+ file | ||
| 12 | |||
| 13 | Unbreaks lld usage which complains about linker script | ||
| 14 | Fixes ncroxon/gnu-efi#4 | ||
| 15 | --- a/Make.defaults | ||
| 16 | +++ b/Make.defaults | ||
| 17 | @@ -199,7 +199,7 @@ endif | ||
| 18 | ARFLAGS := rDv | ||
| 19 | ASFLAGS += $(ARCH3264) | ||
| 20 | LDFLAGS += -nostdlib --warn-common --no-undefined --fatal-warnings \ | ||
| 21 | - --build-id=sha1 -z nocombreloc | ||
| 22 | + --build-id=sha1 -z nocombreloc -z norelro | ||
| 23 | |||
| 24 | ifneq ($(ARCH),arm) | ||
| 25 | export LIBGCC=$(shell $(CC) $(CFLAGS) $(ARCH3264) -print-libgcc-file-name) | ||
| 26 | |||