This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[PATCH/RFA] vms_object_p set the start address to -1
- From: kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
- To: binutils at sources dot redhat dot com
- Date: Mon, 04 Nov 2002 10:29:00 +0900
- Subject: [PATCH/RFA] vms_object_p set the start address to -1
Hi,
vms_object_p set the start address to -1 always and it isn't
safe for --enable-targets=all case, though no one complains
about it :-)
I don't know anything about VMS, but is the attached ok?
Regards,
kaz
--
2002-11-04 Kaz Kojima <kkojima@rr.iij4u.or.jp>
* vms.c (vms_object_p): Restore the start address when returning
NULL.
--- ORIG/src/bfd/vms.c Tue Jul 30 14:49:24 2002
+++ LOCAL/src/bfd/vms.c Mon Nov 4 08:44:11 2002
@@ -382,6 +382,7 @@ vms_object_p (abfd)
const struct bfd_target *target_vector = 0;
const bfd_arch_info_type *arch = 0;
PTR tdata_save = abfd->tdata.any;
+ bfd_vma saddr_save = bfd_get_start_address (abfd);
#if VMS_DEBUG
vms_debug (1, "vms_object_p(%p)\n", abfd);
@@ -519,6 +520,7 @@ vms_object_p (abfd)
if (abfd->tdata.any != tdata_save && abfd->tdata.any != NULL)
bfd_release (abfd, abfd->tdata.any);
abfd->tdata.any = tdata_save;
+ bfd_set_start_address (abfd, saddr_save);
return NULL;
}