diff options
author | Alan Modra <amodra@gmail.com> | 2010-09-16 23:55:10 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2010-09-16 23:55:10 +0000 |
commit | 8f3bae45202d47cc88273b0060a458841cd46282 (patch) | |
tree | d4787efeb6e0b9decb4271af7a13af17c121d598 /gas/config/tc-mep.c | |
parent | 1558ab4ce71d8db60e2897fc2ea8a963ded878dd (diff) | |
download | fsf-binutils-gdb-8f3bae45202d47cc88273b0060a458841cd46282.zip fsf-binutils-gdb-8f3bae45202d47cc88273b0060a458841cd46282.tar.gz fsf-binutils-gdb-8f3bae45202d47cc88273b0060a458841cd46282.tar.bz2 |
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.
* 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.
Diffstat (limited to 'gas/config/tc-mep.c')
-rw-r--r-- | gas/config/tc-mep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/config/tc-mep.c b/gas/config/tc-mep.c index ae2463e..3a6bd6a 100644 --- a/gas/config/tc-mep.c +++ b/gas/config/tc-mep.c @@ -2086,8 +2086,8 @@ mep_elf_section_letter (int letter, char **ptrmsg) 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; } flagword |