[llvm-bugs] [Bug 38018] New: lld should allow defining the internal entry point directly, at least when /nodefaultlibs is passed
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Jul 2 07:01:46 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=38018
Bug ID: 38018
Summary: lld should allow defining the internal entry point
directly, at least when /nodefaultlibs is passed
Product: lld
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: COFF
Assignee: unassignedbugs at nondot.org
Reporter: nicolasweber at gmx.de
CC: llvm-bugs at lists.llvm.org
$ cat empty.c
int mainCRTStartup() { return 0; }
$ clang-cl empty.c /link /nodefaultlib /subsystem:console kernel32.Lib
# ^ this works
$ clang-cl -fuse-ld=lld empty.c /link /nodefaultlib /subsystem:console
kernel32.Lib
/Users/thakis/src/llvm-build-goma/bin/lld-link: error: entry point must be
defined
LinkerDriver::findDefaultEntry() maps user-defined entry points to "real" entry
points. If /nodefaultlib is passed, it should probably look for the real entry
points directly.
--
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/20180702/34596ff2/attachment-0001.html>
More information about the llvm-bugs
mailing list