GNU Binutils 2.38 has been released

Waldemar Brodkorb wbx@openadk.org
Wed Feb 23 13:48:06 GMT 2022


Hi Jan,
Jan Beulich wrote,

> On 14.02.2022 11:58, Waldemar Brodkorb wrote:
> > I am having problems with following commit
> > aed44286efa8ae8717a77d94b51ac3614e2ca6dc. 
> > 
> > When trying to build the Linux kernel I get a lot of:
> > ./arch/riscv/include/asm/irqflags.h:34: Error: unrecognized opcode
> > `csrrc s2,0x100,2'
> > ./arch/riscv/include/asm/irqflags.h:52: Error: unrecognized opcode
> > `csrs 0x100,s2'
> > 
> > The kernel is compiled with gcc 11.2 and  -mabi=lp64 -march=rv64ima.
> 
> Isn't "ima" too little? I don't think that includes CSR accesses, that's
> its own extension (Zicsr).

Before this commit it was enough to build the Linux kernel.
What letter needs to be added to get Zicsr extensions, though?
 
 best regards
  Waldemar


More information about the Binutils mailing list