summaryrefslogtreecommitdiff
path: root/schulung_tools/mtrace
diff options
context:
space:
mode:
authorJohn Ogness <john.ogness@linutronix.de>2018-02-23 16:03:43 +0100
committerJohn Ogness <john.ogness@linutronix.de>2018-02-23 16:03:43 +0100
commit8549e7b26a9d770e12dbc98da91664fd8821dab2 (patch)
tree8af534910b1ccf87aa0c70911fca4f656ba104b6 /schulung_tools/mtrace
parent12ca05dd9868f3596c257fddcc671f79dec080c6 (diff)
mtrace: force PIE
In case it is run on a system where PIE is not the default, explicitly set for the binary to be built as PIE. Signed-off-by: John Ogness <john.ogness@linutronix.de>
Diffstat (limited to 'schulung_tools/mtrace')
-rw-r--r--schulung_tools/mtrace/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/schulung_tools/mtrace/Makefile b/schulung_tools/mtrace/Makefile
index 224a9fa..5c7b015 100644
--- a/schulung_tools/mtrace/Makefile
+++ b/schulung_tools/mtrace/Makefile
@@ -1,5 +1,5 @@
leak: leak.c
- gcc -g -O0 -o$@ $<
+ gcc -pie -fPIC -g -O0 -o$@ $<
clean:
rm -f leak