From 7426611bae3aa792cd41b62ffc10a270f63ceb22 Mon Sep 17 00:00:00 2001 From: Xavier Leroy Date: Thu, 6 Aug 2015 14:39:35 +0000 Subject: [PATCH] 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 --- asmcomp/power/emit.mlp | 1 + 1 file changed, 1 insertion(+) diff --git a/asmcomp/power/emit.mlp b/asmcomp/power/emit.mlp index 6c8c26fc1..91f922398 100644 --- a/asmcomp/power/emit.mlp +++ b/asmcomp/power/emit.mlp @@ -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 *)