Browse Source

add support for __UCLIBC_CTOR_DTOR__

Mike Frysinger 18 years ago
parent
commit
e701397e03
1 changed files with 5 additions and 0 deletions
  1. 5 0
      libc/sysdeps/linux/hppa/crt1.S

+ 5 - 0
libc/sysdeps/linux/hppa/crt1.S

@@ -37,8 +37,13 @@
 	.import main, code
 	.import $global$, data
 	.import __uClibc_main, code
+#if defined(__UCLIBC_CTOR_DTOR__)
 	.import _fini, code
 	.import _init, code
+#else
+	.weak _fini
+	.weak _init
+#endif
 
 	/* Have the linker create plabel words
            so we get PLABEL32 relocs and not 21/14 */