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]

Re: Bug in dynamic linker


On Thu, Jul 20, 2000 at 07:56:08PM +0200, Mark Kettenis wrote:
> 
> Here it is (thanks for including the shar target :-)).  By the way,

Sure.

> looks like there's something wrong with the linker.  I get the

Yes, I fixed it and checked my fix into CVS :-). BTW, that is the
one we are discussing now.

> following output (with glibc 2.1.3):
> 
> delius:~/tmp/needed$ make
> for f in threadtest test; do echo "Running: $f"; ./$f; \
>   if [ $? != 0 ]; then echo Failed; fi; done
> Running: threadtest
> BUG IN DYNAMIC LINKER ld.so: dynamic-link.h: 57: elf_get_dynamic_info: Assertion `! "bad dynamic tag"' failed!
> Failed
> Running: test
> ./test: error in loading shared libraries: libthreadlib.so: cannot open shared object file: No such file or directory
> Failed
> for f in threadtest test; do echo "Running: ldd $f"; ldd ./$f; \
>   if [ $? != 0 ]; then echo Failed; fi; done
> Running: ldd threadtest
> BUG IN DYNAMIC LINKER ld.so: dynamic-link.h: 57: elf_get_dynamic_info: Assertion `! "bad dynamic tag"' failed!
> ldd: /lib/ld-linux.so.2 exited with unknown exit code (127)
> Failed
> Running: ldd test
>        libthreadlib.so => not found
>        libc.so.6 => /lib/libc.so.6 (0x40015000)
>        libpthread.so.0 => /lib/libpthread.so.0 (0x400f8000)
>        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
> delius:~/tmp/needed$ make
> 

With the current linker from CVS,

# make
....
Running: ldd threadtest
        libthreadlib.so => ./libthreadlib.so (0x40019000)
        libc.so.6 => /lib/libc.so.6 (0x4002a000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x4013e000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
Running: ldd test
        libthreadlib.so => not found
        libc.so.6 => /lib/libc.so.6 (0x40028000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

If you think there still is a problem, please send me a testcase
to show it.

Thanks.


H.J.

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