diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2001-10-01 06:30:19 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2001-10-01 06:30:19 +0000 |
commit | 34105363c28a797bb220b3879e750876c772feca (patch) | |
tree | 0273ef3b50b760eee447beae05cf6dee07d24f27 | |
parent | 146be91a2b42ebb323b6fe953bd3ae0ceb8322f1 (diff) | |
download | binutils-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/ChangeLog | 5 | ||||
-rw-r--r-- | gas/config/obj-elf.c | 12 |
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"); |