Still having issues here :(
I tried using the smallest program one can imagine
| int main(int argc, char **argv)
{
return(0);
}
|
Just to be sure I tried the usual msvc target
| clang.exe -fuse-ld=lld-link.exe -g -gcodeview -Wl,/debug,/pdb:example.pdb example.c -o example.exe
|
(which uses x86_64-pc-windows-msvc)
This compiles, executes and seems to have correct debug information.
I then installed "x86_64-8.1.0-posix-seh-rt_v6-rev0" using mingw-w64-install.exe and from a mingw terminal compiled with
| clang.exe -target x86_64-windows-gnu -fuse-ld=lld.exe -g -gcodeview -Wl,/debug,/pdb:example.pdb example.c -o example.exe
|
This creates an exe which faults on startup in mainCRTStartup (__security_init_cookie to be precise).
In total I tried
x86_64-8.1.0-posix-seh-rt_v6-rev0
x86_64-7.3.0-posix-seh-rt_v5-rev0
x86_64-8.1.0-win32-seh-rt_v6-rev0
x86_64-8.1.0-win32-sjlj-rt_v6-rev0
without any luck producing a functional program.
So I am wondering, is there something obvious simple I am doing wrong here?