gdb on digital unix 3.2c; /usr/lib/cmplrs/cc/crt0.o broken?

From: Christophe Colle <colle_at_krtkg1.rug.ac.be>
Date: Thu, 28 Dec 1995 20:10:25 +0100 (MET)

Dear Managers,

This afternoon I posted that I couldn't backtrace anymore on digital unix
3.2c.

Many thanks to Steven W. Orr <steveo_at_uniprise.com>, who helped my
isolating the problem.

The problem is to be found at the moment when cc links everything
together. It uses the following command:
 ld -g2 -O1 -call_shared /usr/lib/cmplrs/cc/crt0.o ybot.o -lc

I tried many combinations of this command to find out what made gdb go
crazy on a backtrace. It appears that /usr/lib/cmplrs/cc/crt0.o has
changed.

When I link with the same command, but I replace
/usr/lib/cmplrs/cc/crt0.o with the one which I have on a alpha running
osf v2.0 then everything works fine.

So here are the questions... Does anyone know what modified in this file.
Should gdb be debugged to handle this modification? Am I allowed to
replace my new /usr/lib/cmplrs/cc/crt0.o with the old version? What are
the implication of doing this? And what is this file anyway, because I
noticed I could link without using this file! I'm not sure if I can
compile anyprogram without it.
 

Any help is appreciated,

Thanks

Christophe

PS:
for those who don't remeber:
when i link with the new /usr/lib/cmplrs/cc/crt0.o and i try to backtrace
it in gdb i get :
Breakpoint 1, main () at ybot.c:81
81 {
(gdb) ba
#0 main () at ybot.c:82
#1 0x120008b70 in __start ()
#2 0x120008b70 in __start ()
#3 0x120008b70 in __start ()
#4 0x120008b70 in __start ()
#5 0x120008b70 in __start ()
#6 0x120008b70 in __start ()
#7 0x120008b70 in __start ()
#8 0x120008b70 in __start ()
#9 0x120008b70 in __start ()
#10 0x120008b70 in __start ()
#11 0x120008b70 in __start ()
#12 0x120008b70 in __start ()
#13 0x120008b70 in __start ()
#14 0x120008b70 in __start ()
#15 0x120008b70 in __start ()
#16 0x120008b70 in __start ()
#17 0x120008b70 in __start ()
#18 0x120008b70 in __start ()
#19 0x120008b70 in __start ()
#20 0x120008b70 in __start ()
....

compiling with the old /usr/lib/cmplrs/cc/crt0.o results in (a much better):
(gdb) ba
#0 main () at ybot.c:82
(gdb)

like it should be!

     | \ =============================================================
     | \ Colle Christophe Phone: +32-(0)9-2403955
     +---- mail: colle_at_krtkg1.rug.ac.be http://krtkg1.rug.ac.be/~colle
     |
 ----------+ When I'm not in Ghent, Then I'm probably Sailing
  \________| ======= Radiotherapy Department, Ghent =============
Received on Thu Dec 28 1995 - 20:29:16 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:46 NZDT