aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2001-10-01 06:30:19 +0000
committerH.J. Lu <hjl.tools@gmail.com>2001-10-01 06:30:19 +0000
commit34105363c28a797bb220b3879e750876c772feca (patch)
tree0273ef3b50b760eee447beae05cf6dee07d24f27
parent146be91a2b42ebb323b6fe953bd3ae0ceb8322f1 (diff)
downloadbinutils-34105363c28a797bb220b3879e750876c772feca.zip
binutils-34105363c28a797bb220b3879e750876c772feca.tar.gz
binutils-34105363c28a797bb220b3879e750876c772feca.tar.bz2
2001-09-30 H.J. Lu <hjl@gnu.org>
* config/obj-elf.c (obj_elf_parse_section_letters): Accept "am" and "ams" for compatibility.
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/obj-elf.c12
2 files changed, 17 insertions, 0 deletions
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 <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
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");