* coffgen.c (make_a_section_from_file): Set lma to s_paddr, not
authorIan Lance Taylor <ian@airs.com>
Fri, 15 Dec 1995 17:07:00 +0000 (17:07 +0000)
committerIan Lance Taylor <ian@airs.com>
Fri, 15 Dec 1995 17:07:00 +0000 (17:07 +0000)
s_vaddr.
* coffcode.h (coff_write_object_contents): Set s_paddr to lma, not
vma.
* ecoff.c (_bfd_ecoff_write_object_contents): Likewise.

bfd/ChangeLog
bfd/coffcode.h
bfd/ecoff.c

index 4f803a23af1cd1987965bd12e828567033c47c71..d27bd492418e9d445bf21173f8a84a2bf2448b0d 100644 (file)
@@ -1,3 +1,11 @@
+Fri Dec 15 12:05:57 1995  Ian Lance Taylor  <ian@cygnus.com>
+
+       * coffgen.c (make_a_section_from_file): Set lma to s_paddr, not
+       s_vaddr.
+       * coffcode.h (coff_write_object_contents): Set s_paddr to lma, not
+       vma.
+       * ecoff.c (_bfd_ecoff_write_object_contents): Likewise.
+
 Fri Dec 15 07:32:09 1995  steve chamberlain  <sac@slash.cygnus.com>
 
        * pe[i]-i386.c (TARGET_UNDERSCORE): Define to '_'.
index b7eeea48ec6d109d3ed3da02f2f25f7b244e7dbc..75d00c2a654302acd986f8ff85982faefb08af57 100644 (file)
@@ -2222,7 +2222,7 @@ coff_write_object_contents (abfd)
        section.s_vaddr = 0;
       else
 #endif
-      section.s_vaddr = current->lma;
+      section.s_vaddr = current->vma;
       section.s_paddr = current->lma;
       section.s_size =  current->_raw_size;
 
index 5c04b1b8d8ff16de10840459c6b3ca5f756b7a46..e4acd8360d761df79918d2ed1f391be1c73df4de 100644 (file)
@@ -2499,7 +2499,7 @@ _bfd_ecoff_write_object_contents (abfd)
       else
        section.s_vaddr = vma;
 
-      section.s_paddr = vma;
+      section.s_paddr = current->lma;
       section.s_size = bfd_get_section_size_before_reloc (current);
 
       /* If this section is unloadable then the scnptr will be 0.  */