瀏覽代碼

add support for __UCLIBC_CTOR_DTOR__

Mike Frysinger 19 年之前
父節點
當前提交
e701397e03
共有 1 個文件被更改,包括 5 次插入0 次删除
  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 */