Project

General

Profile

Bug #3533

machrel.{intel,amd}.c aren't safe with strict alignment

Added by Rich Lowe over 7 years ago. Updated about 2 years ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
tools - gate/build tools
Start date:
2013-02-06
Due date:
% Done:

0%

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

Description

In many places in machrel.intel.c and machrel.amd.c you see LINTED comments, this is to gag possible alignment problem warnings from lint.

As best as I can determine, everyone of these comments is misused, the issues are real and an alignment-safe load/store must be used.

cross-linking x86 from SPARC will otherwise SIGBUS. The (odd) linker UL_* macros should be used (or, probably, the less odd [LB]E_OUT* macros).

Also available in: Atom PDF