[llvm-bugs] [Bug 36717] New: .stack_sizes should interact better with ELF

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Mar 13 16:53:40 PDT 2018


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: unassignedbugs at nondot.org
          Reporter: rafael at espindo.la
                CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180313/53f5121e/attachment.html>


More information about the llvm-bugs mailing list