From 9d8cefa978368bee0856cab674dae39312e23724 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Wed, 2 Jun 1999 15:36:48 +0000 Subject: [PATCH] Mark Salter * coffcode.h (coff_set_alignment_hook): Set lma from s_vaddr if COFF_WITH_PE defined. --- bfd/ChangeLog | 5 +++++ bfd/coffcode.h | 3 +++ 2 files changed, 8 insertions(+) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 9ee9f46838d..b0301f90a69 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +1999-06-02 Mark Salter + + * coffcode.h (coff_set_alignment_hook): Set lma from s_vaddr if + COFF_WITH_PE defined. + 1999-06-02 Nick Clifton * pe-arm.c: Rename global arm interworking functions to avoid name diff --git a/bfd/coffcode.h b/bfd/coffcode.h index bdd9769d5bb..e9e7b30f465 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 -- 2.30.2