summaryrefslogtreecommitdiffstats
path: root/binutils-2.22/bfd/elf-bfd.h
diff options
context:
space:
mode:
authorAndrew Hsieh <andrewhsieh@google.com>2012-10-23 19:09:59 +0800
committerAndrew Hsieh <andrewhsieh@google.com>2012-10-23 19:09:59 +0800
commit1342ca94f07e5164f14acb74b2c3903ba0c4009a (patch)
tree5db4bd47df3ac1941ed83d660e984496886518a8 /binutils-2.22/bfd/elf-bfd.h
parent2e216c77403ccdb1c5604f4ceb9ceb8e9f2bb2d3 (diff)
downloadtoolchain_binutils-1342ca94f07e5164f14acb74b2c3903ba0c4009a.zip
toolchain_binutils-1342ca94f07e5164f14acb74b2c3903ba0c4009a.tar.gz
toolchain_binutils-1342ca94f07e5164f14acb74b2c3903ba0c4009a.tar.bz2
Fix newer binutils not to assert on non-existence tag_FP_arch
Used to be local NDK patch at $NDK/build/tools/toolchain-patches/ binutils/0001-Fix-newer-binutils-not-to-assert-on-non-existence-tag_FP_arch.patch Change-Id: I3804f43e8f365c7f9008347cf5b2d66c1255e6c0
Diffstat (limited to 'binutils-2.22/bfd/elf-bfd.h')
-rw-r--r--binutils-2.22/bfd/elf-bfd.h5
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 d6e2ab2..113b75b 100644
--- a/binutils-2.22/bfd/elf-bfd.h
+++ b/binutils-2.22/bfd/elf-bfd.h
@@ -1440,17 +1440,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;