stripped dynamic linker == evil
Arkadiusz Miskiewicz
misiek w pld.ORG.PL
Śro, 3 Sty 2001, 20:47:04 CET
There is problem with stripped dynamic linker (/lib/ld-2.2.so).
If it's stripped:
[root w arm bin]# file /lib/ld-2.2.so
/lib/ld-2.2.so: ELF 32-bit LSB shared object, Intel 80386, version 1, stripped
as in our glibc package (glibc-2.2-7) then we have problems such as:
[root w arm bin]# gdb ./apt-get
GNU gdb 5.0 (UI_OUT)
...
This GDB was configured as "i586-pld-linux"...
(gdb) r
Starting program: /home/users/misiek/rpm/BUILD/apt-0.3.19cnc27/bin/./apt-get
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
Cannot access memory at address 0x40016e38
(gdb)
When I use non-stipped version (from rh ;):
[root w arm bin]# file /lib/ld-2.2-redhat.so
/lib/ld-2.2-redhat.so: ELF 32-bit LSB shared object, Intel 80386, version 1, not stripped
everythins is ok:
[root w arm bin]# gdb ./apt-get
GNU gdb 5.0 (UI_OUT)
...
This GDB was configured as "i586-pld-linux"...
(gdb) r
Starting program: /home/users/misiek/rpm/BUILD/apt-0.3.19cnc27/bin/./apt-get
Program received signal SIGSEGV, Segmentation fault.
0x40234012 in fstreambase::fstreambase () from /usr/lib/libstdc++.so.2.10
Current language: auto; currently c
(gdb)
So we should leave linker unstripped. Time to fix glibc.spec. Anyone?
--
Arkadiusz Miśkiewicz, AM2-6BONE [ PLD GNU/Linux IPv6 ]
http://www.t17.ds.pwr.wroc.pl/~misiek/ipv6/ [ enabled ]
Więcej informacji o liście dyskusyjnej pld-devel-pl