Project

General

Profile

Actions

Bug #7324

closed

stack needs to be sufficiently aligned for SSE before init_array are called

Added by Rich Lowe about 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
lib - userland libraries
Start date:
2016-08-24
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

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.


Related issues

Related to OpenIndiana Distribution - Feature #6965: Provide GCC 5 as additional compilerResolvedOI Userland2016-05-11

Actions
Actions #1

Updated by Electric Monk about 5 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 0 to 100

git commit 3cae6de1ad548d0528165017a831a2dd74b66745

commit  3cae6de1ad548d0528165017a831a2dd74b66745
Author: Richard Lowe <richlowe@richlowe.net>
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 <rm@joyent.com>
    Reviewed by: Patrick Mooney <patrick.mooney@joyent.com>
    Approved by: Gordon Ross <gwr@nexenta.com>

Actions #2

Updated by Aurélien Larcher about 5 years ago

  • Related to Feature #6965: Provide GCC 5 as additional compiler added
Actions

Also available in: Atom PDF