diff options
author | 2002-10-07 04:34:34 +0000 | |
---|---|---|
committer | 2002-10-07 04:34:34 +0000 | |
commit | a6fdac31fa08d9f4c920a1812ad6e907961d8f99 (patch) | |
tree | b9be576171b59b6454a963e9a6e111de028d48c6 /lib/libc | |
parent | s/curbrk/__curbrk/ as suggested by art, a few _ASM_LABEL added as appropriate. (diff) | |
download | wireguard-openbsd-a6fdac31fa08d9f4c920a1812ad6e907961d8f99.tar.xz wireguard-openbsd-a6fdac31fa08d9f4c920a1812ad6e907961d8f99.zip |
clean up ifdefs for PIC, resulting code unchanged.
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/arch/powerpc/sys/cerror.S | 9 |
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) |