summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/hppa/crt1.S
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/hppa/crt1.S')
-rw-r--r--libc/sysdeps/linux/hppa/crt1.S5
1 files changed, 5 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/hppa/crt1.S b/libc/sysdeps/linux/hppa/crt1.S
index cd048ed45..8b42dacde 100644
--- a/libc/sysdeps/linux/hppa/crt1.S
+++ b/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 */