A bug fix for common symbol in the ELF linker?
H.J. Lu
hjl@nynexst.com
Tue Oct 3 19:26:00 GMT 1995
Hi,
This is the patch for the common symbol bug in ELF I reported
earlier. I hope it won't break anything.
Thanks.
H.J.
===================================================================
RCS file: /home/cvs/gnu/binutils/bfd/elflink.h,v
retrieving revision 1.3
diff -c -r1.3 elflink.h
*** 1.3 1995/08/24 01:32:34
--- elflink.h 1995/10/04 02:15:07
***************
*** 153,159 ****
false, false, false);
if (h == (struct elf_link_hash_entry *) NULL)
continue;
! if (h->root.type != bfd_link_hash_undefined)
{
if (h->root.type != bfd_link_hash_undefweak)
defined[i] = true;
--- 153,161 ----
false, false, false);
if (h == (struct elf_link_hash_entry *) NULL)
continue;
! /* We should check both undef and common symbols. H.J. */
! if (h->root.type != bfd_link_hash_undefined &&
! h->root.type != bfd_link_hash_common)
{
if (h->root.type != bfd_link_hash_undefweak)
defined[i] = true;
More information about the Gas2
mailing list