summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2002-10-07 04:34:35 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2002-10-07 04:34:35 +0000
commit95ca955eaaa019766f61cdb03bd5f71185c9248d (patch)
tree1baf5fc954e10af87fc023992982d123de550101 /lib
parentf673100e04e61cbdc1c6b7c36245226c5fca0b67 (diff)
clean up ifdefs for PIC, resulting code unchanged.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/arch/powerpc/sys/cerror.S9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/libc/arch/powerpc/sys/cerror.S b/lib/libc/arch/powerpc/sys/cerror.S
index a2f0870ea7e..3e54fcc0418 100644
--- a/lib/libc/arch/powerpc/sys/cerror.S
+++ b/lib/libc/arch/powerpc/sys/cerror.S
@@ -7,15 +7,12 @@ ASENTRY(__cerror)
stwu 1, -16(1) /* follow the SVR4 ABI */
mflr 3 /* error value is in r0, use r3 */
stw 3, 20(1)
-#endif
-
-#ifndef PIC
- addis 5, 0, errno@H
- ori 5, 5, errno@L
-#else
bl _GLOBAL_OFFSET_TABLE_@local-4
mflr 4
lwz 5,_C_LABEL(errno)@got(4)
+#else
+ addis 5, 0, errno@H
+ ori 5, 5, errno@L
#endif
stw 0, 0(5)