[llvm-bugs] [Bug 28822] New: lld: entry is past the end of the section

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Aug 2 20:15:53 PDT 2016


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

            Bug ID: 28822
           Summary: lld: entry is past the end of the section
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: ELF
          Assignee: unassignedbugs at nondot.org
          Reporter: krasin at google.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

While trying to move Chrome to LLD on Linux x86-64 (now it uses the Gold
plugin), I encountered the following issue on multiple targets, if compiled
with CFI:

"entry is past the end of the section"

I was able to reproduce this in LLVM tree. Any C++ file will fit the bill, I
used the following simple.cc:

int main(void) {
  return 0;
}

The command line to trigger the bug:

$ clang++ -fuse-ld=lld -flto -fsanitize=cfi -fvisibility=hidden
-fno-sanitize-trap=cfi -g -o simple simple.cc
entry is past the end of the section
clang-3.9: error: linker command failed with exit code 1 (use -v to see
invocation)

After putting debug printfs into the strategic place:
https://cs.chromium.org/chromium/src/third_party/llvm/tools/lld/ELF/InputSection.cpp?q=entry.is.past.the.end.of.the.section&sq=package:chromium&l=552&dr=C

I've got these hints:

Section name: .debug_str
File: sanitizer_linux_s390.cc.o
Size: 0
Offset: 0

-- 
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/20160803/90be58f2/attachment.html>


More information about the llvm-bugs mailing list