PR ld/17900
* ldlang.c (lang_set_flags): Allow exclamation mark to reverse the
sense of the following memory region attribute characters.
+2015-02-27 Nick Clifton <nickc@redhat.com>
+
+ PR ld/17900
+ * ldlang.c (lang_set_flags): Allow exclamation mark to reverse the
+ sense of the following memory region attribute characters.
+
2015-02-27 Alan Modra <amodra@gmail.com>
* Makefile.am (ALL_EMULATION_SOURCES): Sort new h8300 entries.
flagword *ptr_flags;
ptr_flags = invert ? &ptr->not_flags : &ptr->flags;
+
while (*flags)
{
switch (*flags)
{
+ /* PR 17900: An exclamation mark in the attributes reverses
+ the sense of any of the attributes that follow. */
+ case '!':
+ invert = ! invert;
+ ptr_flags = invert ? &ptr->not_flags : &ptr->flags;
+ break;
+
case 'A': case 'a':
*ptr_flags |= SEC_ALLOC;
break;
break;
default:
- einfo (_("%P%F: invalid syntax in flags\n"));
+ einfo (_("%P%F: invalid character %c (%d) in flags\n"), * flags, * flags);
break;
}
flags++;