Force word-alignment of static OCaml data.

On a Power7/RHEL6.4 machine, misalignment of the .data section was observed.


git-svn-id: http://caml.inria.fr/svn/ocaml/branches/ppc64@16341 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
master
Xavier Leroy 2015-08-06 14:39:35 +00:00
parent 28eb4583bd
commit 7426611bae
1 changed files with 1 additions and 0 deletions

View File

@ -1110,6 +1110,7 @@ let emit_item = function
let data l =
emit_string data_space;
` .align {emit_int (if ppc64 then 3 else 2)}\n`;
List.iter emit_item l
(* Beginning / end of an assembly file *)