diff options
author | Ian Lance Taylor <ian@airs.com> | 1999-08-18 06:00:13 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1999-08-18 06:00:13 +0000 |
commit | 00692651e0142d5a0d6213567ad234804d28fef4 (patch) | |
tree | f5e3f229b4f71cc22b94939a1ff085d24dcdc8c0 /bfd/cofflink.c | |
parent | 7bb9db4d63c9a224fc40f967cfd957b61512e42f (diff) | |
download | gdb-00692651e0142d5a0d6213567ad234804d28fef4.zip gdb-00692651e0142d5a0d6213567ad234804d28fef4.tar.gz gdb-00692651e0142d5a0d6213567ad234804d28fef4.tar.bz2 |
1999-08-18 Donn Terry <donn@interix.com>
* coff-i386.c (coff_i386_reloc): Handle R_IMAGEBASE.
(RTYPE2HOWTO): Return NULL if reloc type is out of range.
(coff_i386_rtype_to_howto): Likewise.
* coffcode.h (coff_slurp_symbol_table): Change a -2 to N_DEBUG.
Completely ignore symbols which are all zero.
(dummy_reloc16_estimate): Add return 0.
* cofflink.c (_bfd_coff_link_input_bfd): Rename inner scope
variable copy to name_copy to avoid shadowing outer scope
variable.
* libcoff-in.h (coff_data_type): Change raw_syment_count field
from unsigned int to unsigned long. Add timestamp field.
* libcoff.h: Rebuild.
Also comment changes.
Diffstat (limited to 'bfd/cofflink.c')
-rw-r--r-- | bfd/cofflink.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/bfd/cofflink.c b/bfd/cofflink.c index c9d23f2..3df9e23 100644 --- a/bfd/cofflink.c +++ b/bfd/cofflink.c @@ -1523,7 +1523,7 @@ _bfd_coff_link_input_bfd (finfo, input_bfd) { const char *elename; char elebuf[SYMNMLEN + 1]; - char *copy; + char *name_copy; bfd_coff_swap_sym_in (input_bfd, (PTR) esl, (PTR) islp); @@ -1538,12 +1538,13 @@ _bfd_coff_link_input_bfd (finfo, input_bfd) if (elename == NULL) return false; - copy = (char *) bfd_alloc (input_bfd, strlen (elename) + 1); - if (copy == NULL) + name_copy = (char *) bfd_alloc (input_bfd, + strlen (elename) + 1); + if (name_copy == NULL) return false; - strcpy (copy, elename); + strcpy (name_copy, elename); - (*epp)->name = copy; + (*epp)->name = name_copy; (*epp)->type = islp->n_type; (*epp)->tagndx = 0; if (islp->n_numaux >= 1 |