PATCH: PR ld/5789: Linker doesn't check weak and hidden symbols

H.J. Lu hjl.tools@gmail.com
Mon Feb 25 22:18:00 GMT 2008


I reopened the gcc bug:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32219


H.J.
On Sun, Feb 24, 2008 at 12:31 AM, H.J. Lu <hjl.tools@gmail.com> wrote:
>
> On Sat, Feb 23, 2008 at 6:55 PM, Daniel Jacobowitz <drow@false.org> wrote:
>  > On Sat, Feb 23, 2008 at 06:28:56PM -0800, H.J. Lu wrote:
>  >  > It isn't easy to resolve it to 0 at link-time for shared library since the
>  >  > load address of shared library isn't fixed. For x86, I will need to edit
>  >  > addressing mode of instructions. I don't know how reliable it will be.
>  >
>  >  That has nothing to do with it being hidden.  IMO weak should take
>  >  priority; GCC should not generate instructions that can't resolve
>  >  to zero for a weak symbol.
>  >
>
>  That is a good question. I think we should discuss it  in the psABI group.
>
>
>  H.J.
>



More information about the Binutils mailing list