[llvm-bugs] [Bug 36634] New: __rela_iplt_{start, end} get bogus section index if .rela.iplt section is discarded

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Mar 7 10:48:05 PST 2018


https://bugs.llvm.org/show_bug.cgi?id=36634

            Bug ID: 36634
           Summary: __rela_iplt_{start,end} get bogus section index if
                    .rela.iplt section is discarded
           Product: lld
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: ELF
          Assignee: unassignedbugs at nondot.org
          Reporter: ruiu at google.com
                CC: llvm-bugs at lists.llvm.org

For static linking, we synthesize __rela_iplt_start and __rela_iplt_end symbols
which point to the beginning and ending of .rela.iplt. If .rela.iplt is
discarded after that, then the symbols get bogus section index 0xffff. If that
happens, no one really uses the symbols, so the symbols' section value doesn't
matter, but it should at least be a sane value (0xffff is a reserved value).

-- 
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/20180307/b7bf1bb8/attachment.html>


More information about the llvm-bugs mailing list