[PATCH] misc: fs_loader: Fix alignment of fs_loader driver

Tom Rini trini at konsulko.com
Wed Oct 11 20:38:06 CEST 2023


On Sat, Sep 30, 2023 at 04:45:46PM -0400, Sean Anderson wrote:

> DM_DRIVER_GET will redeclare the fs_loader driver without the correct
> alignment. This causes GCC to use the default section alignment of 32
> bytes. This in turn creates a gap in the linker list due to the padding
> required to achieve the correct alignment, corrupting all further entries.
> Use DM_DRIVER_REF instead, which doesn't redeclare anything.
> 
> Fixes: 0998a20cfc6 ("misc: fs_loader: Add function to get the chosen loader")
> Signed-off-by: Sean Anderson <seanga2 at gmail.com>

Applied to u-boot/master, 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/20231011/b1645ef4/attachment.sig>


More information about the U-Boot mailing list