summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSimon Glass <[email protected]>2026-03-21 07:46:24 -0600
committerTom Rini <[email protected]>2026-04-14 11:03:52 -0600
commita6672a4804debd9de4f7bcc1d2f2a07ff30e1eed (patch)
treee32cba3c27edb8a81c41273828abdcae1fda8911 /tests
parentf9b507748080c2ef52d516345c2431182a83f19f (diff)
dm: Fix linker list alignment for ll_entry_get()
The extern declaration in ll_entry_get() lacks the __aligned(4) attribute present in ll_entry_declare(). When the compiler sees an unaligned extern reference to a linker list entry in the same compilation unit as its definition, it may increase the section alignment beyond the expected struct size. This causes gaps in the linker list array, which the alignment checker reports as failures. For example, sandbox_dir is both defined and referenced via DM_DRIVER_GET() in sandboxfs.c. The compiler applies 32-byte alignment to its section instead of the 4-byte alignment from the definition, creating an 8-byte gap before it in the driver list. Add __aligned(4) to the extern declaration in ll_entry_get() to match ll_entry_declare() Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions