summaryrefslogtreecommitdiffstats
path: root/gnu-efi/gnu-efi-3.0.18-clang.patch
diff options
context:
space:
mode:
Diffstat (limited to 'gnu-efi/gnu-efi-3.0.18-clang.patch')
-rw-r--r--gnu-efi/gnu-efi-3.0.18-clang.patch26
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 @@
1https://bugs.gentoo.org/930538
2https://github.com/ncroxon/gnu-efi/issues/4
3https://github.com/ncroxon/gnu-efi/pull/5
4https://github.com/ncroxon/gnu-efi/commit/a0111e0df165d49cf34fc4f5fae46fc0921a756d
5
6From a0111e0df165d49cf34fc4f5fae46fc0921a756d Mon Sep 17 00:00:00 2001
7From: Callum Farmer <gmbr3@opensuse.org>
8Date: Wed, 24 Apr 2024 12:04:48 +0100
9Subject: [PATCH] Disable RELRO
10
11No point having PT_GNU_RELRO as ELF data won't exist when merging into PE32+ file
12
13Unbreaks lld usage which complains about linker script
14Fixes 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