aboutsummaryrefslogtreecommitdiff
path: root/gas/config/obj-elf.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2010-09-16 23:55:10 +0000
committerAlan Modra <amodra@gmail.com>2010-09-16 23:55:10 +0000
commit8f3bae45202d47cc88273b0060a458841cd46282 (patch)
treed4787efeb6e0b9decb4271af7a13af17c121d598 /gas/config/obj-elf.c
parent1558ab4ce71d8db60e2897fc2ea8a963ded878dd (diff)
downloadgdb-8f3bae45202d47cc88273b0060a458841cd46282.zip
gdb-8f3bae45202d47cc88273b0060a458841cd46282.tar.gz
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/obj-elf.c')
-rw-r--r--gas/config/obj-elf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/config/obj-elf.c b/gas/config/obj-elf.c
index e9ae4ea..43820f5 100644
--- a/gas/config/obj-elf.c
+++ b/gas/config/obj-elf.c
@@ -794,7 +794,7 @@ obj_elf_parse_section_letters (char *str, size_t len, bfd_boolean *clone)
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 > 0)
+ if (md_attr != (bfd_vma) -1)
attr |= md_attr;
else
#endif