aboutsummaryrefslogtreecommitdiff
path: root/bfd/bfd-in.h
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/bfd-in.h')
-rw-r--r--bfd/bfd-in.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/bfd/bfd-in.h b/bfd/bfd-in.h
index 637af0d..d5eeb56 100644
--- a/bfd/bfd-in.h
+++ b/bfd/bfd-in.h
@@ -45,7 +45,7 @@ here. */
#include "ansidecl.h"
#include "obstack.h"
-#define BFD_VERSION "2.0"
+#define BFD_VERSION "2.1"
/* forward declaration */
typedef struct _bfd bfd;
@@ -144,7 +144,7 @@ typedef int symtype; /* Who knows, yet? */
#define bfd_get_output_section(x) ((x)->section->output_section)
#define bfd_set_section(x,y) ((x)->section) = (y)
#define bfd_asymbol_base(x) ((x)->section->vma)
-#define bfd_asymbol_value(x) (bfd_asymbol_base(x) + x->value)
+#define bfd_asymbol_value(x) (bfd_asymbol_base(x) + (x)->value)
#define bfd_asymbol_name(x) ((x)->name)
/*Perhaps future: #define bfd_asymbol_bfd(x) ((x)->section->owner)*/
#define bfd_asymbol_bfd(x) ((x)->the_bfd)
@@ -193,6 +193,8 @@ typedef struct sec *sec_ptr;
#define bfd_get_section_flags(bfd, ptr) ((ptr)->flags + 0)
#define bfd_get_section_userdata(bfd, ptr) ((ptr)->userdata)
+#define bfd_is_com_section(ptr) (((ptr)->flags & SEC_IS_COMMON) != 0)
+
#define bfd_set_section_vma(bfd, ptr, val) (((ptr)->vma = (val)), ((ptr)->user_set_vma = true), true)
#define bfd_set_section_alignment(bfd, ptr, val) (((ptr)->alignment_power = (val)),true)
#define bfd_set_section_userdata(bfd, ptr, val) (((ptr)->userdata = (val)),true)