diff options
author | Vladik Goytin <goytin@yahoo.com> | 1999-07-22 09:20:49 +0000 |
---|---|---|
committer | Nick Clifton <nickc@gcc.gnu.org> | 1999-07-22 09:20:49 +0000 |
commit | 89d68df8d6f01ad5836d385d87c82f2528f729a3 (patch) | |
tree | 1721d059cba202f39d4e8ae302316aab29173e65 | |
parent | b698aafec8b41594b040868776869ca5b7447e25 (diff) | |
download | gcc-89d68df8d6f01ad5836d385d87c82f2528f729a3.zip gcc-89d68df8d6f01ad5836d385d87c82f2528f729a3.tar.gz gcc-89d68df8d6f01ad5836d385d87c82f2528f729a3.tar.bz2 |
Vladik Goytin (goytin@yahoo.com)
Define (ASM_OUTPUT_SECTION_NAME): Support section attribute for the target
'arm-semi-aout' for the sections .text and .data only.
From-SVN: r28216
-rw-r--r-- | gcc/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/config/arm/aout.h | 17 | ||||
-rw-r--r-- | gcc/config/arm/coff.h | 1 |
3 files changed, 26 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fb6fc1e..2da77c5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/config/arm/aout.h b/gcc/config/arm/aout.h index 1f3ee79..cab0a90 100644 --- a/gcc/config/arm/aout.h +++ b/gcc/config/arm/aout.h @@ -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) \ diff --git a/gcc/config/arm/coff.h b/gcc/config/arm/coff.h index cb4bd9b..0acd5b9 100644 --- a/gcc/config/arm/coff.h +++ b/gcc/config/arm/coff.h @@ -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 \ { \ |