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]

Re: symbol _dl_global_scope problem


On platform with Linux 2.6.9 + arm-linux-gcc 3.4.3 plus glibc 2.3.2

[root@localhost rootfs]# readelf --wide -dsr ./lib/ld-linux.so.2
./lib/libdl.so.2 ./mp4player/onewave/owplayer.0202.1  | grep
_dl_global_scope
[root@localhost rootfs]# pwd
/rootfs

On the same platform but with Linux 2.4.17 + arm-linux-gcc 2.95.3 
plus glibc 2.1.3


[root@localhost rootfs.pr.read4wl]# readelf --wide -dsr
./lib/ld-linux.so.2 ./lib/libdl.so.2
./mp4player/onewave/owplayer.0202.1  | grep _dl_global_scope
0001c140  00002515 R_ARM_GLOB_DAT         0001c76c   _dl_global_scope_alloc
0001be40  00002815 R_ARM_GLOB_DAT         0001c780   _dl_global_scope
    37: 0001c76c     4 OBJECT  GLOBAL DEFAULT   15
_dl_global_scope_alloc@@GLIBC_2.1
    40: 0001c780     8 OBJECT  GLOBAL DEFAULT   15 _dl_global_scope@@GLIBC_2.0
   510: 0001c76c     4 OBJECT  GLOBAL DEFAULT   15 _dl_global_scope_alloc
   513: 0001c780     8 OBJECT  GLOBAL DEFAULT   15 _dl_global_scope
00009e7c  00002415 R_ARM_GLOB_DAT         00000000   _dl_global_scope
    36: 00000000     8 OBJECT  GLOBAL DEFAULT  UND
_dl_global_scope@GLIBC_2.0 (4)
   119: 00000000     8 OBJECT  GLOBAL DEFAULT  UND _dl_global_scope@@GLIBC_2.0
[root@localhost rootfs.pr.read4wl]# pwd
/rootfs.pr.read4wl

Thanks,

Kein


On 4/18/05, H. J. Lu <hjl@lucon.org> wrote:
> On Mon, Apr 18, 2005 at 02:59:11PM +0800, Kein Yuan wrote:
> > I am runing on the same platform with two different configuration:
> >
> >   A, linux 2.6.9 + arm-linux-gcc 3.4.3 + glibc 2.3.2
> >   B, linux 2.4.17 + arm-linux-gcc -2.95.3 with glibc 2.1.3
> >
> > also I have a application binary(only binary, and that's the problem)
> > which can run on configuration B, but failed on configuration A, it
> > shows:
> >
> > [root@Linux onewave]#./player
> > ./player : relocation error: /lib/libdl.so.2: symbol _dl_global_scope, versio
> > n GLIBC_2.0 not defined in file ld-linux.so.2 with link time reference
> 
> Please provide the output of
> 
> # readelf --wide -dsr /lib/ld-linux.so.2 /lib/libdl.so.2 ./player | grep _dl_global_scope
> 
> on both systems.
> 
> >
> > I think it may caused by different glibc, since the application was
> > built with gcc2.95.3 and glibc 2.1.3 but on configuration A we just
> > have glibc 2.3.2
> >
> > Does anybody know how I can let the application run ok on configuration A?
> >
> >
> 
> H.J.
>


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