aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1993-03-30 22:49:54 +0000
committerSteve Chamberlain <sac@cygnus>1993-03-30 22:49:54 +0000
commitae35ae7f4c94c6fcbdd14a3af7e82891583122fb (patch)
tree9f64ff16cd361cb658e5378cad818e1dec714b28 /include
parent9fce28edd50c09017ccfc29f30508362081ed66f (diff)
downloadfsf-binutils-gdb-ae35ae7f4c94c6fcbdd14a3af7e82891583122fb.zip
fsf-binutils-gdb-ae35ae7f4c94c6fcbdd14a3af7e82891583122fb.tar.gz
fsf-binutils-gdb-ae35ae7f4c94c6fcbdd14a3af7e82891583122fb.tar.bz2
* bfd.h: Update for lma field of section.
Diffstat (limited to 'include')
-rw-r--r--include/bfd.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/include/bfd.h b/include/bfd.h
index d41473a..51f3b39 100644
--- a/include/bfd.h
+++ b/include/bfd.h
@@ -195,7 +195,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 = (val)), ((ptr)->user_set_vma = true), true)
+#define bfd_set_section_vma(bfd, ptr, val) (((ptr)->vma = (ptr)->lma= (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)
@@ -497,8 +497,15 @@ typedef struct sec
ECOFF has two. */
#define SEC_IS_COMMON 0x8000
-
+
+ /* The virtual memory address of the section - where it will be
+ at run time - the symbols are relocated against this */
bfd_vma vma;
+
+ /* The load address of the section - where it would be in a
+ rom image, really only used for writing section header information */
+ bfd_vma lma;
+
boolean user_set_vma;
/* The size of the section in bytes, as it will be output.