diff options
author | Andrew Hsieh <andrewhsieh@google.com> | 2012-11-01 20:53:41 -0700 |
---|---|---|
committer | Andrew Hsieh <andrewhsieh@google.com> | 2012-11-01 20:53:41 -0700 |
commit | 674f5ed7b53b43d99319e3dd9c7261c59b47af97 (patch) | |
tree | 0ce5f7ba2df5a38c0ad715c5052ea048ba95ce95 /binutils-2.22/bfd/elf-bfd.h | |
parent | 6d5ce99288a663253fd2cde30516257f754cc776 (diff) | |
download | toolchain_binutils-674f5ed7b53b43d99319e3dd9c7261c59b47af97.zip toolchain_binutils-674f5ed7b53b43d99319e3dd9c7261c59b47af97.tar.gz toolchain_binutils-674f5ed7b53b43d99319e3dd9c7261c59b47af97.tar.bz2 |
[2.22.90] Fix newer binutils not to assert on non-existence tag_FP_arch
See 1342ca94f07e5164f14acb74b2c3903ba0c4009a
Change-Id: Iff0fa77f8c55bbf7902d93e95bad873447f4e8cd
Diffstat (limited to 'binutils-2.22/bfd/elf-bfd.h')
-rw-r--r-- | binutils-2.22/bfd/elf-bfd.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/binutils-2.22/bfd/elf-bfd.h b/binutils-2.22/bfd/elf-bfd.h index ff0e615..fdd5cf3 100644 --- a/binutils-2.22/bfd/elf-bfd.h +++ b/binutils-2.22/bfd/elf-bfd.h @@ -1451,17 +1451,20 @@ struct bfd_elf_section_data /* The value of an object attribute. The type indicates whether the attribute holds and integer, a string, or both. It can also indicate that there can - be no default (i.e. all values must be written to file, even zero). */ + be no default (i.e. all values must be written to file, even zero), and whether + it exists in bfd to begin with. */ typedef struct obj_attribute { #define ATTR_TYPE_FLAG_INT_VAL (1 << 0) #define ATTR_TYPE_FLAG_STR_VAL (1 << 1) #define ATTR_TYPE_FLAG_NO_DEFAULT (1 << 2) +#define ATTR_TYPE_FLAG_EXIST (1 << 3) #define ATTR_TYPE_HAS_INT_VAL(TYPE) ((TYPE) & ATTR_TYPE_FLAG_INT_VAL) #define ATTR_TYPE_HAS_STR_VAL(TYPE) ((TYPE) & ATTR_TYPE_FLAG_STR_VAL) #define ATTR_TYPE_HAS_NO_DEFAULT(TYPE) ((TYPE) & ATTR_TYPE_FLAG_NO_DEFAULT) +#define ATTR_TYPE_EXIST(TYPE) ((TYPE) & ATTR_TYPE_FLAG_EXIST) int type; unsigned int i; |