From b8a9dcabf3d670acedab67c5b6a92002ac5429b9 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 6 Jul 2000 17:18:10 +0000 Subject: [PATCH] Applied Mark Elbrecht 's patch to implement TC_COFF_SECTION_DEFAULT_ATTRIBUTES. --- gas/ChangeLog | 9 +++++++++ gas/config/obj-coff.c | 7 +++++++ gas/doc/internals.texi | 7 +++++++ 3 files changed, 23 insertions(+) diff --git a/gas/ChangeLog b/gas/ChangeLog index 588c679..b71892b 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,12 @@ +2000-07-06 Mark Elbrecht + + * config/obj-coff.c (TC_COFF_SECTION_DEFAULT_ATTRIBUTES): New. + Default to '(SEC_LOAD | SEC_DATA)'. + (obj_coff_section) [BFD_ASSEMBLER]: Use it. + + * doc/internals.texi (CPU Backend): Describe + TC_COFF_SECTION_DEFAULT_ATTRIBUTES. + Thu Jul 6 17:20:58 2000 Andrew Cagney * as.c (parse_args): NULL terminate the long option list. diff --git a/gas/config/obj-coff.c b/gas/config/obj-coff.c index 6557aa3..aae7de0 100644 --- a/gas/config/obj-coff.c +++ b/gas/config/obj-coff.c @@ -30,6 +30,13 @@ #define KEEP_RELOC_INFO #endif +/* The BFD_ASSEMBLER version of obj_coff_section will use this macro to set + a new section's attributes when a directive has no valid flags or the + "w" flag is used. This default should be appropriate for most. */ +#ifndef TC_COFF_SECTION_DEFAULT_ATTRIBUTES +#define TC_COFF_SECTION_DEFAULT_ATTRIBUTES (SEC_LOAD | SEC_DATA) +#endif + static void obj_coff_bss PARAMS ((int)); const char *s_get_name PARAMS ((symbolS * s)); static void obj_coff_ln PARAMS ((int)); diff --git a/gas/doc/internals.texi b/gas/doc/internals.texi index 0e5aaf7..9406e5f 100644 --- a/gas/doc/internals.texi +++ b/gas/doc/internals.texi @@ -1338,6 +1338,13 @@ source line. The default value is 4. @item LISTING_RHS_WIDTH The maximum number of characters to print from one line of the input file. The default value is 100. + +@item TC_COFF_SECTION_DEFAULT_ATTRIBUTES +@cindex TC_COFF_SECTION_DEFAULT_ATTRIBUTES +The COFF @code{.section} directive will use the value of this macro to set +a new section's attributes when a directive has no valid flags or when the +flag is @code{w}. The default value of the macro is @code{SEC_LOAD | SEC_DATA}. + @end table @node Object format backend -- 2.7.4