[Buildroot] [PATCH v4] package/elfutils: handle missing user_pac_mask on aarch64

Julien Olivain ju.o at free.fr
Tue Mar 11 20:07:47 UTC 2025


On 11/03/2025 13:00, Alex Bennée wrote:
> Since Buildroot commit [1] "package/elfutils: bump to version 0.192"
> elfutils fails to build on Aarch64 with toolchain including Kernel 
> older
> than version 5.0. Error shows:
> 
>     aarch64_initreg.c: In function 'aarch64_set_initial_registers_tid':
>     aarch64_initreg.c:61:24: error: storage size of 'pac_mask' isn't
>     known
>        61 |   struct user_pac_mask pac_mask;
>           |                        ^~~~~~~~
> 
> elfutils 0.192 introduced a Aarch64 pointer authentication support in
> upstream commit [2].
> 
> For reference, the user_pac_mask structure was introduced in Kernel
> upstream commit [3], included in Kernel v5.0.
> 
> This is fixed in the upstream [4] so bring that patch in.
> 
> Fixes:
> - e.g 
> https://autobuild.buildroot.org/results/5156901a73be52ce8ffbf10729e6852499a300be/
> - 4/6 of the failures here: 
> https://autobuild.buildroot.org/?reason=elfutils-0.192&arch=aarch64
> 
> [1] 
> https://gitlab.com/buildroot.org/buildroot/-/commit/5eb734766b24de5fce6e586897cd4827f8855442
> [2] 
> https://sourceware.org/git/?p=elfutils.git;a=commitdiff;h=64e3b451ad2cec8d45661b1816e3d2dc4431f3ca
> [3] 
> https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=ec6e822d1a22d0eef1d1fa260dff751dba9a4258
> [4] 
> https://sourceware.org/git/?p=elfutils.git;a=commit;h=52a747a316042e70a22acb489df9e51bfc6bf2d5
> 
> Signed-off-by: Alex Bennée <alex.bennee at linaro.org>

Applied to master, thanks.


More information about the buildroot mailing list