* config/obj-elf.c (obj_elf_parse_section_letters): Correct test
for error return from md_elf_section_letter.
* config/tc-alpha.c (alpha_elf_section_letter): Correct error message.
* config/tc-i386.c (x86_64_section_letter): Likewise.
* config/tc-ia64.c (ia64_elf_section_letter): Likewise.
* config/tc-mep.c (mep_elf_section_letter): Likewise.
* gas/elf/bad-section-flag.d, * gas/elf/bad-section-flag.err,
* gas/elf/bad-section-flag.s: New test.
* gas/elf/elf.exp: Run it.
+2010-09-17 Andrew Burgess <aburgess@broadcom.com>
+
+ PR gas/12011
+ * config/obj-elf.c (obj_elf_parse_section_letters): Correct test
+ for error return from md_elf_section_letter.
+ * config/tc-alpha.c (alpha_elf_section_letter): Correct error message.
+ * config/tc-i386.c (x86_64_section_letter): Likewise.
+ * config/tc-ia64.c (ia64_elf_section_letter): Likewise.
+ * config/tc-mep.c (mep_elf_section_letter): Likewise.
+
2010-09-15 Kai Tietz <kai.tietz@onevision.com>
* config/obj-coff-seh.c (seh_validate_seg): New funtion.
2010-09-15 Kai Tietz <kai.tietz@onevision.com>
* config/obj-coff-seh.c (seh_validate_seg): New funtion.
char *bad_msg = _("unrecognized .section attribute: want a,e,w,x,M,S,G,T");
#ifdef md_elf_section_letter
bfd_vma md_attr = md_elf_section_letter (*str, &bad_msg);
char *bad_msg = _("unrecognized .section attribute: want a,e,w,x,M,S,G,T");
#ifdef md_elf_section_letter
bfd_vma md_attr = md_elf_section_letter (*str, &bad_msg);
+ if (md_attr != (bfd_vma) -1)
attr |= md_attr;
else
#endif
attr |= md_attr;
else
#endif
if (letter == 's')
return SHF_ALPHA_GPREL;
if (letter == 's')
return SHF_ALPHA_GPREL;
- *ptr_msg = _("Bad .section directive: want a,s,w,x,M,S,G,T in string");
+ *ptr_msg = _("bad .section directive: want a,s,w,x,M,S,G,T in string");
if (letter == 'l')
return SHF_X86_64_LARGE;
if (letter == 'l')
return SHF_X86_64_LARGE;
- *ptr_msg = _("Bad .section directive: want a,l,w,x,M,S,G,T in string");
+ *ptr_msg = _("bad .section directive: want a,l,w,x,M,S,G,T in string");
- *ptr_msg = _("Bad .section directive: want a,w,x,M,S,G,T in string");
+ *ptr_msg = _("bad .section directive: want a,w,x,M,S,G,T in string");
return SHF_IA_64_VMS_GLOBAL;
#endif
return SHF_IA_64_VMS_GLOBAL;
#endif
- *ptr_msg = _("Bad .section directive: want a,o,s,w,x,M,S,G,T in string");
+ *ptr_msg = _("bad .section directive: want a,o,s,w,x,M,S,G,T in string");
if (letter == 'v')
return SHF_MEP_VLIW;
if (letter == 'v')
return SHF_MEP_VLIW;
- *ptrmsg = _("Bad .section directive: want a,v,w,x,M,S in string");
- return 0;
+ *ptrmsg = _("bad .section directive: want a,v,w,x,M,S in string");
+ return -1;
+2010-09-17 Andrew Burgess <aburgess@broadcom.com>
+
+ PR gas/12011
+ * gas/elf/bad-section-flag.d, * gas/elf/bad-section-flag.err,
+ * gas/elf/bad-section-flag.s: New test.
+ * gas/elf/elf.exp: Run it.
+
2010-09-16 Alan Modra <amodra@gmail.com>
* gas/all/redef3.d: Don't run on arc.
2010-09-16 Alan Modra <amodra@gmail.com>
* gas/all/redef3.d: Don't run on arc.
--- /dev/null
+#name: Check bad section flag
+#error-output: bad-section-flag.err
--- /dev/null
+.*bad-section-flag\.s: Assembler messages:
+.*bad-section-flag\.s:1: Fatal error: .*
--- /dev/null
+ .section ".rodata", "z~&q"
run_dump_test "dwarf2-1"
run_dump_test "dwarf2-2"
run_dump_test "dwarf2-3"
run_dump_test "dwarf2-1"
run_dump_test "dwarf2-2"
run_dump_test "dwarf2-3"
+ run_dump_test "bad-section-flag"