This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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: [PATCH] powerpc: New feature - HWCAP/HWCAP2 bits in the TCB


On Tue, Jun 09, 2015 at 08:21:38PM +0200, Florian Weimer wrote:
> On 06/09/2015 06:01 PM, Steven Munroe wrote:
> 
> > A Static variable would require a an indirect load via the TOC/GOT
> > (which can be megabytes for a large program/library). I really really
> > want the avoid that.
> 
> Could you encode the information in the address itself?  Then the
> indirection goes away.

You mean using (unsigned long)&__hwcap_hack or similar as the hwcap
bits? I don't see how you could make that work for static linking,
where the linker is going to put the GOT in the read-only text
segment. Otherwise it's a neat idea.

Rich


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