aboutsummaryrefslogtreecommitdiffstats
path: root/arm
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>2014-12-17 11:33:23 +0100
committerXavier Leroy <xavier.leroy@inria.fr>2014-12-17 11:33:23 +0100
commitc1daedb244d1f7586c12749642b0d78ae910e60a (patch)
treec2fbe8c758f15d01cdcf3fa8bf642ab8a47dc5c3 /arm
parent97257c59566d9506a2ff397ec35fff7b59506a8f (diff)
downloadcompcert-c1daedb244d1f7586c12749642b0d78ae910e60a.tar.gz
compcert-c1daedb244d1f7586c12749642b0d78ae910e60a.zip
Clean up support for common symbols. Uninitialized "const" symbols can be common.
Diffstat (limited to 'arm')
-rw-r--r--arm/PrintAsm.ml6
1 files changed, 4 insertions, 2 deletions
diff --git a/arm/PrintAsm.ml b/arm/PrintAsm.ml
index 7b9e2cc8..c7157aac 100644
--- a/arm/PrintAsm.ml
+++ b/arm/PrintAsm.ml
@@ -168,8 +168,10 @@ let thumbS oc =
let name_of_section = function
| Section_text -> ".text"
- | Section_data i | Section_small_data i -> if i then ".data" else "COMM"
- | Section_const | Section_small_const -> ".section .rodata"
+ | Section_data i | Section_small_data i ->
+ if i then ".data" else "COMM"
+ | Section_const i | Section_small_const i ->
+ if i then ".section .rodata" else "COMM"
| Section_string -> ".section .rodata"
| Section_literal -> ".text"
| Section_jumptable -> ".text"