align stack properly for calling global ctors/dtors on x86[_64]
authorRich Felker <dalias@aerifal.cx>
Mon, 3 Jun 2013 21:32:42 +0000 (17:32 -0400)
committerRich Felker <dalias@aerifal.cx>
Mon, 3 Jun 2013 21:32:42 +0000 (17:32 -0400)
commita6d272127bb6a2eb09dc182cc39c49e77310ade4
tree519a62cc82bbd8b0edb0e886af2623be1653aa41
parent44b4d09fc0626541ca12cf96f65adc21ab1fc413
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.
crt/i386/crti.s
crt/i386/crtn.s
crt/x86_64/crti.s
crt/x86_64/crtn.s