From 0e40a5b6ae0997b11469fdeea702db4c7f878c17 Mon Sep 17 00:00:00 2001 From: Bernhard Schommer Date: Tue, 15 Dec 2015 14:34:57 +0100 Subject: 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. --- powerpc/TargetPrinter.ml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'powerpc/TargetPrinter.ml') diff --git a/powerpc/TargetPrinter.ml b/powerpc/TargetPrinter.ml index 24511887..3f12a829 100644 --- a/powerpc/TargetPrinter.ml +++ b/powerpc/TargetPrinter.ml @@ -151,9 +151,9 @@ module Linux_System : SYSTEM = let print_prologue oc = if !Clflags.option_g then begin - section oc Section_text; - fprintf oc " .cfi_sections .debug_frame\n" - end + section oc Section_text; + cfi_section oc + end let print_epilogue oc = if !Clflags.option_g then -- cgit