diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2003-05-03 16:04:12 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2003-05-03 16:04:12 +0000 |
commit | 711ef82f1d0a4fb40bcec63df99e9beddd125659 (patch) | |
tree | c761d6195de76114d16a0aa9d7315cfa44e185e7 /gas/config | |
parent | 74cb52a637dc91275cfbf4f6b5ff003b0c782e2a (diff) | |
download | gdb-711ef82f1d0a4fb40bcec63df99e9beddd125659.zip gdb-711ef82f1d0a4fb40bcec63df99e9beddd125659.tar.gz gdb-711ef82f1d0a4fb40bcec63df99e9beddd125659.tar.bz2 |
gas/
2003-05-03 H.J. Lu <hjl@gnu.org>
* config/obj-elf.c (obj_elf_parse_section_letters): Make it a
fatal error for unknown section attribute.
* config/tc-alpha.c (alpha_elf_section_letter): Return -1 for
unknown section attribute.
* config/tc-ia64.c (ia64_elf_section_letter): Likewise.
* config/tc-ppc.c (ppc_section_letter): Likewise.
* config/tc-ia64.c (ia64_elf_section_letter): Handle 'o'.
(ia64_elf_section_type): Accept "unwind".
gas/testsuite/
2003-05-03 H.J. Lu <hjl@gnu.org>
* gas/ia64/ia64.exp: Add unwind.
* gas/ia64/unwind.s: New. Test the new section attribute 'o'
and the new section type "unwind".
* gas/ia64/unwind.d: Likewise.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/obj-elf.c | 5 | ||||
-rw-r--r-- | gas/config/tc-alpha.c | 2 | ||||
-rw-r--r-- | gas/config/tc-ia64.c | 9 | ||||
-rw-r--r-- | gas/config/tc-ppc.c | 2 |
4 files changed, 10 insertions, 8 deletions
diff --git a/gas/config/obj-elf.c b/gas/config/obj-elf.c index 08e131f..ac836d7 100644 --- a/gas/config/obj-elf.c +++ b/gas/config/obj-elf.c @@ -845,10 +845,7 @@ obj_elf_parse_section_letters (str, len) attr |= md_attr; else #endif - { - as_warn ("%s", bad_msg); - attr = -1; - } + as_fatal ("%s", bad_msg); } break; } diff --git a/gas/config/tc-alpha.c b/gas/config/tc-alpha.c index ec4668b..fd1a0d8 100644 --- a/gas/config/tc-alpha.c +++ b/gas/config/tc-alpha.c @@ -5635,7 +5635,7 @@ alpha_elf_section_letter (letter, ptr_msg) return SHF_ALPHA_GPREL; *ptr_msg = _("Bad .section directive: want a,s,w,x,M,S,G,T in string"); - return 0; + return -1; } /* Map SHF_ALPHA_GPREL to SEC_SMALL_DATA. */ diff --git a/gas/config/tc-ia64.c b/gas/config/tc-ia64.c index 7a8d5f5..eacf471 100644 --- a/gas/config/tc-ia64.c +++ b/gas/config/tc-ia64.c @@ -968,9 +968,11 @@ ia64_elf_section_letter (letter, ptr_msg) { if (letter == 's') return SHF_IA_64_SHORT; + else if (letter == 'o') + return SHF_LINK_ORDER; - *ptr_msg = _("Bad .section directive: want a,s,w,x,M,S,G,T in string"); - return 0; + *ptr_msg = _("Bad .section directive: want a,o,s,w,x,M,S,G,T in string"); + return -1; } /* Map SHF_IA_64_SHORT to SEC_SMALL_DATA. */ @@ -1004,6 +1006,9 @@ ia64_elf_section_type (str, len) if (STREQ (ELF_STRING_ia64_unwind_once)) return SHT_IA_64_UNWIND; + if (STREQ ("unwind")) + return SHT_IA_64_UNWIND; + if (STREQ ("init_array")) return SHT_INIT_ARRAY; diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c index 9da89b3..6b62e6b 100644 --- a/gas/config/tc-ppc.c +++ b/gas/config/tc-ppc.c @@ -2754,7 +2754,7 @@ ppc_section_letter (letter, ptr_msg) return SHF_EXCLUDE; *ptr_msg = _("Bad .section directive: want a,e,w,x,M,S,G,T in string"); - return 0; + return -1; } int |