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/tc-ia64.c | |
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/tc-ia64.c')
-rw-r--r-- | gas/config/tc-ia64.c | 9 |
1 files changed, 7 insertions, 2 deletions
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; |