stack needs to be sufficiently aligned for SSE before init_array are called
Robert in #3912 fixed the CRT to align the stack so that .init functions may use SSE. Unfortunately, that's not sufficient to allow functions in .init_array to do so, since they're called more naturally from call_init in rtld, which means we need the stack aligned as soon as possible after process startup, in rt_boot.
Otherwise we see the same sort of SEGV that Robert did there, where the addr is a movaps instruction, and one of the operands is insufficiently aligned.
Updated by Electric Monk about 5 years ago
- Status changed from In Progress to Closed
- % Done changed from 0 to 100
commit 3cae6de1ad548d0528165017a831a2dd74b66745 Author: Richard Lowe <email@example.com> Date: 2016-08-27T22:38:54.000Z 7324 stack needs to be sufficiently aligned for SSE before init_array are called Reviewed by: Robert Mustacchi <firstname.lastname@example.org> Reviewed by: Patrick Mooney <email@example.com> Approved by: Gordon Ross <firstname.lastname@example.org>