This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: sh-nto --small-stubs
- From: "Graeme Peterson" <gp at qnx dot com>
- To: stephen dot clarke at superh dot com (Clarke, Stephen)
- Cc: binutils at sources dot redhat dot com
- Date: Thu, 15 Aug 2002 10:27:01 -0400 (EDT)
- Subject: Re: sh-nto --small-stubs
Cool idea. I am trying it out now, using the ld command
line option "-z now", which sets info.flags |= DF_BIND_NOW.
I'll let you know if it works for me.
GP
>
> I've been thinking about this a little more. It occured
> to me that these small stubs could be made to work for a
> "full-blown" dynamic linker, provided it was told that lazy
> binding was not possible on the shared object. To
> allow this, it would be necessary to put DT_BIND_NOW in the
> .dynamic section.
>
> Then I noticed that there's already some mechanism
> for this ... the DF_BIND_NOW flag in link_info.flags.
> Would it be possible to control the selection of small
> stubs based on this flag, instead of a separate option?
>
> (And is it really the case that the short plt entries would
> work for other dynamic linkers provided they did all the
> binding at load time, or have I missed something?)
>
> Steve.
> --
> Stephen Clarke, Principal Engineer, SuperH Inc.
> Phone:1-408-273-3146, Fax:1-408-273-3199, =
> mailto:Stephen.Clarke@superh.com
> Mail: SuperH Inc., 405 River Oaks Pkwy, San Jose, CA 95134, USA.
>