Dead code stripping
authorMatt Austern <austern@apple.com>
Wed, 18 Aug 2004 18:41:01 +0000 (18:41 +0000)
committerMatt Austern <austern@gcc.gnu.org>
Wed, 18 Aug 2004 18:41:01 +0000 (18:41 +0000)
Dead code stripping
* darwin.h (EH_FRAME_SECTION_ATTR): Mark so it doesn't get stripped.
* darwin.c (darwin_file_end): Mark file as potentially strippable.

From-SVN: r86203

gcc/ChangeLog
gcc/config/darwin.c
gcc/config/darwin.h

index 4445787e4af8f04261d0440e2e3ccbe3d7040999..2d030e029269f51fa5b875a2cc387694bd72e293 100644 (file)
@@ -1,3 +1,9 @@
+2004-08-18  Matt Austern  <austern@apple.com>
+
+       Dead code stripping
+       * darwin.h (EH_FRAME_SECTION_ATTR): Mark so it doesn't get stripped.
+       * darwin.c (darwin_file_end): Mark file as potentially strippable.
+       
 2004-08-18  Richard Henderson  <rth@redhat.com>
 
        * alias.c (readonly_fields_p): Remove.
index 977a4f78bf28a93dffac40a76d964c77ffa67b0f..0d3ff8f0154c572896d4cb77900dd0eba3cb58e4 100644 (file)
@@ -1252,6 +1252,7 @@ darwin_file_end (void)
       destructor_section ();
       ASM_OUTPUT_ALIGN (asm_out_file, 1);
     }
+  fprintf (asm_out_file, "\t.subsections_via_symbols\n");
 }
 
 #include "gt-darwin.h"
index 311c16114592de609f3c84bdd486fd52c07a5325..249458918912ffd30393c49244102d5b61237fc8 100644 (file)
@@ -898,7 +898,7 @@ enum machopic_addr_class {
 #define TARGET_ASM_EH_FRAME_SECTION darwin_eh_frame_section
 
 #define EH_FRAME_SECTION_NAME   "__TEXT"
-#define EH_FRAME_SECTION_ATTR ",coalesced,no_toc+strip_static_syms"
+#define EH_FRAME_SECTION_ATTR ",coalesced,no_toc+strip_static_syms+live_support"
 
 #undef ASM_PREFERRED_EH_DATA_FORMAT
 #define ASM_PREFERRED_EH_DATA_FORMAT(CODE,GLOBAL)  \