targets when checking for "comdat".
+2012-05-19 Alan Modra <amodra@gmail.com>
+
+ * config/obj-elf.c (obj_elf_section): Cater for TC_KEEP_OPERAND_SPACES
+ targets when checking for "comdat".
+
2012-05-19 Alan Modra <amodra@gmail.com>
* config/tc-dlx.c (s_proc): Don't use asprintf.
group_name = obj_elf_section_name ();
if (group_name == NULL)
attr &= ~SHF_GROUP;
- else if (strncmp (input_line_pointer, ",comdat", 7) == 0)
+ else if (*input_line_pointer == ',')
{
- input_line_pointer += 7;
- linkonce = 1;
+ ++input_line_pointer;
+ SKIP_WHITESPACE ();
+ if (strncmp (input_line_pointer, "comdat", 6) == 0)
+ {
+ input_line_pointer += 6;
+ linkonce = 1;
+ }
}
else if (strncmp (name, ".gnu.linkonce", 13) == 0)
linkonce = 1;