This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Symbol versioning in dlopen modules


On Mon, Jun 03, 2002 at 05:05:04PM -0500, Zoltan Hidvegi wrote:
> H . J . Lu wrote:
> > You can't reference a versioned symbol without telling ld where that
> > versioned symbol comes from. Ld will drop the version in that case
> > 
> > # objdump --dynamic-sym lib3.so | grep message
> > 00000000      D  *UND*  00000000              message
> 
> So this means that there is no way a dlopen loaded module can refer to
> an undefined versioned symbol to be resolved from main?
> 

Yes.

# objdump -p ...
...
Version References:
  required from libc.so.6:
  ^^^^^^^^^^^^^^^^^^^^^^^
    0x09691f73 0x00 05 GLIBC_2.1.3
    0x0d696910 0x00 04 GLIBC_2.0

Do you see version reference has 2 parts? 



H.J.


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