From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <9605220312.AA20213@scooter> Date: Tue, 21 May 1996 23:12:23 -0400 (EDT) From: Jim Nance Subject: Re: gdb (fwd) Forwarded message: > From: "Eric Youngdale" > Subject: Re: gdb > >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. I think compiling with the -om flag under Digital Unix does this. The reason I point this out is that Digital wrote a nice paper on doing this type of optimization, and you can get it by mailing to an address at DEC. Unfortunatly, I cant remember the address. If anyone wants the paper, I will try to dig up the address, just send me some email. If anyone knows the address, please send it to me so I don't have to dig it up :-) jim