llvm-capstone/compiler-rt/test/sanitizer_common/netbsd_commands/run_nomprotect.sh
Michał Górny 190b9110c2 [compiler-rt] [test] Disable MPROTECT on two builtin tests
Introduce a new %run_nomprotect substitution to run tests that do not
work with MPROTECT enabled.  This uses paxctl via a wrapper on NetBSD,
and evaluates to plain %run on other systems.

Differential Revision: https://reviews.llvm.org/D71513
2019-12-20 17:50:53 +01:00

4 lines
49 B
Bash

#!/bin/sh
/usr/sbin/paxctl +m "${1}"
exec "${@}"