summaryrefslogtreecommitdiff
path: root/driver
diff options
context:
space:
mode:
authorGravatar xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2010-05-08 14:32:58 +0000
committerGravatar xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2010-05-08 14:32:58 +0000
commit913c1bcc4b2204afd447edd723e06b905fd1f47f (patch)
tree1e249677ea91df1955e424aeaadda0806111cc60 /driver
parent9f04b74314034f8d7cedea9251e5b340ed2bbdd4 (diff)
Cleaned up handling of linker sections.
Minor updates on ARM code generator. git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@1339 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
Diffstat (limited to 'driver')
-rw-r--r--driver/Driver.ml2
1 files changed, 2 insertions, 0 deletions
diff --git a/driver/Driver.ml b/driver/Driver.ml
index 255b600..2776604 100644
--- a/driver/Driver.ml
+++ b/driver/Driver.ml
@@ -61,6 +61,7 @@ let preprocess ifile ofile =
(* From preprocessed C to asm *)
let compile_c_file sourcename ifile ofile =
+ Sections.initialize();
(* Simplification options *)
let simplifs =
"becv" (* blocks, impure exprs, implicit casts, volatiles: mandatory *)
@@ -108,6 +109,7 @@ let compile_c_file sourcename ifile ofile =
(* From Cminor to asm *)
let compile_cminor_file ifile ofile =
+ Sections.initialize();
let ic = open_in ifile in
let lb = Lexing.from_channel ic in
try