Branch: Tag:

2018-11-25

2018-11-25 11:53:08 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Configure [NetBSD]: Search for paxctl.

Attempt to use paxctl to alter the PaX flags for the pike binary
to allow for generation of machine code.

Note that paxctl on NetBSD and Linux are incompatible.

116:      FALLBACK_CC=@FALLBACK_CC@    + PAXCTL=@PAXCTL@ + PAXCTL_ALLOW_MPROTECT=@PAXCTL_ALLOW_MPROTECT@ +    AR=@AR@      LD=@LD@
352:    $(LD) $(LDFLAGS) main.o $(CORE_OBJ) tmodule.o \    `cat modules/linker_options` \    $(LIBS) -o tpike@EXEEXT@ + # Turn off PaX mprotect inhibition on NetBSD and others. +  @$(PAXCTL_ALLOW_MPROTECT) tpike      # Only want tpike to exist for use with $(RUNPIKE) in the modules. We   # don't want to require it actually being up-to-date.
383:    `cat modules/linker_options @STATIC_POST_MODULES_LINKOPTS@` \    $(LIBS) @PIKE_ICON_RES@ -o pike    @MT_FIX_PIKE_EXE@ + # Turn off PaX mprotect inhibition on NetBSD and others. +  @$(PAXCTL_ALLOW_MPROTECT) pike   # The dumped modules are removed whenever Pike is relinked since some   # of the bytecode methods (e.g. ia32) store absolute addresses to   # global structs. That should probably be fixed in them so that dumped