summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/hppa/crt1.S
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-02-23 03:49:04 +0000
committerMike Frysinger <vapier@gentoo.org>2006-02-23 03:49:04 +0000
commite701397e03e045a26941ff05581cf2f04399185c (patch)
tree8fa9b3b6b36f1ac515963850d94558b7d9c0019a /libc/sysdeps/linux/hppa/crt1.S
parent44bb4a058ba60cc05607246da05ff104d6716e6b (diff)
add support for __UCLIBC_CTOR_DTOR__
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 */