aboutsummaryrefslogtreecommitdiffstats
path: root/backend/PrintAsm.ml
diff options
context:
space:
mode:
Diffstat (limited to 'backend/PrintAsm.ml')
-rw-r--r--backend/PrintAsm.ml5
1 files changed, 3 insertions, 2 deletions
diff --git a/backend/PrintAsm.ml b/backend/PrintAsm.ml
index 0a8af584..b489bc11 100644
--- a/backend/PrintAsm.ml
+++ b/backend/PrintAsm.ml
@@ -100,8 +100,9 @@ module Printer(Target:TARGET) =
if Z.gt n Z.zero then
fprintf oc " .space %s\n" (Z.to_string n)
| Init_addrof(symb, ofs) ->
- fprintf oc " .long %a\n"
- symbol_offset (symb, ofs)
+ fprintf oc " %s %a\n"
+ Target.address
+ symbol_offset (symb, ofs)
let print_init_data oc name id =