Vladik Goytin (goytin@yahoo.com)
authorVladik Goytin <goytin@yahoo.com>
Thu, 22 Jul 1999 09:20:49 +0000 (09:20 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Thu, 22 Jul 1999 09:20:49 +0000 (09:20 +0000)
Define (ASM_OUTPUT_SECTION_NAME): Support section attribute for the target
'arm-semi-aout' for the sections .text and .data only.

From-SVN: r28216

gcc/ChangeLog
gcc/config/arm/aout.h
gcc/config/arm/coff.h

index fb6fc1e11f9373f79d89f714838c9ad49e0f8936..2da77c5c42bcb3d3bd52642af7d60f800eb4facb 100644 (file)
@@ -1,3 +1,11 @@
+Wed Jul 21 12:37:34 IDT 1999 Vladik Goytin (goytin@yahoo.com)
+
+       * config/arm/aout.h (ASM_OUTPUT_SECTION_NAME): New macro: Support
+       section attribute for the target 'arm-semi-aout' for the sections
+       .text and .data only.
+       * config/arm/coff.h (ASM_OUTPUT_SECTION_NAME): Override defintion
+       in aout.h
+       
 Wed Jul 21 00:46:58 1999  Mark P. Mitchell  <mark@codesourcery.com>
 
        * defaults.h (DWARF2_GENERATE_TEXT_SECTION_LABEL): New macro.
index 1f3ee79596b96a84f7d8eb5dae9cd701463b69e2..cab0a90e9b4f266d8ca8bddbdea723da73448891 100644 (file)
@@ -311,6 +311,23 @@ Boston, MA 02111-1307, USA.  */
 /* Output a source line for the debugger.  */
 /* #define ASM_OUTPUT_SOURCE_LINE(STREAM,LINE) */
 
+/* Output a section name.  */
+#ifndef ASM_OUTPUT_SECTION_NAME
+#define ASM_OUTPUT_SECTION_NAME(FILE, DECL, NAME, RELOC)                    \
+  do                                                                        \
+    {                                                                       \
+      if (strcmp (NAME, ".text") != 0 && strcmp (NAME, ".data") != 0)       \
+        {                                                                   \
+          fprintf (stderr,                                                  \
+"Section attribute supported only for sections \".text\" and \".data\".\n"); \
+          abort ();                                                         \
+        }                                                                    \
+      else                                                                  \
+        fprintf (FILE, "%s\n", NAME);                                       \
+    }                                                                       \
+  while (0)
+#endif
+
 /* Output a #ident directive.  */
 #ifndef ASM_OUTPUT_IDENT
 #define ASM_OUTPUT_IDENT(STREAM,STRING)  \
index cb4bd9b597c3e7d701d85bf5c35dcb522103f91a..0acd5b930608d36bcd76535a1e7b0dd9f21c0be8 100644 (file)
@@ -87,6 +87,7 @@ extern int arm_structure_size_boundary;
    NAME for object DECL which is either a FUNCTION_DECL, a VAR_DECL or
    NULL_TREE.  Some target formats do not support arbitrary sections.  Do not
    define this macro in such cases.  */
+#undef  ASM_OUTPUT_SECTION_NAME
 #define ASM_OUTPUT_SECTION_NAME(STREAM, DECL, NAME, RELOC)     \
   do                                                           \
     {                                                          \