Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/taviso/loadlibrary.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTavis Ormandy <taviso@gmail.com>2017-05-24 17:38:37 +0300
committerTavis Ormandy <taviso@gmail.com>2017-05-24 17:38:37 +0300
commit0ab0dca4d4157d9ef9d73627e7884149017bd60a (patch)
treee01f27814082ceb118f32a1b9d9790cac89034bb
parent87e23b904b94be3be79a860479f9aa722e78cb62 (diff)
make sure stack is realigned, fixes #6
-rw-r--r--Makefile2
-rw-r--r--peloader/Makefile2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 9da577b..7d6f0dd 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-CFLAGS = -O3 -march=native -ggdb3 -m32 -std=gnu99 -fshort-wchar -Wno-multichar -Iinclude
+CFLAGS = -O3 -march=native -ggdb3 -m32 -std=gnu99 -fshort-wchar -Wno-multichar -Iinclude -mstackrealign
CPPFLAGS=-DNDEBUG -D_GNU_SOURCE -I. -Iintercept -Ipeloader
LDFLAGS = $(CFLAGS) -m32 -lm -Wl,--dynamic-list=exports.lst
LDLIBS = intercept/libdisasm.a -Wl,--whole-archive,peloader/libpeloader.a,--no-whole-archive
diff --git a/peloader/Makefile b/peloader/Makefile
index ee8cba8..60fe9e8 100644
--- a/peloader/Makefile
+++ b/peloader/Makefile
@@ -1,4 +1,4 @@
-CFLAGS = -O3 -march=native -ggdb3 -m32 -std=gnu99 -fshort-wchar -Wno-multichar -Iinclude
+CFLAGS = -O3 -march=native -ggdb3 -m32 -std=gnu99 -fshort-wchar -Wno-multichar -Iinclude -mstackrealign
CPPFLAGS=-DNDEBUG -D_GNU_SOURCE -I.
LDFLAGS = $(CFLAGS) -m32 -lm