* gdb on digital unix 3.2c; /usr/lib/cmplrs/cc/crt0.o broken?
@ 1995-12-28 19:10 Christophe Colle
0 siblings, 0 replies; only message in thread
From: Christophe Colle @ 1995-12-28 19:10 UTC (permalink / raw)
To: tru64-unix-managers
Dear Managers,
This afternoon I posted that I couldn't backtrace anymore on digital unix
3.2c.
Many thanks to Steven W. Orr <steveo@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@krtkg1.rug.ac.be http://krtkg1.rug.ac.be/~colle
|
----------+ When I'm not in Ghent, Then I'm probably Sailing
\________| ======= Radiotherapy Department, Ghent =============
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1995-12-28 19:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-12-28 19:10 gdb on digital unix 3.2c; /usr/lib/cmplrs/cc/crt0.o broken? Christophe Colle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox