diff options
author | John Gilmore <gnu@cygnus> | 1993-02-16 08:49:29 +0000 |
---|---|---|
committer | John Gilmore <gnu@cygnus> | 1993-02-16 08:49:29 +0000 |
commit | ec30dfba1725e58d81c92c3af6712e88653edc9b (patch) | |
tree | 7ec7d1b940508010561cde1d7e8eda1f3fac4db3 /bfd/bfd-in.h | |
parent | ef956fecd218ca505901150b036e51b74a699978 (diff) | |
download | gdb-ec30dfba1725e58d81c92c3af6712e88653edc9b.zip gdb-ec30dfba1725e58d81c92c3af6712e88653edc9b.tar.gz gdb-ec30dfba1725e58d81c92c3af6712e88653edc9b.tar.bz2 |
Roll to version 2.1.
Diffstat (limited to 'bfd/bfd-in.h')
-rw-r--r-- | bfd/bfd-in.h | 6 |
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) |