[RFC arm64] samples/bpf: explicitly exclude sysreg sections with asm macros

Andy Gospodarek andy at greyhouse.net
Fri Mar 17 06:58:36 PDT 2017


On Fri, Mar 17, 2017 at 11:11:59AM +0000, Robin Murphy wrote:
> On 16/03/17 21:04, Andy Gospodarek wrote:
> > 
> > While I generally agree isn't the entire reason this inline asm exists
> > -- to fix a binutils issue?  :-)
> 
> Binutils is required to build the arm64 kernel; if certain versions of
> binutils packaged by arm64 distros can't cope with certain instructions
> we need to use, we have to do what we can to make it build. However, if
> LLVM cannot cope with inline assembly on arm64, then it's pretty clear
> that the kernel cannot be built with LLVM anyway, thus there is nothing
> to work around in that regard. Sorry, you've got a straw man there ;)

I know, right?  I'll see if I can come up with something that appears to
be less fragile and/or intrusive to the arm64 arch code as I'd really
like to stop carrying a patch in my devel tree for this.



More information about the linux-arm-kernel mailing list