[PATCH] ARM: Enable frame pointers for arm64

Ahmad Fatoum a.fatoum at pengutronix.de
Thu Mar 9 06:07:08 PST 2023


On 09.03.23 14:57, Sascha Hauer wrote:
> stack unwinding on arm64 depends on framepointers, so enable them.
> 
> OSELAS.Toolchain-2022.10.0 now defaults to -fomit-frame-pointer whereas
> earlier versions default to -fno-omit-frame-pointer. Fix stack
> unwinding for new OSELAS.Toolchain and other toolchains which omit
> frame pointers by default.
> 
> Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>

Reviewed-by: Ahmad Fatoum <a.fatoum at pengutronix.de>

> ---
>  arch/arm/cpu/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/arm/cpu/Kconfig b/arch/arm/cpu/Kconfig
> index 3ef3604737..f6e2ae9b8a 100644
> --- a/arch/arm/cpu/Kconfig
> +++ b/arch/arm/cpu/Kconfig
> @@ -18,6 +18,7 @@ config CPU_64
>  	select HAVE_PBL_IMAGE
>  	select HAVE_PBL_MULTI_IMAGES
>  	select HAS_DMA
> +	select ARCH_WANT_FRAME_POINTERS
>  
>  # Select CPU types depending on the architecture selected. This selects
>  # which CPUs we support in the kernel image, and the compiler instruction

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |




More information about the barebox mailing list