summaryrefslogtreecommitdiffstats
path: root/binutils-2.22/bfd/elf-bfd.h
diff options
context:
space:
mode:
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;