aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2002-05-23 10:45:14 +0000
committerNick Clifton <nickc@redhat.com>2002-05-23 10:45:14 +0000
commit6ff96af674ed8b5872e90def470405f90f8b4aac (patch)
tree9dfe5781c9da974964a88c0673b1265f696ffd53 /gas/config
parent69108c1f4363c8e7e4088d618da6837d4b5d1e00 (diff)
downloadgdb-6ff96af674ed8b5872e90def470405f90f8b4aac.zip
gdb-6ff96af674ed8b5872e90def470405f90f8b4aac.tar.gz
gdb-6ff96af674ed8b5872e90def470405f90f8b4aac.tar.bz2
Silently ignore an 'a' flag in a COFF .section directive.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/obj-coff.c36
1 files changed, 19 insertions, 17 deletions
diff --git a/gas/config/obj-coff.c b/gas/config/obj-coff.c
index c48ba63..546f763 100644
--- a/gas/config/obj-coff.c
+++ b/gas/config/obj-coff.c
@@ -1397,23 +1397,24 @@ coff_frob_file_after_relocs ()
bfd_map_over_sections (stdoutput, coff_adjust_section_syms, (char*) 0);
}
-/*
- * implement the .section pseudo op:
- * .section name {, "flags"}
- * ^ ^
- * | +--- optional flags: 'b' for bss
- * | 'i' for info
- * +-- section name 'l' for lib
- * 'n' for noload
- * 'o' for over
- * 'w' for data
- * 'd' (apparently m88k for data)
- * 'x' for text
- * 'r' for read-only data
- * 's' for shared data (PE)
- * But if the argument is not a quoted string, treat it as a
- * subsegment number.
- */
+/* Implement the .section pseudo op:
+ .section name {, "flags"}
+ ^ ^
+ | +--- optional flags: 'b' for bss
+ | 'i' for info
+ +-- section name 'l' for lib
+ 'n' for noload
+ 'o' for over
+ 'w' for data
+ 'd' (apparently m88k for data)
+ 'x' for text
+ 'r' for read-only data
+ 's' for shared data (PE)
+ But if the argument is not a quoted string, treat it as a
+ subsegment number.
+
+ Note the 'a' flag is silently ignored. This allows the same
+ .section directive to be parsed in both ELF and COFF formats. */
void
obj_coff_section (ignore)
@@ -1466,6 +1467,7 @@ obj_coff_section (ignore)
case 'n': flags &=~ SEC_LOAD; flags |= SEC_NEVER_LOAD; break;
case 'd': flags |= SEC_DATA | SEC_LOAD; /* fall through */
case 'w': flags &=~ SEC_READONLY; break;
+ case 'a': break; /* For compatability with ELF. */
case 'x': flags |= SEC_CODE | SEC_LOAD; break;
case 'r': flags |= SEC_READONLY; break;
case 's': flags |= SEC_SHARED; break;