Support *BSD
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2359 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02master
parent
2f8db64011
commit
75d7f7d0aa
|
@ -272,8 +272,8 @@ let emit_call_gc gc =
|
|||
|
||||
let rdata_section =
|
||||
match Config.system with
|
||||
"digital" -> ".rdata"
|
||||
| "linux" -> ".section .rodata"
|
||||
"digital" | "openbsd" -> ".rdata"
|
||||
| "linux" | "netbsd" -> ".section .rodata"
|
||||
| _ -> assert false
|
||||
|
||||
(* Names of various instructions *)
|
||||
|
@ -714,14 +714,14 @@ let emit_fundecl (fundecl, needs_gp) =
|
|||
end;
|
||||
` .end {emit_symbol fundecl.fun_name}\n`;
|
||||
if !bigint_constants <> [] then begin
|
||||
` .section .rodata\n`;
|
||||
` {emit_string rdata_section}\n`;
|
||||
` .align 3\n`;
|
||||
List.iter
|
||||
(fun (lbl, n) -> `{emit_label lbl}: .quad {emit_string(Nativeint.to_hexa_string n)}\n`)
|
||||
!bigint_constants
|
||||
end;
|
||||
if !float_constants <> [] then begin
|
||||
` .section .rodata\n`;
|
||||
` {emit_string rdata_section}\n`;
|
||||
` .align 3\n`;
|
||||
List.iter
|
||||
(fun (lbl, s) -> `{emit_label lbl}: .t_floating {emit_string s}\n`)
|
||||
|
|
Loading…
Reference in New Issue