2009-01-19 Andrew Stubbs <ams@codesourcery.com>
authorAndrew Stubbs <andrew.stubbs@st.com>
Mon, 19 Jan 2009 11:55:35 +0000 (11:55 +0000)
committerAndrew Stubbs <andrew.stubbs@st.com>
Mon, 19 Jan 2009 11:55:35 +0000 (11:55 +0000)
commit3483fe2e0bd83ee8dba72f73c6a309cae2d75e7e
treec8d4210731ff5b6aaa81e8ef6507582b965c0d92
parent2d0bb7614be1a94ab9051c35fe95514b05fc0823
2009-01-19  Andrew Stubbs  <ams@codesourcery.com>

bfd/
* elf-attrs.c (is_default_attr): Substitute magic numbers with macros.
(obj_attr_size): Likewise.
(write_obj_attribute): Likewise.
(_bfd_elf_copy_obj_attributes): Likewise.
(_bfd_elf_parse_attributes): Likewise.
* elf-bfd.h (ATTR_TYPE_FLAG_INT_VAL): New define.
(ATTR_TYPE_FLAG_STR_VAL, ATTR_TYPE_FLAG_NO_DEFAULT): New defines.
(ATTR_TYPE_HAS_INT_VAL, ATTR_TYPE_HAS_STR_VAL): New defines.
(ATTR_TYPE_HAS_NO_DEFAULT): New define.
* elf32-arm.c (elf32_arm_obj_attrs_arg_type): Replace magic numbers
with macros.
bfd/ChangeLog
bfd/elf-attrs.c
bfd/elf-bfd.h
bfd/elf32-arm.c