Java stack trace vs. the PLT

Richard Henderson rth@redhat.com
Mon Nov 3 08:07:00 GMT 2003


On Mon, Nov 03, 2003 at 04:07:08PM +1300, Bryce McKinlay wrote:
> struct _Jv_Method
> {
>   _Jv_Utf8Const *name;
>   _Jv_Utf8Const *signature;
>   _Jv_ushort accflags;
>   _Jv_ushort index;
>   void *ncode;
>   _Jv_Utf8Const **throws;
> }
...
> Is there anything we can do to ensure that ncode always gets resolved 
> by the linker to the actual address of the function, and not a PLT 
> indirection?

Actually, if this structure is built in the same object file as the
function, then the solution is to use a local label for the address.
See e.g. make_alias_for_thunk in the c++ front end.  We can move this
somewhere else if you need...


r~



More information about the Java mailing list