Closed Quuxplusone closed 4 years ago
Attached blink_gnu.elf
(227876 bytes, application/x-executable): Test example, linked with GNU LD
Attached blink_lld.elf
(96028 bytes, application/x-executable): Test example, linked with ld.lld
There was a recent fix (March 28) involving NOLOAD in https://bugs.llvm.org/show_bug.cgi?id=45336 https://reviews.llvm.org/D76981
Can you check if this has resolved the problem? If it doesn't it would help if we could have a small reproducer including a linker script rather the output ELF file.
It is indeed a duplicate of 45336.
Applying the patch fixes the issue. The patch does not directly apply to the 10.0 tag (as the test file has been heavily modified since), but the lld fix does and the generated lld works at expected, with NOLOAD sections flags as NOBITS.
Thanks for the pointer.
_This bug has been marked as a duplicate of bug 45336_
blink_gnu.elf
(227876 bytes, application/x-executable)blink_lld.elf
(96028 bytes, application/x-executable)