This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: Accessing HWCAP on PowerPC?
- From: Steve Munroe <sjmunroe at us dot ibm dot com>
- To: idr at us dot ibm dot com
- Cc: libc-alpha at sources dot redhat dot com
- Date: Thu, 14 Oct 2004 22:48:36 -0500
- Subject: Re: Accessing HWCAP on PowerPC?
idr@us.ltcfwd.linux.ibm.com wrote on 10/12/2004 05:25:52 PM:
> I was directed here by benh. I really hope someone here has an answer
> as I've spent a couple hours searching around the web and the glibc
> 2.3.3 source. Simply, how do I access AT_HWCAP from a library (i.e.,
> can't get the auxvec passed to main)?
>
> I tried just accessing _dl_hwcap, but the link fails. Do I just need
> some "decorations" on the extern? Am I barking up the right tree?
>
> Thanks.
_dl_hwcap is marked private so is not accessible outside of glibc.
The Aux Vector is passed to main as the 4th parm.
Steven J. Munroe
Linux on Power Toolchain Architect
IBM Corporation, Linux Technology Center