Bug ID: 36717
Summary: .stack_sizes should interact better with ELF
Component: Common Code Generator Code
I have noticed a few issues with the current .stack_sizes implementation
1: It can created unaligned relocations:
000000000009 000400000001 R_X86_64_64 0000000000000000 bar + 0
2: The relocations point to global symbols. If bar is weak and resolves to
another file this entry will refer to the wrong function.
3: It doesn't produce multiple sections if -function-sections is used.
4: It doesn't take comdats into consideration.
5: It doesn't use SHF_LINK_ORDER for enabling garbage collection by the linker.
The last part requires some work in lld too.
You are receiving this mail because:
You are on the CC list for the bug.
llvm-bugs mailing list