[PATCH] Makefile: fix build with binutils 2.38

Aurelien Jarno aurelien at aurel32.net
Sat Jan 29 05:05:59 PST 2022


On 2022-01-29 20:52, Xiang W wrote:
> 在 2022-01-28星期五的 18:33 +0100,Aurelien Jarno写道:
> > From version 2.38, binutils default to ISA spec version 20191213. This
> > means that the csr read/write (csrr*/csrw*) instructions and fence.i
> > instruction has separated from the `I` extension, become two
> > standalone
> > extensions: Zicsr and Zifencei. As the kernel uses those instruction,
> > this causes the following build failure:
> The latest version of GNU binutils is 2.37. 2.38 should not be released
> yet, are there any new patch references for these changes?
> 

Correct, however there is already a 2.38 branch and the release should
happen in the next weeks.

The default ISA spec change is due to this commit:
https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=aed44286efa8ae8717a77d94b51ac3614e2ca6dc

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
aurelien at aurel32.net                 http://www.aurel32.net



More information about the opensbi mailing list