This addresses PR38918.
Details
Details
Diff Detail
Diff Detail
- Repository
- rLLD LLVM Linker
Event Timeline
Comment Actions
I haven't managed to come up with a minimal reproducer yet, but this addresses the issue when using the reproducer attached in https://bugs.llvm.org/show_bug.cgi?id=38918.
Comment Actions
So after looking a bit more into the output of the reproducer, I realized this is not the correct solution because it leads to relocations being duplicated. Instead, relocations for the folded section shouldn't be emitted at all so this's a deeper rooted issue.
lld/test/ELF/icf18.s | ||
---|---|---|
1 | This is not an assembly although the file extension is .s. Can you write this in assembly? |
This is not an assembly although the file extension is .s. Can you write this in assembly?