diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2022-06-10 01:56:03 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2022-06-10 01:56:03 +0000 |
commit | d8e4dfd27f23fc7cbb43cfe43d8882323e4224c2 (patch) | |
tree | 4f5e8eb23f1a270fea44ec95bce52a33fba697d8 /sys/arch | |
parent | ac38d679b84645f1cd78e80b0b43a0cbdb20f679 (diff) |
Add _?ENTRY_NB() macro for doing an ASM function entry without
setting the binding to global (NB == "no binding"), as clang 13 is
now warning about changing the binding from global to weak. Use
them for bcopy, brk, and sbrk.
Add the '.L' prefix to internal labels in the bcopy implementation
to remove them from the symbol table
Start using the MI DEFS.h: delete the #defines from powerpc/SYS.h
that the MI DEFS.h provides and switch from SYS.h to DEFS.h in files
that don't do syscalls. Use END_BUILTIN from the MI DEFS.h for ffs.
ok gkoehler@
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/powerpc/include/asm.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/arch/powerpc/include/asm.h b/sys/arch/powerpc/include/asm.h index 2e0a7707730..01d238d6b9d 100644 --- a/sys/arch/powerpc/include/asm.h +++ b/sys/arch/powerpc/include/asm.h @@ -1,4 +1,4 @@ -/* $OpenBSD: asm.h,v 1.16 2020/11/28 19:49:30 gkoehler Exp $ */ +/* $OpenBSD: asm.h,v 1.17 2022/06/10 01:56:02 guenther Exp $ */ /* $NetBSD: asm.h,v 1.1 1996/09/30 16:34:20 ws Exp $ */ /* @@ -69,8 +69,9 @@ # define _TMP_LABEL(x) .L_/**/x #endif -#define _ENTRY(x) \ - .text; .align 2; .globl x; .type x,@function; x: +#define _ENTRY_NB(x) \ + .text; .align 2; .type x,@function; x: +#define _ENTRY(x) .globl x; _ENTRY_NB(x) #if defined(PROF) || defined(GPROF) # define _PROF_PROLOGUE(y) \ @@ -89,6 +90,7 @@ _TMP_LABEL(y):; \ #endif #define ENTRY(y) _ENTRY(_C_LABEL(y)); _PROF_PROLOGUE(y) +#define ENTRY_NB(y) _ENTRY_NB(y); _PROF_PROLOGUE(y) #define ASENTRY(y) _ENTRY(_ASM_LABEL(y)); _PROF_PROLOGUE(y) #define END(y) .size y, . - y |