Re: gdb and dynamically loaded code
>
> I guess ld-linux.so is a special case - we can provide it unstripped.
>
> Thanks
>
How about this patch? It should make everyone happy. BTW, I am using
binutils 2.7.0.3.
--
H.J. Lu (hjl@gnu.ai.mit.edu)
---
Index: linux/ld-so/Config.mk
diff -c linux/ld-so/Config.mk:1.1.1.1 linux/ld-so/Config.mk:1.2
*** linux/ld-so/Config.mk:1.1.1.1 Wed Dec 4 21:46:23 1996
--- linux/ld-so/Config.mk Wed Dec 4 22:03:52 1996
***************
*** 21,26 ****
--- 21,27 ----
AS = as
LD = ld
RANLIB = ranlib
+ STRIP=strip
ifeq ($(ARCH),i386)
AOUTCC = /usr/i486-linuxaout/bin/gcc
Index: linux/ld-so/Version.mk
diff -c linux/ld-so/Version.mk:1.1.1.1 linux/ld-so/Version.mk:1.2
*** linux/ld-so/Version.mk:1.1.1.1 Wed Dec 4 21:46:23 1996
--- linux/ld-so/Version.mk Wed Dec 4 22:03:52 1996
***************
*** 1,2 ****
! VERSION=1.8.5
VMAJOR=1
--- 1,2 ----
! VERSION=1.8.6
VMAJOR=1
Index: linux/ld-so/instldso.sh
diff -c linux/ld-so/instldso.sh:1.1.1.1 linux/ld-so/instldso.sh:1.2
*** linux/ld-so/instldso.sh:1.1.1.1 Wed Dec 4 21:46:23 1996
--- linux/ld-so/instldso.sh Wed Dec 4 22:03:52 1996
***************
*** 20,26 ****
if [ -z "$PREFIX" ]; then
PREFIX=
fi
! STRIP=-s
install -d -m 755 $PREFIX/etc
install -d -m 755 $PREFIX/sbin
--- 20,26 ----
if [ -z "$PREFIX" ]; then
PREFIX=
fi
! #STRIP=-s
install -d -m 755 $PREFIX/etc
install -d -m 755 $PREFIX/sbin
Index: linux/ld-so/d-link/Makefile
diff -c linux/ld-so/d-link/Makefile:1.1.1.1 linux/ld-so/d-link/Makefile:1.2
*** linux/ld-so/d-link/Makefile:1.1.1.1 Wed Dec 4 21:46:23 1996
--- linux/ld-so/d-link/Makefile Wed Dec 4 22:03:54 1996
***************
*** 24,29 ****
--- 24,30 ----
($(MAKE) -C $$i $@); \
done;
$(LD) -e _dl_boot $(ELF_LDFLAGS) -o $(DLINKER) *.o
+ $(STRIP) --keep-symbol _dl_debug_state --strip-debug $(DLINKER)
obj: $(OBJS)
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com
Reply to: