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

assembler. Use the appropriate `.stabs' when on NetBSD.
This commit is contained in:
Todd Vierling 1998-12-15 15:20:47 +00:00 committed by Alexandre Julliard
parent 7f57325fbc
commit 7d6620d6df
1 changed files with 4 additions and 0 deletions

View File

@ -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[] =