mirror of https://github.com/ncroxon/gnu-efi
Disable norelro on macOS
The no platform GNU ELF linker rejects it Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
This commit is contained in:
parent
b6f99c7ac5
commit
16a913e01c
|
@ -264,7 +264,10 @@ ASFLAGS += $(ARCH3264)
|
||||||
LDFLAGS += -nostdlib
|
LDFLAGS += -nostdlib
|
||||||
ifeq ($(IS_MINGW32),)
|
ifeq ($(IS_MINGW32),)
|
||||||
LDFLAGS += --warn-common --no-undefined --fatal-warnings \
|
LDFLAGS += --warn-common --no-undefined --fatal-warnings \
|
||||||
--build-id=sha1 -z nocombreloc -z norelro
|
--build-id=sha1 -z nocombreloc
|
||||||
|
ifeq ($(USING_APPLE),0)
|
||||||
|
LDFLAGS += -z norelro
|
||||||
|
endif
|
||||||
else
|
else
|
||||||
LDFLAGS += -Wl,--warn-common -Wl,--no-undefined -Wl,--fatal-warnings \
|
LDFLAGS += -Wl,--warn-common -Wl,--no-undefined -Wl,--fatal-warnings \
|
||||||
-Wl,--build-id=sha1
|
-Wl,--build-id=sha1
|
||||||
|
|
Loading…
Reference in New Issue