This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Versioning mess proved!!!


Geoff Keating <geoffk@cygnus.com> writes:

> That is the problem.  The GLOB_DAT relocation is being pointed at the
> PLT entry in the executable, even if the symbol is not defined
> anywhere.

OK.  So weak data references should not be resolved to weak and
undefined PLT entries.  This sounds good to solve this problem but
cannot work in general since there is no guarantee that the PLT
relocation happened before data relocation (in the case of lazy
relocation the PLT relocation happens much later).

I don't have your patch handy but the test case you sent for the x86
linker should fail with the above logic applied as well.

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]