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:
Callum Farmer 2024-07-14 18:38:42 +01:00
parent b6f99c7ac5
commit 16a913e01c
No known key found for this signature in database
GPG Key ID: 9A5B19E18CD0013C
1 changed files with 4 additions and 1 deletions

View File

@ -264,7 +264,10 @@ ASFLAGS += $(ARCH3264)
LDFLAGS += -nostdlib
ifeq ($(IS_MINGW32),)
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
LDFLAGS += -Wl,--warn-common -Wl,--no-undefined -Wl,--fatal-warnings \
-Wl,--build-id=sha1