-/* $OpenBSD: SYS.h,v 1.4 2020/10/16 23:42:14 deraadt Exp $ */
+/* $OpenBSD: SYS.h,v 1.5 2022/12/07 23:25:59 guenther Exp $ */
/*-
* Copyright (c) 1994
* Andrew Cagney. All rights reserved.
/* offset of errno from %r13 */
#define R13_OFFSET_ERRNO (-TCB_OFFSET + TCB_OFFSET_ERRNO)
-#define SYSENTRY(x) .weak _C_LABEL(x); \
- _C_LABEL(x) = _C_LABEL(_thread_sys_ ## x); \
+#define SYSENTRY(x) .weak x; \
+ x = _thread_sys_ ## x; \
ENTRY(_thread_sys_ ## x)
#define SYSENTRY_HIDDEN(x) ENTRY(_thread_sys_ ## x)
#define __END_HIDDEN(p,x) END(p##x); \
-/* $OpenBSD: brk.S,v 1.4 2020/10/16 23:42:16 deraadt Exp $ */
+/* $OpenBSD: brk.S,v 1.5 2022/12/07 23:25:59 guenther Exp $ */
/*
* Copyright (c) 1996 Dale Rahn
#include "SYS.h"
.extern __curbrk
- .extern _C_LABEL(_end)
+ .extern _end
.weak brk
-/* $OpenBSD: asm.h,v 1.6 2020/10/22 23:35:43 mortimer Exp $ */
+/* $OpenBSD: asm.h,v 1.7 2022/12/07 23:25:59 guenther Exp $ */
/*
* Copyright (c) 2020 Dale Rahn <drahn@openbsd.org>
addis %r2, %r12, .TOC.-_GEP_LABEL(x)@ha; \
addi %r2, %r2, .TOC.-_GEP_LABEL(x)@l; \
_LEP_LABEL(x): \
- .localentry _C_LABEL(x), _LEP_LABEL(x)-_GEP_LABEL(x);
+ .localentry x, _LEP_LABEL(x)-_GEP_LABEL(x);
#if defined(PROF) || defined(GPROF)
# define _PROF_PROLOGUE(y) \
# define _PROF_PROLOGUE(y)
#endif
-#define ENTRY(y) _ENTRY(_C_LABEL(y)); _PROF_PROLOGUE(y)
-#define ASENTRY(y) _ENTRY(_ASM_LABEL(y)); _PROF_PROLOGUE(y)
+#define ENTRY(y) _ENTRY(y); _PROF_PROLOGUE(y)
+#define ASENTRY(y) _ENTRY(y); _PROF_PROLOGUE(y)
#define END(y) .size y, . - y
#define STRONG_ALIAS(alias,sym) \