commit | a6d272127bb6a2eb09dc182cc39c49e77310ade4 | [log] [tgz] |
---|---|---|
author | Rich Felker <dalias@aerifal.cx> | Mon Jun 03 17:32:42 2013 -0400 |
committer | Rich Felker <dalias@aerifal.cx> | Mon Jun 03 17:32:42 2013 -0400 |
tree | 519a62cc82bbd8b0edb0e886af2623be1653aa41 | |
parent | 44b4d09fc0626541ca12cf96f65adc21ab1fc413 [diff] [blame] |
align stack properly for calling global ctors/dtors on x86[_64] failure to do so was causing crashes on x86_64 when ctors used SSE, which was first observed when ctors called variadic functions due to the SSE prologue code inserted into every variadic function.
diff --git a/crt/i386/crtn.s b/crt/i386/crtn.s index 055451e..f3b61e0 100644 --- a/crt/i386/crtn.s +++ b/crt/i386/crtn.s
@@ -1,5 +1,7 @@ .section .init + add $12,%esp ret .section .fini + add $12,%esp ret