]> git.dujemihanovic.xyz Git - u-boot.git/commit
misc: fs_loader: Fix alignment of fs_loader driver
authorSean Anderson <seanga2@gmail.com>
Sat, 30 Sep 2023 20:45:46 +0000 (16:45 -0400)
committerTom Rini <trini@konsulko.com>
Wed, 11 Oct 2023 17:22:32 +0000 (13:22 -0400)
commit89cfa35bfc4c5bcabdcf31c8e4631e0dddd508c3
tree9fdf823aca2ee8961afdc806b95a0dee9aa2d257
parent4cb6c8e5f0de3c4c5f9eba51c6a1610934a8cf77
misc: fs_loader: Fix alignment of fs_loader driver

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@gmail.com>
drivers/misc/fs_loader.c