Re: amd64 stack alignment in ld.so

2011-07-20 Thread Dale Rahn
On Wed, Jul 20, 2011 at 12:03:45AM +0200, Mark Kettenis wrote: > SSE needs a 16-byte aligned stack. Our kernel on randomizes the stack > to an ALIGNBYTES boundary, which for amd64 means 8-byte aligned. > Therefore we explicitly align the stack in crt0, but "constructors" in > shared libraries get

amd64 stack alignment in ld.so

2011-07-19 Thread Mark Kettenis
SSE needs a 16-byte aligned stack. Our kernel on randomizes the stack to an ALIGNBYTES boundary, which for amd64 means 8-byte aligned. Therefore we explicitly align the stack in crt0, but "constructors" in shared libraries get run directly by ld.so, before the crt0 code gets run. The diff below s