From: Eric Youngdale <eric@aib.com>
Subject: Re: gdb
Date: Wed, 8 May 1996 13:19:09 -0400 [thread overview]
Message-ID: <9605081319.ZM22902@aib.com> (raw)
In-Reply-To: <torvalds@cs.Helsinki.FI>
>Umm, while I agree that it might make it a lot easier to debug things on
the
>alpha, I hope nobody writes a patch like that for gdb. The reason I hope
>that is that I hope that it will be unnecessary. The _correct_ way to
handle >it is to never generate those d*mn instructions in the first place.
We need >an optimizing linker that gets rid of them and makes it into a
single "bsr"
>instruction instead.
This wouldn't be a hard optimization, and in fact it would make
shared libraries a bit easier for those cases where you can safely call
without going through a PLT (i.e. we are not using up a valuable .got
slot for a pointer). It would tend to be used for things like static
functions that we would want to do this in shared libs. For normal
executables, it is more just a question of whether the branch is in range or
not.
Remind me about this in about 4 months :-). I think the actual
code for this would be relatively simple. Note that we would leave behind
a NOP, since it would be a lot harder for the linker to compress this
out.
If someone else wants to attempt this they can, of course, and I
can give pointers as to what would be needed.
-Eric
--
"The woods are lovely, dark and deep. But I have promises to keep,
And lines to code before I sleep, And lines to code before I sleep."
next parent reply other threads:[~1996-05-08 17:19 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <torvalds@cs.Helsinki.FI>
1996-05-08 17:19 ` Eric Youngdale [this message]
1996-05-08 18:24 ` gdb Eric Youngdale
1996-07-21 0:30 ` V2.0.8 Bryan W. Headley
1996-09-09 9:03 ` Oops with 2.0.18 Martin Cornelius
1999-08-29 0:09 gdb Larry Snyder
1999-08-30 12:07 ` gdb Max Weninger
1999-08-30 15:20 ` gdb Michal Jaegermann
1999-08-30 17:12 ` gdb Max Weninger
1999-08-30 18:19 ` gdb Wes Bauske
1999-08-30 20:15 ` gdb Michal Jaegermann
1999-08-31 8:56 ` gdb Max Weninger
[not found] <m0uM6E7-0001thC@atheist.tamu.edu>
1996-05-22 11:45 ` gdb Jim Nance
[not found] <Pine.SUN.3.91.960510085342.3960A-100000@edge.edge.net>
1996-05-17 15:56 ` gdb Harald Koenig
[not found] <Pine.LNX.3.91.960509080842.11981C-100000@linux.cs.Helsinki.FI>
1996-05-09 15:43 ` gdb Richard Henderson
[not found] <richard@atheist.tamu.edu>
1996-05-09 14:55 ` gdb Eric Youngdale
[not found] <Pine.LNX.3.91.960508210447.27170G-100000@linux.cs.Helsinki.FI>
1996-05-09 8:16 ` gdb Harald Koenig
-- strict thread matches above, loose matches on Subject: below --
1996-05-09 4:34 gdb David Mosberger-Tang
1996-05-09 3:47 gdb Eric Youngdale
1996-05-09 5:29 ` gdb Linus Torvalds
1996-05-08 20:15 gdb Richard Henderson
1996-05-09 8:23 ` gdb Harald Koenig
1996-05-09 16:04 ` gdb Richard Henderson
1996-05-08 19:07 gdb Richard Gorton
1996-05-08 18:51 gdb Craig Burley
1996-05-08 17:53 gdb David Mosberger
1996-05-08 18:16 ` gdb Linus Torvalds
1996-05-07 14:23 gdb David Mosberger-Tang
1996-05-07 15:48 ` gdb Richard Henderson
1996-05-07 6:32 gdb Harald Koenig
1996-05-08 17:06 ` gdb Linus Torvalds
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox