aboutsummaryrefslogtreecommitdiff
path: root/bfd/ecoff.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-06-06 16:49:09 +0000
committerIan Lance Taylor <ian@airs.com>1994-06-06 16:49:09 +0000
commit30f34d07c74ca1cc7a2aae4ff58f31d8046cd9a1 (patch)
tree7b9c845725caee5316e359c6366d72140cc1b8c4 /bfd/ecoff.c
parentd8d67d66245de5186aa1ed0828f25be40b035ce2 (diff)
downloadgdb-30f34d07c74ca1cc7a2aae4ff58f31d8046cd9a1.zip
gdb-30f34d07c74ca1cc7a2aae4ff58f31d8046cd9a1.tar.gz
gdb-30f34d07c74ca1cc7a2aae4ff58f31d8046cd9a1.tar.bz2
* ecoff.c (ecoff_bfd_copy_private_bfd_data): Don't try to copy
data to a non-ECOFF file.
Diffstat (limited to 'bfd/ecoff.c')
-rw-r--r--bfd/ecoff.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/bfd/ecoff.c b/bfd/ecoff.c
index 83a3c22..64661cd 100644
--- a/bfd/ecoff.c
+++ b/bfd/ecoff.c
@@ -2178,7 +2178,11 @@ ecoff_bfd_copy_private_bfd_data (ibfd, obfd)
size_t c;
boolean local;
- BFD_ASSERT (ibfd->xvec == obfd->xvec);
+ /* This function is selected based on the input vector. We only
+ want to copy information over if the output BFD also uses ECOFF
+ format. */
+ if (bfd_get_flavour (obfd) != bfd_target_ecoff_flavour)
+ return true;
/* Copy the GP value and the register masks. */
ecoff_data (obfd)->gp = ecoff_data (ibfd)->gp;