diff options
author | 2018-06-16 16:06:03 +0000 | |
---|---|---|
committer | 2018-06-16 16:06:03 +0000 | |
commit | acd0de91b74efe8567f819ca555a304fb1ae700d (patch) | |
tree | e091d82582e2745f1c961b04bada89bb5090e65f /lib/libc | |
parent | Zap whitespaces (diff) | |
download | wireguard-openbsd-acd0de91b74efe8567f819ca555a304fb1ae700d.tar.xz wireguard-openbsd-acd0de91b74efe8567f819ca555a304fb1ae700d.zip |
Add add PIE support for m88k (requires gcc4 toolchain)
Convert __cerror to hidden visibility.
from miod@
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/arch/m88k/SYS.h | 8 | ||||
-rw-r--r-- | lib/libc/arch/m88k/sys/cerror.S | 4 |
2 files changed, 7 insertions, 5 deletions
diff --git a/lib/libc/arch/m88k/SYS.h b/lib/libc/arch/m88k/SYS.h index 636b5e7ea82..feb08d91253 100644 --- a/lib/libc/arch/m88k/SYS.h +++ b/lib/libc/arch/m88k/SYS.h @@ -1,4 +1,4 @@ -/* $OpenBSD: SYS.h,v 1.24 2016/09/22 18:19:59 guenther Exp $*/ +/* $OpenBSD: SYS.h,v 1.25 2018/06/16 16:06:03 guenther Exp $*/ /*- * Copyright (c) 1990 The Regents of the University of California. * All rights reserved. @@ -73,8 +73,10 @@ ld %r11, %r25, __CONCAT(sym,#got_rel); \ st reg, %r11, %r0 #endif -#endif +#define CERROR __cerror#plt +#else /* __PIC__ */ #define CERROR __cerror +#endif /* __PIC__ */ #define __DO_SYSCALL(x) \ or %r13, %r0, __SYSCALLNAME(SYS_,x); \ @@ -127,5 +129,3 @@ #define SYSCALL_END(x) SYSCALL_END_HIDDEN(x); END(x) #define ASMSTR .asciz - - .globl __cerror diff --git a/lib/libc/arch/m88k/sys/cerror.S b/lib/libc/arch/m88k/sys/cerror.S index 20b2d43581a..7297885dc0e 100644 --- a/lib/libc/arch/m88k/sys/cerror.S +++ b/lib/libc/arch/m88k/sys/cerror.S @@ -1,4 +1,4 @@ -/* $OpenBSD: cerror.S,v 1.14 2016/09/22 18:19:59 guenther Exp $ */ +/* $OpenBSD: cerror.S,v 1.15 2018/06/16 16:06:03 guenther Exp $ */ /*- * Copyright (c) 1990 The Regents of the University of California. @@ -51,6 +51,8 @@ ASENTRY(__cerror) or %r2, %r0, %r3 END(__cerror) + .hidden __cerror + #if 0 /* ahh, if only */ ASENTRY(__errno) |