diff options
author | Michael Snyder <msnyder@vmware.com> | 2002-04-12 23:02:12 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2002-04-12 23:02:12 +0000 |
commit | 0c04d16993741c9fc30f283a302f1707d4a0cee9 (patch) | |
tree | 081a65e34ebc5375411af453fce652dde1b90337 /bfd | |
parent | 62995fc4a5d586f6507118ae3cf34f51584a077c (diff) | |
download | gdb-0c04d16993741c9fc30f283a302f1707d4a0cee9.zip gdb-0c04d16993741c9fc30f283a302f1707d4a0cee9.tar.gz gdb-0c04d16993741c9fc30f283a302f1707d4a0cee9.tar.bz2 |
2002-04-12 Michael Snyder <msnyder@redhat.com>
* bfd-in.h (bfd_get_section_lma): New access macro.
Minor white-space fix-up.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/bfd-in.h | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index f7c9ad9..3b73818 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2002-04-12 Michael Snyder <msnyder@redhat.com> + + * bfd-in.h (bfd_get_section_lma): New access macro. + Minor white-space fix-up. + 2002-04-12 Alan Modra <amodra@bigpond.net.au> * elf.c (prep_headers): Don't zero EI_OSABI, EI_ABIVERSION or diff --git a/bfd/bfd-in.h b/bfd/bfd-in.h index 81cc801..8c36c67 100644 --- a/bfd/bfd-in.h +++ b/bfd/bfd-in.h @@ -334,6 +334,7 @@ typedef struct sec *sec_ptr; #define bfd_get_section_name(bfd, ptr) ((ptr)->name + 0) #define bfd_get_section_vma(bfd, ptr) ((ptr)->vma + 0) +#define bfd_get_section_lma(bfd, ptr) ((ptr)->lma + 0) #define bfd_get_section_alignment(bfd, ptr) ((ptr)->alignment_power + 0) #define bfd_section_name(bfd, ptr) ((ptr)->name) #define bfd_section_size(bfd, ptr) (bfd_get_section_size_before_reloc(ptr)) @@ -345,7 +346,7 @@ typedef struct sec *sec_ptr; #define bfd_is_com_section(ptr) (((ptr)->flags & SEC_IS_COMMON) != 0) -#define bfd_set_section_vma(bfd, ptr, val) (((ptr)->vma = (ptr)->lma= (val)), ((ptr)->user_set_vma = (boolean)true), true) +#define bfd_set_section_vma(bfd, ptr, val) (((ptr)->vma = (ptr)->lma = (val)), ((ptr)->user_set_vma = (boolean)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) |