aboutsummaryrefslogtreecommitdiffstats
path: root/arm/TargetPrinter.ml
diff options
context:
space:
mode:
authorBernhard Schommer <bernhardschommer@gmail.com>2015-12-15 14:34:57 +0100
committerBernhard Schommer <bernhardschommer@gmail.com>2015-12-15 14:34:57 +0100
commit0e40a5b6ae0997b11469fdeea702db4c7f878c17 (patch)
tree2822da4c9312f949d751dfb7142de6a758f3e432 /arm/TargetPrinter.ml
parentd830772b1d61c638fe2197755a2b77f7321118a9 (diff)
downloadcompcert-kvx-0e40a5b6ae0997b11469fdeea702db4c7f878c17.tar.gz
compcert-kvx-0e40a5b6ae0997b11469fdeea702db4c7f878c17.zip
Print cfi_sections only if cfi is supported.
On older version of the binutils the cfi directives are not always supported so we only print cfi_sections if the corresponding .ini setting is set to true.
Diffstat (limited to 'arm/TargetPrinter.ml')
-rw-r--r--arm/TargetPrinter.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/arm/TargetPrinter.ml b/arm/TargetPrinter.ml
index 9f2c66cf..22d41c4d 100644
--- a/arm/TargetPrinter.ml
+++ b/arm/TargetPrinter.ml
@@ -902,7 +902,7 @@ module Target (Opt: PRINTER_OPTIONS) : TARGET =
fprintf oc " .%s\n" (if !Clflags.option_mthumb then "thumb" else "arm");
if !Clflags.option_g then begin
section oc Section_text;
- fprintf oc " .cfi_sections .debug_frame\n"
+ cfi_section oc
end