https://bugs.llvm.org/show_bug.cgi?id=36717
Bug ID: 36717
Summary: .stack_sizes should interact better with ELF
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Common Code Generator Code
Assignee: unassignedb...@nondot.org
Reporter: raf...@espindo.la
CC: llvm-bugs@lists.llvm.org
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
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs