[PATCH] arm: set alignment properly for asm funcs

Tom Rini trini at konsulko.com
Thu Jun 1 17:24:57 CEST 2023


On Fri, May 12, 2023 at 04:31:05PM -0600, Sam Edwards wrote:

> 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 at gmail.com>

Applied to u-boot/next, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20230601/d11e8fed/attachment.sig>


More information about the U-Boot mailing list