A weak symbol patch
Ian Lance Taylor
ian@zembu.com
Wed Jul 7 15:30:00 GMT 1999
Date: Wed, 7 Jul 1999 13:53:23 -0700 (PDT)
From: hjl@varesearch.com (H.J. Lu)
You missed a piece in mine. If you don't set ELF_LINK_HASH_REF_REGULAR
when clearing ELF_LINK_HASH_DEF_REGULAR, no relocation will be
generated at all and you will get a linker error:
Thanks for the note. I tweaked the patch in a couple of ways. I was
also running into trouble when dealing with weak versioned symbols;
the existing code let it wind up setting up an indirection from a
symbol to itself.
Ian
More information about the Binutils
mailing list