Commit 7d6620d6 authored by Todd Vierling's avatar Todd Vierling Committed by Alexandre Julliard

Global constructors using `.section .ctors' are bogus for NetBSD's

assembler. Use the appropriate `.stabs' when on NetBSD.
parent 7f57325f
......@@ -49,8 +49,12 @@ char s_file_autoreg_str[] =
#endif
"\taddl\t$4,%%esp\n"
"\tret\n\n"
#ifdef __NetBSD__
".stabs \"___CTOR_LIST__\",22,0,0,.LAuto_Register\n\n"
#else
"\t.section .ctors,\"aw\"\n"
"\t.long\t.LAuto_Register\n\n"
#endif
;
char h_file_head_str[] =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment