Re: [PATCH] ARM64: asm: mark __barebox_arm64_head as function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Nov 25, 2022 at 11:09:59AM +0100, Ahmad Fatoum wrote:
> Calling objdump -d on the PBL ELF file will not disassemble the
> instructions comprising __barebox_arm64_head and instead will just
> print a hexdump. This is because we use linker magic to get the section
> in front of the text segment and GAS fails to detect that
> __barebox_arm64_head too is of function type. This is no longer the case
> with ENDPROC as it uses the GAS .type directive to explicitly mark
> a symbol as being a function:
> 
>   #define ENDPROC(name) \
>     .type name, @function; \
>     END(name)
> 
> This only has effect on the ELF and introduces no functional change for
> the objcopied image.
> 
> Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx>
> ---
>  arch/arm/cpu/head_64.S | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks

Sascha

> 
> diff --git a/arch/arm/cpu/head_64.S b/arch/arm/cpu/head_64.S
> index f934e96c6eaf..398c4d3471e0 100644
> --- a/arch/arm/cpu/head_64.S
> +++ b/arch/arm/cpu/head_64.S
> @@ -30,4 +30,4 @@ ENTRY(__barebox_arm64_head)
>  	.rept 8
>  	.word 0x55555555
>  	.endr
> -END(__barebox_arm64_head)
> +ENDPROC(__barebox_arm64_head)
> -- 
> 2.30.2
> 
> 
> 

-- 
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 |




[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux