summaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>1999-06-02 15:36:48 +0000
committerRichard Henderson <rth@redhat.com>1999-06-02 15:36:48 +0000
commit8984f7c653a6714a0e04a06408dc7163197eac1b (patch)
tree3bebb13a5998a4c468409048236fb5e8301caece /bfd
parent05b33d021fa0be2a84821bcaf88bae349cdbff51 (diff)
downloadbinutils-redhat-8984f7c653a6714a0e04a06408dc7163197eac1b.tar.gz
Mark Salter <msalter@cygnus.com>
* coffcode.h (coff_set_alignment_hook): Set lma from s_vaddr if COFF_WITH_PE defined.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/coffcode.h3
2 files changed, 8 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 9ee9f46838..b0301f90a6 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+1999-06-02 Mark Salter <msalter@cygnus.com>
+
+ * coffcode.h (coff_set_alignment_hook): Set lma from s_vaddr if
+ COFF_WITH_PE defined.
+
1999-06-02 Nick Clifton <nickc@cygnus.com>
* pe-arm.c: Rename global arm interworking functions to avoid name
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index bdd9769d5b..e9e7b30f46 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -1228,6 +1228,9 @@ coff_set_alignment_hook (abfd, section, scnhdr)
}
#endif
+#ifdef COFF_WITH_PE
+ section->lma = hdr->s_vaddr;
+#endif
}
#undef ALIGN_SET
#undef ELIFALIGN_SET