This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
A patch for typo in elflink.h
- To: binutils at sourceware dot cygnus dot com
- Subject: A patch for typo in elflink.h
- From: "H . J . Lu" <hjl at lucon dot org>
- Date: Wed, 9 May 2001 13:11:08 -0700
I am about to check in this patch. Any objections?
H.J.
----
Index: elflink.h
===================================================================
RCS file: /work/cvs/gnu/binutils/bfd/elflink.h,v
retrieving revision 1.58
diff -u -p -r1.58 elflink.h
--- elflink.h 2001/05/03 06:45:26 1.58
+++ elflink.h 2001/05/09 20:09:39
@@ -1035,7 +1035,7 @@ elf_link_add_object_symbols (abfd, info)
Elf_Internal_Shdr *versymhdr;
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)
goto error_return;
if (bfd_seek (abfd, versymhdr->sh_offset, SEEK_SET) != 0