]> git.baikalelectronics.ru Git - uboot.git/commit
arm: set alignment properly for asm funcs
authorSam Edwards <cfsworks@gmail.com>
Fri, 12 May 2023 22:31:05 +0000 (16:31 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 31 May 2023 21:23:01 +0000 (17:23 -0400)
commitb028bd93984766023fa3ea7e9003a706368f2c1f
tree004a5f8aacc29d6fcb1205d6abb338656815fcfd
parentbfd115f46187a43b84d55e98f86031937dea941a
arm: set alignment properly for asm funcs

ARM requires a 4-byte alignment on all ARM code (though this
requirement is relaxed to 2-byte for some THUMB code) and we
should be explicit about that here.

GAS has its own fix for this[1] that forces proper alignment
on any section containing assembled instructions, but this is
not universal: Clang's and other gaslike assemblers lack this
implicit alignment. Whether or not this is considered a bug in
those assemblers, it is better to ask directly for what we want.

[1]: https://sourceware.org/bugzilla/show_bug.cgi?id=12931

Signed-off-by: Sam Edwards <CFSworks@gmail.com>
arch/arm/include/asm/linkage.h