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]
Other format: [Raw text]

Testcase for dlopen bug


This is the smallest testcase I can find:

# make
gcc --shared -o libbar.so libbar.S -fPIC -g 
gcc --shared -o libfoo.so glerr.c -fPIC -g lib/libGLU.so
gcc --shared -o foo.so foo.S libbar.so libfoo.so -fPIC -g 
gcc -g   -c -o main.o main.c
gcc  -o main -Wl,-R,.:lib main.o -ldl
./main foo.so 2>&1
Loading: foo.so: Failed: ðáqBðáqBo: shared object not open
make: *** [all] Error 1

You may have to run it on RedHat 7.x with libGLU installed to see it
since it uses libGLU and libstdc++-libc6.2-2.so.3.


H.J.

Attachment: bug.tar.gz
Description: GNU Zip compressed data


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