From 6862c8779608ac60c0b5a58f5f8c3d2beaa2e4ca Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Thu, 11 Sep 2008 23:24:14 +0000 Subject: [PATCH] set the stack alignment to 2^4 on apple [r21865] --- main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.c b/main.c index 84d4bb9..2497541 100644 --- a/main.c +++ b/main.c @@ -580,6 +580,11 @@ int main(int argc, char **argv) break; } +#ifdef __APPLE__ + /* Darwin expects the stack to be aligned to 16byte boundary */ + firm_be_option("ia32-stackalign=4"); +#endif + /* parse rest of options */ filetype_t forced_filetype = FILETYPE_AUTODETECT; bool help_displayed = false; -- 2.20.1