From: H.J. Lu Date: Mon, 1 Oct 2001 06:30:19 +0000 (+0000) Subject: 2001-09-30 H.J. Lu X-Git-Tag: cygnus_cvs_20020108_pre~1195 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=34105363c28a797bb220b3879e750876c772feca;p=platform%2Fupstream%2Fbinutils.git 2001-09-30 H.J. Lu * config/obj-elf.c (obj_elf_parse_section_letters): Accept "am" and "ams" for compatibility. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index b148269..52da47a 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2001-09-30 H.J. Lu + + * config/obj-elf.c (obj_elf_parse_section_letters): Accept "am" + and "ams" for compatibility. + 2001-09-30 Hans-Peter Nilsson * config/tc-sh.c (md_pcrel_from_section): Transformed from diff --git a/gas/config/obj-elf.c b/gas/config/obj-elf.c index b84a4b0..6e73d87 100644 --- a/gas/config/obj-elf.c +++ b/gas/config/obj-elf.c @@ -757,6 +757,18 @@ obj_elf_parse_section_letters (str, len) case 'S': attr |= SHF_STRINGS; break; + /* Compatibility. */ + case 'm': + if (*(str - 1) == 'a') + { + attr |= SHF_MERGE; + if (len > 1 && str[1] == 's') + { + attr |= SHF_STRINGS; + str++, len--; + } + break; + } default: { char *bad_msg = _("Unrecognized .section attribute: want a,w,x,M,S");