Explorar o código

add support for __UCLIBC_CTOR_DTOR__

Mike Frysinger %!s(int64=19) %!d(string=hai) anos
pai
achega
e701397e03
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  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 */