You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ llvm-objdump --headers ld.a.out
...
1 .a 00000004 00001000 00003fc0 TEXT
2 .b 00000004 00001080 00004040 TEXT
...
$ llvm-objdump --headers eld.a.out
...
1 .a 00000004 00001000 00003fc0 TEXT
2 .b 00000004 00001080 00004000 TEXT
...
I think the memcpy scenario mentioned in [1] is roughly similar to what Zephyr uses ALIGN_WITH_INPUT for, but I need to double check that. Will update here later.
Creating a follow-up ticket for #53 based on the discussion there.
Reproducer of what we're seeing based on the tests in [1] and [2]:
Output snippets:
I think the memcpy scenario mentioned in [1] is roughly similar to what Zephyr uses ALIGN_WITH_INPUT for, but I need to double check that. Will update here later.
Links:
[1] https://binutils.sourceware.narkive.com/MTsXxI3t/patch-ld-add-align-with-input-output-section-attribute
[2] https://archive.fosdem.org/2024/events/attachments/fosdem-2024-2340-linker-scripts-in-lld-and-how-they-compare-with-gnu-ld/slides/22752/Fosdem_linker_scripts_2024_uG7XLOI.pdf (see slide 30)
The text was updated successfully, but these errors were encountered: