aboutsummaryrefslogtreecommitdiff
path: root/lib/std/start.zig
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2022-08-29 14:12:39 +0200
committerJakub Konka <kubkon@jakubkonka.com>2022-08-30 10:42:21 +0200
commitdb1a3bb0e70338dc5261adf148284c1408d3df87 (patch)
treeeeac34fa97b3d03116b6df5ad5a7f1f59732600b /lib/std/start.zig
parentb4e3b87a526378c33d4158ccc622a5183eadfb3f (diff)
downloadzig-db1a3bb0e70338dc5261adf148284c1408d3df87.tar.gz
zig-db1a3bb0e70338dc5261adf148284c1408d3df87.zip
coff: fallback to _start as default entry point for now
This is not technically correct, but given that we are not yet able to link against the CRT, it's a good default until then. Add basic logging of generated symbol table in the linker.
Diffstat (limited to 'lib/std/start.zig')
-rw-r--r--lib/std/start.zig4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/std/start.zig b/lib/std/start.zig
index 9f70cce1ea..49094ab02d 100644
--- a/lib/std/start.zig
+++ b/lib/std/start.zig
@@ -36,10 +36,6 @@ comptime {
if (@typeInfo(@TypeOf(root.main)).Fn.calling_convention != .C) {
@export(main2, .{ .name = "main" });
}
- } else if (builtin.os.tag == .windows) {
- if (!@hasDecl(root, "wWinMainCRTStartup") and !@hasDecl(root, "mainCRTStartup")) {
- @export(wWinMainCRTStartup2, .{ .name = "wWinMainCRTStartup" });
- }
} else if (builtin.os.tag == .wasi and @hasDecl(root, "main")) {
@export(wasiMain2, .{ .name = "_start" });
} else {