]> git.ipfire.org Git - thirdparty/u-boot.git/commit
arm: cpu: armv7m: add ENTRY/ENDPROC macros
authorJohannes Krottmayer <johannes@krotti42.com>
Thu, 8 May 2025 19:00:28 +0000 (19:00 +0000)
committerTom Rini <trini@konsulko.com>
Thu, 22 May 2025 16:57:12 +0000 (10:57 -0600)
commit0a006371578a8f098c1850b0097c1af68c018165
tree799efc1c870351238627678943126ee7517418fa
parent0bc9b288fab3d9d143066db71299a4c047be38b9
arm: cpu: armv7m: add ENTRY/ENDPROC macros

Since GNU binutils version 2.44, assembly functions must include
the assembler directive .type name, %function. If not a call to
these functions fails with the error message 'Unknown destination
type (ARM/Thumb)' and the error message 'dangerous relocation:
unsupported relocation' at linking.

The macros ENTRY/ENDPROC includes this directive and should be
used for all assembly functions.

Signed-off-by: Johannes Krottmayer <johannes@krotti42.com>
Cc: Tom Rini <trini@konsulko.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
arch/arm/cpu/armv7m/start.S