Millicode calls, GP register, ld -r

Jeffrey A Law law@cygnus.com
Fri, 11 Aug 2000 06:30:36 -0600


  In message <Pine.LNX.4.21.0008111648380.29780-100000@front.linuxcare.com.au>y
ou write:
  > 
  > Hi David,
  > 
  > On thinking about this $$dyncall issue a bit more, what use are PLABELs in
  > PIC code anyway?  As far as I can see, PLABELs are used for two things:
  > 1) to provide an unique address for a function
  > 2) as a place to hang argument relocation information
  > 
  > We're not doing (2), and (1) is satisfied by the value in the PLTGOT.
  > 
  > So...  I can turn a PLABEL reference into a GOT reference, which will
  > magically fix the $$dyncall problem.
  > 
  > Comments?
The other way it's used is to handle intra-space calls/returns.  I don't know
if that's an issue for y'all or not.

jeff

jeff