summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2022-11-25 11:09:59 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2022-12-02 08:46:14 +0100
commitcbb5ef3d18ba7dfed9324985ea70b6bd9203622f (patch)
treedacdbf3c231b8e5762c48a988f9046af36f5b4fa
parentff311b972cfebcb7082bb45d098753b517ec0f70 (diff)
downloadbarebox-cbb5ef3d18ba7dfed9324985ea70b6bd9203622f.tar.gz
barebox-cbb5ef3d18ba7dfed9324985ea70b6bd9203622f.tar.xz
ARM64: asm: mark __barebox_arm64_head as function
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@pengutronix.de> Link: https://lore.barebox.org/20221125100959.3981619-1-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/arm/cpu/head_64.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/cpu/head_64.S b/arch/arm/cpu/head_64.S
index f934e96c6e..398c4d3471 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)