Apparently spotted by mortimer@ while working on clang 13 and amd64.
No actual change on sparc64 as this architecture still uses ld.bfd.
ok kettenis@
-/* $OpenBSD: brk.S,v 1.10 2017/11/21 19:08:36 kettenis Exp $ */
+/* $OpenBSD: brk.S,v 1.11 2021/10/25 14:38:10 jca Exp $ */
/* $NetBSD: brk.S,v 1.7 2003/12/26 11:23:44 martin Exp $ */
/*-
.word _C_LABEL(_end)
END(__minbrk)
- .weak brk
-
/*
* Change the data segment size
*/
.Lcurbrk:
.word PIC_SYM(__curbrk, GOT)
END(brk)
+ .weak brk
-/* $OpenBSD: sbrk.S,v 1.10 2017/11/21 19:08:36 kettenis Exp $ */
+/* $OpenBSD: sbrk.S,v 1.11 2021/10/25 14:38:10 jca Exp $ */
/* $NetBSD: sbrk.S,v 1.7 2003/08/07 16:42:05 agc Exp $ */
/*-
.word _C_LABEL(_end)
END(__curbrk)
- .weak sbrk
/*
* Change the data segment size
*/
.Lcurbrk:
.word PIC_SYM(__curbrk, GOT)
END(sbrk)
+ .weak sbrk
-/* $OpenBSD: brk.S,v 1.13 2017/08/19 18:24:06 deraadt Exp $ */
+/* $OpenBSD: brk.S,v 1.14 2021/10/25 14:38:10 jca Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
END(__minbrk)
.type __minbrk,@object
- .weak brk
ENTRY(brk)
#ifdef __PIC__
movl 4(%esp),%ecx
SET_ERRNO()
ret
END(brk)
+ .weak brk
-/* $OpenBSD: sbrk.S,v 1.13 2017/08/19 18:24:06 deraadt Exp $ */
+/* $OpenBSD: sbrk.S,v 1.14 2021/10/25 14:38:10 jca Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
END(__curbrk)
.type __curbrk,@object
- .weak sbrk
ENTRY(sbrk)
#ifdef __PIC__
movl 4(%esp),%ecx
SET_ERRNO()
ret
END(sbrk)
+ .weak sbrk
-/* $OpenBSD: brk.S,v 1.15 2020/10/26 22:07:05 gkoehler Exp $ */
+/* $OpenBSD: brk.S,v 1.16 2021/10/25 14:38:10 jca Exp $ */
/*
* Copyright (c) 1996 Dale Rahn
.extern __curbrk
.extern _C_LABEL(_end)
- .weak brk
-
ENTRY(brk)
/* check >= _end, if not make the call for _end */
mr 3, 0 /* # return 0 */
blr
END(brk)
+ .weak brk
-/* $OpenBSD: sbrk.S,v 1.14 2020/10/26 22:07:05 gkoehler Exp $ */
+/* $OpenBSD: sbrk.S,v 1.15 2021/10/25 14:38:10 jca Exp $ */
/*
* Copyright (c) 1996 Dale Rahn
END(__curbrk)
.type __curbrk,@object
- .weak sbrk
-
.text
ENTRY(sbrk)
mr 3, 5 /* # remember, 5=old_curbrk */
blr
END(sbrk)
+ .weak sbrk
-/* $OpenBSD: brk.S,v 1.1 2021/05/04 04:17:53 drahn Exp $ */
+/* $OpenBSD: brk.S,v 1.2 2021/10/25 14:38:10 jca Exp $ */
/*
* Copyright (c) 2021 Dale Rahn <drahn@openbsd.org>
*
.dword _C_LABEL(_end)
- .weak brk
ENTRY(brk)
RETGUARD_SETUP(brk, t6)
lla t1, _C_LABEL(__minbrk)
RETGUARD_CHECK(brk, t6);
ret
END(brk)
+ .weak brk
-/* $OpenBSD: sbrk.S,v 1.1 2021/05/04 04:17:53 drahn Exp $ */
+/* $OpenBSD: sbrk.S,v 1.2 2021/10/25 14:38:10 jca Exp $ */
/*
* Copyright (c) 2021 Dale Rahn <drahn@openbsd.org>
*
.dword _C_LABEL(_end)
END(__curbrk)
- .weak sbrk
ENTRY(sbrk)
RETGUARD_SETUP(sbrk, t6)
RETGUARD_CHECK(sbrk, t6);
ret
END(sbrk)
+ .weak sbrk
-/* $OpenBSD: brk.S,v 1.7 2015/09/05 06:22:47 guenther Exp $ */
+/* $OpenBSD: brk.S,v 1.8 2021/10/25 14:38:10 jca Exp $ */
/* $NetBSD: brk.S,v 1.9 2000/07/25 20:15:40 mycroft Exp $ */
/*
.globl __curbrk
.globl _C_LABEL(_end)
- .weak brk
-
.data
.align 8
__minbrk:
stx %o2, [%g1 + %lo(__curbrk)]
#endif
END(brk)
+ .weak brk
-/* $OpenBSD: sbrk.S,v 1.5 2015/09/05 06:22:47 guenther Exp $ */
+/* $OpenBSD: sbrk.S,v 1.6 2021/10/25 14:38:10 jca Exp $ */
/* $NetBSD: sbrk.S,v 1.7 2000/07/25 15:14:46 mycroft Exp $ */
/*
OTYPE(__curbrk)
.text
- .weak sbrk
-
ENTRY(sbrk)
#ifdef __PIC__
PIC_PROLOGUE(%o5,%o4)
stx %o4, [%o2 + %lo(__curbrk)]
#endif
END(sbrk)
+ .weak sbrk
-/* $OpenBSD: base64.c,v 1.13 2021/10/24 10:05:22 jsg Exp $ */
+/* $OpenBSD: base64.c,v 1.14 2021/10/25 14:38:10 jca Exp $ */
/*
* Copyright (c) 1996 by Internet Software Consortium.
* IF IBM IS APPRISED OF THE POSSIBILITY OF SUCH DAMAGES.
*/
-#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>