aboutsummaryrefslogtreecommitdiff
path: root/bfd/coffcode.h
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/coffcode.h')
-rw-r--r--bfd/coffcode.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index bdd9769..e9e7b30 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