Displaying 20 results from an estimated 34 matches for "maincrtstartup".
2017 Jun 04
2
trying to get a minimal windows program linked with lld
+ruiu and compnerd, since there might be an lld issue here.
A slightly simpler example. This is all x86_64; I haven't tried x86.
% cat imp.c
__declspec(dllimport) void ExitProcess(unsigned exitCode);
int mainCRTStartup() { ExitProcess(0); }
% cat kernel32.def
LIBRARY kernel32
EXPORTS
ExitProcess
% dlltool –d kernel32.def –l kernel32.lib
% cl /Zl /c imp.c
% link /subsystem:console imp.obj kernel32.lib
The above executable runs successfully, as does one compiled with ld:
% ld --version
GNU ld (GNU Binutils) 2....
2004 Sep 19
2
[LLVMdev] Files to lib/System/Win32
...057 bytes(s)
00401822 (0x0012FFC0 0x00409A2C 0x00000001 0x003250D0), XYZ::func()+0034 bytes(s), c:\projects\llvm\test.cpp, line 12
004017ED (0x00000001 0x003250D0 0x00322C68 0x00020024), main()+0013 bytes(s), c:\projects\llvm\test.cpp, line 19
00409A2C (0x00020024 0x7FFDF000 0x7FFDF000 0xF3893CF0), mainCRTStartup()+0300 bytes(s), f:\vs70builds\3077\vc\crtbld\crt\src\crtexe.c, line 398+0017 byte(s)
77E814C7 (0x00409900 0x00000000 0x78746341 0x00000020), GetCurrentDirectoryW()+0068 bytes(s)
However, for some reason I haven't been able to determine, the lovely
trace you see above comes out only on Windows...
2004 Sep 19
0
[LLVMdev] Files to lib/System/Win32
...t; 00401822 (0x0012FFC0 0x00409A2C 0x00000001 0x003250D0), XYZ::func()+0034 bytes(s), c:\projects\llvm\test.cpp, line 12
> 004017ED (0x00000001 0x003250D0 0x00322C68 0x00020024), main()+0013 bytes(s), c:\projects\llvm\test.cpp, line 19
> 00409A2C (0x00020024 0x7FFDF000 0x7FFDF000 0xF3893CF0), mainCRTStartup()+0300 bytes(s), f:\vs70builds\3077\vc\crtbld\crt\src\crtexe.c, line 398+0017 byte(s)
> 77E814C7 (0x00409900 0x00000000 0x78746341 0x00000020), GetCurrentDirectoryW()+0068 bytes(s)
>
> However, for some reason I haven't been able to determine, the lovely
> trace you see above comes...
2015 Sep 03
2
lld on Windows
...anything; but
it would be great if you could add support for msvc 2015.
When I try using clang as the compiler, I get a different error message. In
this case it seems to be just not finding the standard libraries?
C:\t>clang -c a.c
C:\t>lld -flavor link a.o
Undefined symbol: <entry>: mainCRTStartup
Undefined symbol: a.o: puts
symbol(s) not found
On Thu, Sep 3, 2015 at 4:59 PM, Rui Ueyama <ruiu at google.com> wrote:
> You seems to be using MSVC 2015 which I don't use yet, and /GUARDSYM seems
> to be a new option added in MSVC 2015. I'll try to support that.
>
> On F...
2007 Sep 05
2
[LLVMdev] Seeing a crash with ConstantFP::get
...t; >::operator*() Line 55 C++
Fibonacci.exe!llvm::ConstantFP::get(const llvm::Type *
Ty=0x01b352d8, double V=0.00000000000000000) Line 299 + 0xe bytes
C++
Fibonacci.exe!main(int argc=1, char * * argv=0x01b35060)
Line 99 + 0x13 bytes C++
Fibonacci.exe!__tmainCRTStartup() Line 586 + 0x19 bytes
C
Fibonacci.exe!mainCRTStartup() Line 403 C
Thanks,
Chuck.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20070905/97f8fb78/attachment.html>
2004 Sep 19
2
[LLVMdev] Files to lib/System/Win32
...2 (0x0012FFC0 0x00409A2C 0x00000001 0x003250D0), XYZ::func()+0034 bytes(s), c:\projects\llvm\test.cpp, line 12
> > 004017ED (0x00000001 0x003250D0 0x00322C68 0x00020024), main()+0013 bytes(s), c:\projects\llvm\test.cpp, line 19
> > 00409A2C (0x00020024 0x7FFDF000 0x7FFDF000 0xF3893CF0), mainCRTStartup()+0300 bytes(s), f:\vs70builds\3077\vc\crtbld\crt\src\crtexe.c, line 398+0017 byte(s)
> > 77E814C7 (0x00409900 0x00000000 0x78746341 0x00000020), GetCurrentDirectoryW()+0068 bytes(s)
> >
> > However, for some reason I haven't been able to determine, the lovely
> > trace...
2020 Jan 06
2
clang interpreter failed to materialize symbols
...7CE (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000), __scrt_common_main() + 0xE bytes(s), d:\agent\_work\5\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl, line 331
0x00007FF6909C1AB9 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000), mainCRTStartup() + 0x9 bytes(s), d:\agent\_work\5\s\src\vctools\crt\vcstartup\src\startup\exe_main.cpp, line 17
0x00007FFC76417BD4 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000), BaseThreadInitThunk() + 0x14 bytes(s)
0x00007FFC7746CED1 (0x0000000000000000 0x0000000000000000 0x000000...
2017 Jun 04
2
trying to get a minimal windows program linked with lld
Here's some C code:
extern void *GetStdHandle(unsigned int nStdHandle);
extern void ExitProcess(unsigned int exit_code);
extern char WriteFile(void *HANDLE, const void * lpBuffer, unsigned int
nNumberOfBytesToWrite,
unsigned int *lpNumberOfBytesWritten, void *lpOverlapped);
static const char *message_ptr = "hello\n";
static const unsigned int message_len = 6;
2007 Sep 05
2
[LLVMdev] Seeing a crash with ConstantFP::get
...gt;::operator*() Line 55 C++
Fibonacci.exe!llvm::ConstantFP::get(const llvm::Type
* Ty=0x01b352d8, double V=0.00000000000000000) Line 299 + 0xe bytes
C++
Fibonacci.exe!main(int argc=1, char * *
argv=0x01b35060) Line 99 + 0x13 bytes C++
Fibonacci.exe!__tmainCRTStartup() Line 586 + 0x19
bytes C
Fibonacci.exe!mainCRTStartup() Line 403 C
Thanks,
Chuck.
_______________________________________________
LLVM Developers mailing list
LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/li...
2007 Sep 05
0
[LLVMdev] Seeing a crash with ConstantFP::get
...ibonacci.exe!llvm::ConstantFP::get(const llvm::Type *
> Ty=0x01b352d8, double V=0.00000000000000000) Line 299 + 0xe
> bytes C++
>
> Fibonacci.exe!main(int argc=1, char * *
> argv=0x01b35060) Line 99 + 0x13 bytes C++
>
> Fibonacci.exe!__tmainCRTStartup() Line 586 + 0x19
> bytes C
>
> Fibonacci.exe!mainCRTStartup() Line 403 C
>
>
>
> Thanks,
>
> Chuck.
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llv...
2020 Jan 14
4
clang interpreter failed to materialize symbols
...00000000000 0x0000000000000000), __scrt_common_main() + 0xE
> bytes(s),
> d:\agent\_work\5\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl,
> line 331
>
> 0x00007FF6909C1AB9 (0x0000000000000000 0x0000000000000000
> 0x0000000000000000 0x0000000000000000), mainCRTStartup() + 0x9
> bytes(s),
> d:\agent\_work\5\s\src\vctools\crt\vcstartup\src\startup\exe_main.cpp,
> line 17
>
> 0x00007FFC76417BD4 (0x0000000000000000 0x0000000000000000
> 0x0000000000000000 0x0000000000000000), BaseThreadInitThunk() +
> 0x14 bytes(s)
>
&g...
2004 Sep 19
0
[LLVMdev] Files to lib/System/Win32
...FC0 0x00409A2C 0x00000001 0x003250D0), XYZ::func()+0034 bytes(s), c:\projects\llvm\test.cpp, line 12
> > > 004017ED (0x00000001 0x003250D0 0x00322C68 0x00020024), main()+0013 bytes(s), c:\projects\llvm\test.cpp, line 19
> > > 00409A2C (0x00020024 0x7FFDF000 0x7FFDF000 0xF3893CF0), mainCRTStartup()+0300 bytes(s), f:\vs70builds\3077\vc\crtbld\crt\src\crtexe.c, line 398+0017 byte(s)
> > > 77E814C7 (0x00409900 0x00000000 0x78746341 0x00000020), GetCurrentDirectoryW()+0068 bytes(s)
> > >
> > > However, for some reason I haven't been able to determine, the lovely...
2007 Sep 06
0
[LLVMdev] Seeing a crash with ConstantFP::get
...gt;::operator*() Line 55 C++
Fibonacci.exe!llvm::ConstantFP::get(const llvm::Type
* Ty=0x01b352d8, double V=0.00000000000000000) Line 299 + 0xe bytes
C++
Fibonacci.exe!main(int argc=1, char * *
argv=0x01b35060) Line 99 + 0x13 bytes C++
Fibonacci.exe!__tmainCRTStartup() Line 586 + 0x19
bytes C
Fibonacci.exe!mainCRTStartup() Line 403 C
Thanks,
Chuck.
_______________________________________________
LLVM Developers mailing list
LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/li...
2004 Sep 18
0
[LLVMdev] Files to lib/System/Win32
Patch looks good so I committed it. I'd be interested in knowing what
your test results are once you start testing with the Win32 port.
Reid.
On Sat, 2004-09-18 at 12:01, Jeff Cohen wrote:
> Here's my first take on Path.cpp. It has a few holes still but it ought
> to be basically functional.
>
> A few observations:
>
> First, the Win32 version still has a lot of code
2011 Jun 17
2
[LLVMdev] Simple clang + llc crash on Windows 7
Hello,
I'm eager to get to know Clang+LLVM but I'm having some problems generating debug information that force llc.exe to crash.
I'm running from the command-line on Windows 7 with clang+llvm versions 2.9 downloaded from the website. The input file is main.c:
void mainCRTStartup()
{
}
This is compiled to intermediate with debug symbols using:
clang -g -O0 -c main.c -emit-llvm -o main.bc
This runs fine and outputs main.bc - disassembly is here: http://donw.org/main.bc.txt
I then try to comple that as an .obj file:
llc -filetype=obj main.bc
And I ge...
2020 Jan 16
2
clang interpreter failed to materialize symbols
...CE (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000), __scrt_common_main() + 0xE bytes(s), d:\agent\_work\5\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl, line 331
0x00007FF6909C1AB9 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000), mainCRTStartup() + 0x9 bytes(s), d:\agent\_work\5\s\src\vctools\crt\vcstartup\src\startup\exe_main.cpp, line 17
0x00007FFC76417BD4 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000), BaseThreadInitThunk() + 0x14 bytes(s)
0x00007FFC7746CED1 (0x0000000000000000 0x0000000000000000 0x0000...
2018 Mar 20
2
lld/lto/win32 crash on DIE code
...Diag) Line 75 C++ Symbols loaded.
lld.exe!main(int Argc, const char * * Argv) Line 129 C++ Symbols loaded.
lld.exe!invoke_main() Line 78 C++ Symbols loaded.
lld.exe!__scrt_common_main_seh() Line 283 C++ Symbols loaded.
lld.exe!__scrt_common_main() Line 326 C++ Symbols loaded.
lld.exe!mainCRTStartup() Line 17 C++ Symbols loaded.
kernel32.dll!75568654() Unknown No symbols loaded.
[Frames below may be incorrect and/or missing, no symbols loaded for
kernel32.dll] Annotated Frame
ntdll.dll!__RtlUserThreadStart() Unknown Symbols loaded.
ntdll.dll!__RtlUserThreadStart at 8
() Unknown S...
2013 Aug 20
0
sf bug 256 - Virtual functions in destructor
..._finish(FLAC__StreamEncoder *
encoder=0x003571f8) Line 1334 + 0xf bytes C
Test.exe!FLAC::Encoder::Stream::~Stream() Line 57 + 0xc bytes C++
Test.exe!FLAC::Encoder::File::~File() Line 448 + 0x8 bytes C++
Test.exe!MyFile::~MyFile() + 0x2e bytes C++
Test.exe!main() Line 188 + 0xf bytes C++
Test.exe!__tmainCRTStartup() Line 586 + 0x19 bytes C
Test.exe!mainCRTStartup() Line 403 C
src\libflac++\stream_encoder.cpp
void File::progress_callback_(const ::FLAC__StreamEncoder *encoder,
FLAC__uint64 bytes_written, FLAC__uint64 samples_written, unsigned
frames_written, unsigned total_frames_estimate, void *client_data)...
2012 Jul 07
0
[LLVMdev] Crash using the JIT on x86 but work on x64
Hi Skykill,
> Hello everyone, i’m using LLVM (updated to 3.1 after seeing that bug, but it’s
> the same with 3.0) for running a bitcode on a C++ program, and Clang for
> compiling it. My code work perfectly, as expected on x64, but crash on x86. I’m
> on Windows 7 x64 and LLVM + Clang was compiled using Visual Studio 2010 (tested
> in both Release and Debug build). Project was make
2015 Oct 05
2
[cfe-dev] Orc Windows C++
...e(
s)
0x00007FF65E67A885 (0x00007FF600000004 0x00000079E6A45150 0x0000000000000000 0x0000000000000000), main() + 0xF5 bytes(s), c:\llvm\llvm\tools\llvm-rtdyld\llvm-rtdyld.cpp, line 687 + 0x5 byte(s)
0x00007FF65EE518CD (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000), __tmainCRTStartup() + 0x19D bytes(s), f:\dd\vctools\crt\crtw32\dllstuff\crtexe.c, line 626 + 0x19 byte
(s)
0x00007FF65EE519FE (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000), mainCRTStartup() + 0xE bytes(s), f:\dd\vctools\crt\crtw32\dllstuff\crtexe.c, line 466
0x00007FFC9C4F2D92 (0x0000...