Skip to content
Snippets Groups Projects
Commit ce7eb8d4 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Call elfctl -e +noprotmax in binaries that do JS

Prevents crashes on modern FreeBSD systems that default to implicit
PROT_MAX in the JS code.
(It's possible that +wxneeded will be needed too.. still experimenting)
parent edff80ff
No related branches found
No related tags found
No related merge requests found
Pipeline #6642 failed
...@@ -175,6 +175,10 @@ $(SBBS): $(JS_DEPS) $(CRYPT_DEPS) $(OBJS) $(LIBS) $(EXTRA_SBBS_DEPENDS) $(ENCODE ...@@ -175,6 +175,10 @@ $(SBBS): $(JS_DEPS) $(CRYPT_DEPS) $(OBJS) $(LIBS) $(EXTRA_SBBS_DEPENDS) $(ENCODE
ifeq ($(os), netbsd) ifeq ($(os), netbsd)
paxctl +m $(SBBS) paxctl +m $(SBBS)
endif endif
ifeq ($(os), freebsd)
elfctl -e +noprotmax $(SBBS)
endif
# FTP Server Link Rule # FTP Server Link Rule
$(FTPSRVR): $(MTOBJODIR)/ftpsrvr.o $(FTPSRVR): $(MTOBJODIR)/ftpsrvr.o
...@@ -263,6 +267,9 @@ $(JSDOOR): $(JSDOOR_OBJS) $(XPDEV_LIB) $(ENCODE_LIB) $(HASH_LIB) $(CIOLIB-MT) | ...@@ -263,6 +267,9 @@ $(JSDOOR): $(JSDOOR_OBJS) $(XPDEV_LIB) $(ENCODE_LIB) $(HASH_LIB) $(CIOLIB-MT) |
ifeq ($(os), netbsd) ifeq ($(os), netbsd)
paxctl +m $(JSDOOR) paxctl +m $(JSDOOR)
endif endif
ifeq ($(os), freebsd)
elfctl -e +noprotmax $(JSDOOR)
endif
# JSEXEC # JSEXEC
$(JSEXEC): $(JSEXEC_OBJS) $(SBBS) $(CIOLIB-MT) | $(EXEODIR) $(JSEXEC): $(JSEXEC_OBJS) $(SBBS) $(CIOLIB-MT) | $(EXEODIR)
...@@ -271,6 +278,9 @@ $(JSEXEC): $(JSEXEC_OBJS) $(SBBS) $(CIOLIB-MT) | $(EXEODIR) ...@@ -271,6 +278,9 @@ $(JSEXEC): $(JSEXEC_OBJS) $(SBBS) $(CIOLIB-MT) | $(EXEODIR)
ifeq ($(os), netbsd) ifeq ($(os), netbsd)
paxctl +m $(JSEXEC) paxctl +m $(JSEXEC)
endif endif
ifeq ($(os), freebsd)
elfctl -e +noprotmax $(JSDOOR)
endif
# ANS2ASC # ANS2ASC
$(ANS2ASC): $(OBJODIR)/ans2asc.o $(OBJODIR)/sauce.o $(XPDEV_LIB) | $(EXEODIR) $(ANS2ASC): $(OBJODIR)/ans2asc.o $(OBJODIR)/sauce.o $(XPDEV_LIB) | $(EXEODIR)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment