OSDN Git Service

Mark Salter <msalter@cygnus.com>
authorrth <rth>
Wed, 2 Jun 1999 15:36:47 +0000 (15:36 +0000)
committerrth <rth>
Wed, 2 Jun 1999 15:36:47 +0000 (15:36 +0000)
        * coffcode.h (coff_set_alignment_hook): Set lma from s_vaddr if
        COFF_WITH_PE defined.

bfd/ChangeLog
bfd/coffcode.h

index 9ee9f46..b0301f9 100644 (file)
@@ -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
index bdd9769..e9e7b30 100644 (file)
@@ -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