Darren J Moffat wrote: > Rod Evans wrote: >> Darren J Moffat wrote: >> >>> What we would like to be able to do is something like what we have in >>> userland with $HWCAP, for example: >>> /kernel/crypto/aes/aes_hwcap1 >>> /kernel/crypto/aes/aes_hwcap2 [VIA_C7] >>> /kernel/crypto/rsa/rsa_hwcap1 >>> /kernel/crypto/rsa/rsa_hwcap2 [SSE MMX CMOV SEP FPU] >>> >>> Would this be possible to have implemented with krtld ? Or is there >>> a better/existing way to provide $HWCAP like functionality for kernel >>> modules ? >> >> tools-linking at opensolaris.org probably isn't the right alias for kernel >> requests. Even though krtld is a link-editor, it falls outside the realm >> of the link-editors (ld(1) and ld.so.1(1)) we discuss on this alias. >> krtld was designed, and has been maintained with different rules and >> goals >> that the user-land components. > > A thanks, I just assumed because it was linker stuff for ELF files you > were involved in it too. > > Since you can't think of an appropriate place and this alias is -linking > :-) Can we discuss it here ?
Sure. > Do you have an opinion on the request even if it isn't the area of code > covered by ld(1) and ld.so.1(1) ? Seems like your request falls in line with how HWCAP was intended to be used. So yeah, looks like a good idea. Just don't go filing any RFE's against compiler/linker :-) -- Rod.