From 2d0bb7614be1a94ab9051c35fe95514b05fc0823 Mon Sep 17 00:00:00 2001 From: Andrew Stubbs Date: Mon, 19 Jan 2009 11:50:31 +0000 Subject: 2009-01-19 Andrew Stubbs bfd/ * elf-attrs.c (is_default_attr): Support defaultless attributes. (bfd_elf_add_obj_attr_int): Get type from _bfd_elf_obj_attrs_arg_type. (bfd_elf_add_obj_attr_string): Likewise. (bfd_elf_add_obj_attr_int_string): Likewise. (_bfd_elf_parse_attributes): Allow for unknown flag bits in type. * elf-bfd.h (struct obj_attribute): Document new flag bit. * elf32-arm.c (elf32_arm_obj_attrs_arg_type): Specify that Tag_nodefaults has no default value. (elf32_arm_merge_eabi_attributes): Modify the Tag_nodefaults comment to reflect the new state. gas/ * read.c (s_vendor_attribute): Allow for unknown flag bits in type. --- gas/ChangeLog | 4 ++++ gas/read.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'gas') diff --git a/gas/ChangeLog b/gas/ChangeLog index 715614e..d1b9399 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2009-01-19 Andrew Stubbs + + * read.c (s_vendor_attribute): Allow for unknown flag bits in type. + 2009-01-16 Mark Shinwell * config/te-armeabi.h (EABI_DEFAULT): Use EF_ARM_EABI_VER5. diff --git a/gas/read.c b/gas/read.c index 502e258..db0cc87 100644 --- a/gas/read.c +++ b/gas/read.c @@ -2123,7 +2123,7 @@ s_vendor_attribute (int vendor) } i = exp.X_add_number; } - if (type == 3 + if ((type & 3) == 3 && skip_past_comma (&input_line_pointer) == -1) { as_bad (_("expected comma")); @@ -2140,7 +2140,7 @@ s_vendor_attribute (int vendor) s = demand_copy_C_string (&len); } - switch (type) + switch (type & 3) { case 3: bfd_elf_add_obj_attr_int_string (stdoutput, vendor, tag, i, s); -- cgit v1.1