Accessing HWCAP on PowerPC?
Steve Munroe
sjmunroe@us.ibm.com
Fri Oct 15 05:28:00 GMT 2004
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
More information about the Libc-alpha
mailing list