diff options
| author | Tom Rini <[email protected]> | 2026-01-15 16:19:37 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-01-20 12:07:20 -0600 |
| commit | 87d3780ebc242e28a180606f72335ce37d8bcca1 (patch) | |
| tree | c3f33dc6e528911e482c3db1baa3afe5d3ff0d9a /scripts | |
| parent | 546d84ca0cb367240c93aa3e3492be4dccf85332 (diff) | |
powerpc: Update linker scripts to ensure appended device tree is aligned
With commit 0535e46d55d7 ("scripts/dtc: Update to upstream version
v1.7.2-35-g52f07dcca47c") it is now a fatal error to U-Boot if our
device tree is not 8-byte aligned. In commit 85f586035d75 ("ARM: OMAP2+:
Pad SPL binary to 8-byte alignment before DTB") Beleswar Padhi explains
that we must have ALIGN(x) statements inside of a section to ensure that
padding is included and not simply that the linker address counter is
incremented. To that end, this patch:
- Aligns the final section before _end by 8-bytes by adding '. =
ALIGN(8);' or changing an existing ALIGN(4) statement.
- Ensure that we do have alignment by adding an ASSERT so that when not
aligned we fail to link (and explain why).
Signed-off-by: Tom Rini <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
