* ecoff.c (ecoff_bfd_copy_private_bfd_data): Don't try to copy
data to a non-ECOFF file.
This commit is contained in:
parent
d8d67d6624
commit
30f34d07c7
|
@ -1,5 +1,8 @@
|
||||||
Mon Jun 6 10:57:28 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
|
Mon Jun 6 10:57:28 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
|
||||||
|
|
||||||
|
* ecoff.c (ecoff_bfd_copy_private_bfd_data): Don't try to copy
|
||||||
|
data to a non-ECOFF file.
|
||||||
|
|
||||||
* libbfd-in.h: Add warning that libbfd.h is a generated file.
|
* libbfd-in.h: Add warning that libbfd.h is a generated file.
|
||||||
* libbfd.h: Rebuilt.
|
* libbfd.h: Rebuilt.
|
||||||
|
|
||||||
|
|
|
@ -2178,7 +2178,11 @@ ecoff_bfd_copy_private_bfd_data (ibfd, obfd)
|
||||||
size_t c;
|
size_t c;
|
||||||
boolean local;
|
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. */
|
/* Copy the GP value and the register masks. */
|
||||||
ecoff_data (obfd)->gp = ecoff_data (ibfd)->gp;
|
ecoff_data (obfd)->gp = ecoff_data (ibfd)->gp;
|
||||||
|
|
Loading…
Reference in New Issue