Global constructors using `.section .ctors' are bogus for NetBSD's
assembler. Use the appropriate `.stabs' when on NetBSD.
This commit is contained in:
parent
7f57325fbc
commit
7d6620d6df
|
@ -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[] =
|
||||
|
|
Loading…
Reference in New Issue