This is the mail archive of the binutils@sources.redhat.com 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: Fix PR 51.


On Tue, Mar 23, 2004 at 08:40:31AM +0100, Segher Boessenkool wrote:
> >Another reason why those powerpc64-linux dot symbols must
> >go.
> 
> Yeah.  But what to replace it with?

If every function has a descriptor located in the same object file as
the function code, then the code symbol can just be a local symbol.
No need to export it.  The linker just needs to be taught that for
static linking it can find the function code address at link time by
looking in the descriptor, just as it now knows that when dynamically
linking, a reference to the code symbol can be satisfied by a stub
loading the descriptor at run time.

The _only_ case I can see that needs an exported code symbol is when the
descriptor and function code lie in different files.  We won't support
that.  

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


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