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