This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: A patch to add --with-oldest-abi=ABI. [Re: A patch to add --disable-old-version.]
On Mon, Dec 04, 2000 at 04:40:25PM -0800, Ulrich Drepper wrote:
> "H . J . Lu" <hjl@valinux.com> writes:
>
> > > I don't think it is really a problem. If we really want, we can
> > > disallow the unversioned reference in ld.so with --with-oldest-abi=ABI.
> > > I may be able to provide such a patch.
> > >
> >
> > Here is a patch.
>
> This patch is not correct. You made it impossible to use any DSO
> without versioning. Just use your code and start an application
I thought it was the whol idea. If a DSO has no versioning, it is not
safe to use it with libc.so configured by --enable-oldest-abi=2.2.
> linked against, say, libX11.
>
Could you give me a specic example? I tried /usr/X11R6/bin/rxvt
# ldd /usr/X11R6/bin/rxvt
libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x40023000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40032000)
libutempter.so.0 => /usr/lib/libutempter.so.0 (0x40100000)
libutil.so.1 => /lib/libutil.so.1 (0x40102000)
libc.so.6 => /lib/libc.so.6 (0x40106000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
# /work/build/gnu/bin/glibc-current/elf/ld-linux.so.2 --library-path /work/build/gnu/bin/glibc-current /usr/X11R6/bin/rxvt
# /work/build/gnu/bin/glibc-current/elf/ld-linux.so.2 --library-path /work/build/gnu/bin/glibc-current ./foo
./foo: No symbol version information
That is true a DSO/exeutable has to be linked against libc.so to be
used at the run-time with libc.so configured by --enable-oldest-abi=2.2.
--
H.J. Lu (hjl@valinux.com)