Implement stack probes for x86/x86_64

Enabled on non-Windows systems only since it already requires stack
probes.
This commit is contained in:
LemonBoy
2019-05-07 00:49:49 +02:00
committed by Andrew Kelley
parent 24ee765318
commit be7cacfbbe
5 changed files with 239 additions and 110 deletions

View File

@@ -18,6 +18,12 @@
#include <stdio.h>
// Define this symbol here so that we can link with the zig objects during the
// compiler bootstrap phase
extern "C" {
void __zig_probe_stack(void) { }
}
static int print_error_usage(const char *arg0) {
fprintf(stderr, "See `%s --help` for detailed usage information\n", arg0);
return EXIT_FAILURE;