2001-09-30 H.J. Lu <hjl@gnu.org>
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 1 Oct 2001 06:30:19 +0000 (06:30 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 1 Oct 2001 06:30:19 +0000 (06:30 +0000)
* config/obj-elf.c (obj_elf_parse_section_letters): Accept "am"
and "ams" for compatibility.

gas/ChangeLog
gas/config/obj-elf.c

index b1482691f1b8f1affd7e89dc8bae6168f5fae95a..52da47a6da56f1264e1fd0692574c4c32120cb1c 100644 (file)
@@ -1,3 +1,8 @@
+2001-09-30  H.J. Lu  <hjl@gnu.org>
+
+       * config/obj-elf.c (obj_elf_parse_section_letters): Accept "am"
+       and "ams" for compatibility.
+
 2001-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
 
        * config/tc-sh.c (md_pcrel_from_section): Transformed from
index b84a4b0b90fb802659a883f3f8b4b285525df17a..6e73d87630b8cd8a33be642732525a5f9486e271 100644 (file)
@@ -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");