aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1993-02-11 17:22:42 +0000
committerIan Lance Taylor <ian@airs.com>1993-02-11 17:22:42 +0000
commite63164f9889c5dc56e432f38318f72aed3de0e26 (patch)
tree3c0917cb52df3083cf11bb8918e248a627000a25 /gas
parenta387370de7a2f509da26d6357a04b1f5c2103319 (diff)
downloadgdb-e63164f9889c5dc56e432f38318f72aed3de0e26.zip
gdb-e63164f9889c5dc56e432f38318f72aed3de0e26.tar.gz
gdb-e63164f9889c5dc56e432f38318f72aed3de0e26.tar.bz2
Thu Feb 11 09:20:37 1993 Ian Lance Taylor (ian@cygnus.com)
* config/obj-coffbfd.c (fill_section): Don't set vaddr here. (write_object_file): Set it here instead, so that fixup_segment can see the correct value.
Diffstat (limited to 'gas')
-rw-r--r--gas/config/obj-coffbfd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/config/obj-coffbfd.c b/gas/config/obj-coffbfd.c
index 80583af..7c52add 100644
--- a/gas/config/obj-coffbfd.c
+++ b/gas/config/obj-coffbfd.c
@@ -492,7 +492,6 @@ DEFUN (fill_section, (abfd, h, file_cursor),
s->s_scnptr = *file_cursor;
}
know (s->s_paddr == paddr);
- s->s_vaddr = paddr;
s->s_flags = STYP_REG;
if (strcmp (s->s_name, ".text") == 0)
@@ -1861,6 +1860,7 @@ DEFUN_VOID (write_object_file)
long size;
segment_info[i].scnhdr.s_paddr = addr;
+ segment_info[i].scnhdr.s_vaddr = addr;
if (segment_info[i].scnhdr.s_name[0])
{