aboutsummaryrefslogtreecommitdiff
path: root/bfd/coffcode.h
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
commit9d8cefa978368bee0856cab674dae39312e23724 (patch)
tree652b920be9616468215d239dddc87f487250e4ac /bfd/coffcode.h
parentc9fca91dfbffeeeab9d8f9ff874db360053ec930 (diff)
downloadgdb-9d8cefa978368bee0856cab674dae39312e23724.zip
gdb-9d8cefa978368bee0856cab674dae39312e23724.tar.gz
gdb-9d8cefa978368bee0856cab674dae39312e23724.tar.bz2
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/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