diff options
author | Hsiu-Ming Chang | 2020-08-14 21:50:36 +0800 |
---|---|---|
committer | Hsiu-Ming Chang | 2020-08-14 22:18:16 +0800 |
commit | 819c53ebacb2113104ac5131ee2e4189497d3b5b (patch) | |
tree | edc736973ef62fc390cfa70fb984cb373a4c2947 /0001-Set-noexecstack-on-linker-generated-binary-data-files.patch | |
download | aur-819c53ebacb2113104ac5131ee2e4189497d3b5b.tar.gz |
Initial commit
Diffstat (limited to '0001-Set-noexecstack-on-linker-generated-binary-data-files.patch')
-rw-r--r-- | 0001-Set-noexecstack-on-linker-generated-binary-data-files.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/0001-Set-noexecstack-on-linker-generated-binary-data-files.patch b/0001-Set-noexecstack-on-linker-generated-binary-data-files.patch new file mode 100644 index 000000000000..8b44749edffe --- /dev/null +++ b/0001-Set-noexecstack-on-linker-generated-binary-data-files.patch @@ -0,0 +1,24 @@ +From: Tor Andersson <tor.andersson@artifex.com> +Date: Thu, 4 Jun 2020 14:38:01 +0000 (+0200) +Subject: Set noexecstack on linker-generated binary data files. +X-Git-Url: https://git.ghostscript.com/?p=mupdf.git;a=commitdiff_plain;h=e52e0c2c0297d70d0e4fc293ccd047becb18f322;hp=a86b1fa0119edef1683dc06f035bd329b54613a5 + +Set noexecstack on linker-generated binary data files. + +This will prevent the linker from flagging the mupdf library and +executables as needing an executable stack. +--- + +diff --git a/Makefile b/Makefile +index f812ac074..417663dd8 100644 +--- a/Makefile ++++ b/Makefile +@@ -64,7 +64,7 @@ endif + LINK_CMD = $(QUIET_LINK) $(MKTGTDIR) ; $(CC) $(LDFLAGS) -o $@ $^ $(LIBS) + TAGS_CMD = $(QUIET_TAGS) ctags -R --c-kinds=+p + WINDRES_CMD = $(QUIET_WINDRES) $(MKTGTDIR) ; $(WINDRES) $< $@ +-OBJCOPY_CMD = $(QUIET_OBJCOPY) $(MKTGTDIR) ; $(LD) -r -b binary -o $@ $< ++OBJCOPY_CMD = $(QUIET_OBJCOPY) $(MKTGTDIR) ; $(LD) -r -b binary -z noexecstack -o $@ $< + + # --- Rules --- + |