2001-05-09 H.J. Lu <hjl@gnu.org>
* elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate versymhdr->sh_size bytes for extversym instead of hdr->sh_size. Remove the unused veriable `dynver'.
This commit is contained in:
parent
b50c407366
commit
6e5222be78
|
@ -1,3 +1,9 @@
|
||||||
|
2001-05-09 H.J. Lu <hjl@gnu.org>
|
||||||
|
|
||||||
|
* elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
|
||||||
|
versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
|
||||||
|
Remove the unused veriable `dynver'.
|
||||||
|
|
||||||
2001-05-08 Ian Lance Taylor <ian@zembu.com>
|
2001-05-08 Ian Lance Taylor <ian@zembu.com>
|
||||||
|
|
||||||
* coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
|
* coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
|
||||||
|
|
|
@ -895,7 +895,6 @@ elf_link_add_object_symbols (abfd, info)
|
||||||
Elf_External_Sym *buf = NULL;
|
Elf_External_Sym *buf = NULL;
|
||||||
struct elf_link_hash_entry **sym_hash;
|
struct elf_link_hash_entry **sym_hash;
|
||||||
boolean dynamic;
|
boolean dynamic;
|
||||||
bfd_byte *dynver = NULL;
|
|
||||||
Elf_External_Versym *extversym = NULL;
|
Elf_External_Versym *extversym = NULL;
|
||||||
Elf_External_Versym *ever;
|
Elf_External_Versym *ever;
|
||||||
Elf_External_Dyn *dynbuf = NULL;
|
Elf_External_Dyn *dynbuf = NULL;
|
||||||
|
@ -1023,7 +1022,7 @@ elf_link_add_object_symbols (abfd, info)
|
||||||
Elf_Internal_Shdr *versymhdr;
|
Elf_Internal_Shdr *versymhdr;
|
||||||
|
|
||||||
versymhdr = &elf_tdata (abfd)->dynversym_hdr;
|
versymhdr = &elf_tdata (abfd)->dynversym_hdr;
|
||||||
extversym = (Elf_External_Versym *) bfd_malloc (hdr->sh_size);
|
extversym = (Elf_External_Versym *) bfd_malloc (versymhdr->sh_size);
|
||||||
if (extversym == NULL)
|
if (extversym == NULL)
|
||||||
goto error_return;
|
goto error_return;
|
||||||
if (bfd_seek (abfd, versymhdr->sh_offset, SEEK_SET) != 0
|
if (bfd_seek (abfd, versymhdr->sh_offset, SEEK_SET) != 0
|
||||||
|
@ -2186,8 +2185,6 @@ elf_link_add_object_symbols (abfd, info)
|
||||||
free (buf);
|
free (buf);
|
||||||
if (dynbuf != NULL)
|
if (dynbuf != NULL)
|
||||||
free (dynbuf);
|
free (dynbuf);
|
||||||
if (dynver != NULL)
|
|
||||||
free (dynver);
|
|
||||||
if (extversym != NULL)
|
if (extversym != NULL)
|
||||||
free (extversym);
|
free (extversym);
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue