This is the mail archive of the libc-alpha@sources.redhat.com 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: 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


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