diff options
author | Ian Lance Taylor <ian@airs.com> | 1995-12-15 17:07:00 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1995-12-15 17:07:00 +0000 |
commit | 010a405a948e9bce62dcd27517a56f0cb607cb05 (patch) | |
tree | 33bcf799b0c62af6845e4f9b5a961474816f44f4 | |
parent | 445604d7ebdf925290563617712f8e79fc53c29f (diff) | |
download | gdb-010a405a948e9bce62dcd27517a56f0cb607cb05.zip gdb-010a405a948e9bce62dcd27517a56f0cb607cb05.tar.gz gdb-010a405a948e9bce62dcd27517a56f0cb607cb05.tar.bz2 |
* 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.
-rw-r--r-- | bfd/ChangeLog | 8 | ||||
-rw-r--r-- | bfd/coffcode.h | 2 | ||||
-rw-r--r-- | bfd/ecoff.c | 2 |
3 files changed, 10 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 4f803a2..d27bd49 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -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 '_'. diff --git a/bfd/coffcode.h b/bfd/coffcode.h index b7eeea4..75d00c2 100644 --- a/bfd/coffcode.h +++ b/bfd/coffcode.h @@ -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; diff --git a/bfd/ecoff.c b/bfd/ecoff.c index 5c04b1b..e4acd83 100644 --- a/bfd/ecoff.c +++ b/bfd/ecoff.c @@ -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. */ |