diff options
author | Joseph Myers <joseph@codesourcery.com> | 2010-06-15 23:10:10 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2010-06-15 23:10:10 +0000 |
commit | 3de4a297ec739ba0111d80a5b9060d9bffc2d899 (patch) | |
tree | a01c545854d8b5bbe1e6feeb71e2981badde2bd2 /bfd/elf32-arm.c | |
parent | 91ff43fe2d1d9c8594e06385af78ed29a063690f (diff) | |
download | gdb-3de4a297ec739ba0111d80a5b9060d9bffc2d899.zip gdb-3de4a297ec739ba0111d80a5b9060d9bffc2d899.tar.gz gdb-3de4a297ec739ba0111d80a5b9060d9bffc2d899.tar.bz2 |
* elf-bfd.h (LEAST_KNOWN_OBJ_ATTRIBUTE): Define.
(struct elf_backend_data): Update comment on obj_attrs_order.
* elf-attrs.c (vendor_obj_attr_size, vendor_set_obj_attr_contents,
_bfd_elf_copy_obj_attributes): Use LEAST_KNOWN_OBJ_ATTRIBUTE
instead of hardcoded 4.
* elf32-arm.c (elf32_arm_obj_attrs_order): Use
LEAST_KNOWN_OBJ_ATTRIBUTE and LEAST_KNOWN_OBJ_ATTRIBUTE + 1
instead of hardcoded 4 and 5.
(elf32_arm_merge_eabi_attributes): Use LEAST_KNOWN_OBJ_ATTRIBUTE
instead of hardcoded 4.
Diffstat (limited to 'bfd/elf32-arm.c')
-rw-r--r-- | bfd/elf32-arm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c index df25977..53a0846 100644 --- a/bfd/elf32-arm.c +++ b/bfd/elf32-arm.c @@ -9624,9 +9624,9 @@ elf32_arm_obj_attrs_arg_type (int tag) static int elf32_arm_obj_attrs_order (int num) { - if (num == 4) + if (num == LEAST_KNOWN_OBJ_ATTRIBUTE) return Tag_conformance; - if (num == 5) + if (num == LEAST_KNOWN_OBJ_ATTRIBUTE + 1) return Tag_nodefaults; if ((num - 2) < Tag_nodefaults) return num - 2; @@ -9932,7 +9932,7 @@ elf32_arm_merge_eabi_attributes (bfd *ibfd, bfd *obfd) } } - for (i = 4; i < NUM_KNOWN_OBJ_ATTRIBUTES; i++) + for (i = LEAST_KNOWN_OBJ_ATTRIBUTE; i < NUM_KNOWN_OBJ_ATTRIBUTES; i++) { /* Merge this attribute with existing attributes. */ switch (i) |