This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ARM stub sizing fix


On Fri, Jan 15, 2010 at 01:17:08AM +1030, Alan Modra wrote:
> On Thu, Jan 14, 2010 at 09:10:19AM -0500, Daniel Jacobowitz wrote:
> > On Thu, Jan 14, 2010 at 10:25:28PM +1030, Alan Modra wrote:
> > > I also add an assert that will trigger if there is a dependence on
> > > reloc type.  I don't know enough about ARM code to know whether it's
> > > possible to have, say, one branch to a function using R_ARM_THM_CALL
> > > and another using R_ARM_THM_JUMP24 (possible tail call?).
> > 
> > You're right, that's just a normal and tail call to the same function.
> 
> So the code is quite broken for thumb.  You'll end up using the same
> stub for both the call and the tail call.

Why is that a problem?  The stubs are themselves tail calls.

-- 
Daniel Jacobowitz
CodeSourcery


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]