This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: A weak symbol patch
- To: hjl@varesearch.com
- Subject: Re: A weak symbol patch
- From: Ian Lance Taylor <ian@zembu.com>
- Date: 7 Jul 1999 18:29:07 -0400
- CC: binutils@sourceware.cygnus.com
- References: <19990707205323.DB1B83FC1@varesearch.com>
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