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: unassignedb...@nondot.org Reporter: kra...@google.com CC: llvm-bugs@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.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs