2001-09-30 H.J. Lu <hjl@gnu.org>

* config/obj-elf.c (obj_elf_parse_section_letters): Accept "am"
	and "ams" for compatibility.
This commit is contained in:
H.J. Lu 2001-10-01 06:30:19 +00:00
parent 146be91a2b
commit 34105363c2
2 changed files with 17 additions and 0 deletions

View 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

View 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");