summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorPetr Mrázek2011-08-09 20:38:47 +0200
committerPetr Mrázek2011-08-09 20:38:47 +0200
commitc423bb6e8858559d044f21fb412dabe09ffbe35c (patch)
treec056c23b2e7cb8e5f98425a3ae1bb1afea488e09 /package
parentedb2a14c511a367359f59566e6a8c64ec22e09e2 (diff)
downloaddfhack-c423bb6e8858559d044f21fb412dabe09ffbe35c.tar.gz
dfhack-c423bb6e8858559d044f21fb412dabe09ffbe35c.tar.bz2
dfhack-c423bb6e8858559d044f21fb412dabe09ffbe35c.tar.xz
Use 'setarch i386 -R' on linux to be usre that ASLR won't break things.
Diffstat (limited to 'package')
-rwxr-xr-xpackage/linux/dfhack8
1 files changed, 4 insertions, 4 deletions
diff --git a/package/linux/dfhack b/package/linux/dfhack
index 28ec21e9..da70301d 100755
--- a/package/linux/dfhack
+++ b/package/linux/dfhack
@@ -45,21 +45,21 @@ case "$1" in
;;
-h | --helgrind)
shift
- LD_PRELOAD=./libdfhack.so valgrind $DF_HELGRIND_OPTS --tool=helgrind --log-file=helgrind.log ./libs/Dwarf_Fortress $*
+ LD_PRELOAD=./libdfhack.so setarch i386 -R valgrind $DF_HELGRIND_OPTS --tool=helgrind --log-file=helgrind.log ./libs/Dwarf_Fortress $*
ret=$?
;;
-v | --valgrind)
shift
- LD_PRELOAD=./libdfhack.so valgrind $DF_VALGRIND_OPTS --log-file=valgrind.log ./libs/Dwarf_Fortress $*
+ LD_PRELOAD=./libdfhack.so setarch i386 -R valgrind $DF_VALGRIND_OPTS --log-file=valgrind.log ./libs/Dwarf_Fortress $*
ret=$?
;;
-c | --callgrind)
shift
- LD_PRELOAD=./libdfhack.so valgrind $DF_CALLGRIND_OPTS --tool=callgrind --separate-threads=yes --dump-instr=yes --instr-atstart=no --log-file=callgrind.log ./libs/Dwarf_Fortress $*
+ LD_PRELOAD=./libdfhack.so setarch i386 -R valgrind $DF_CALLGRIND_OPTS --tool=callgrind --separate-threads=yes --dump-instr=yes --instr-atstart=no --log-file=callgrind.log ./libs/Dwarf_Fortress $*
ret=$?
;;
*)
- LD_PRELOAD=./libdfhack.so ./libs/Dwarf_Fortress $*
+ LD_PRELOAD=./libdfhack.so setarch i386 -R ./libs/Dwarf_Fortress $*
ret=$?
;;
esac