summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2023-12-11 03:05:18 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2023-12-11 03:05:18 +0000
commit67b6969458271006552d123cce8ee5001a8f502c (patch)
tree9c7f5973cd5a9f995063bf4ba676c25fe4aaadc9 /lib
parent4fc0aa8a915b6da273dda96eeb2957360e9b24d3 (diff)
arm just had to be different and change the syntax for .pushsection
arguments, so we have to cope.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/arch/DEFS.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libc/arch/DEFS.h b/lib/libc/arch/DEFS.h
index d9852ecb17f..472b530b240 100644
--- a/lib/libc/arch/DEFS.h
+++ b/lib/libc/arch/DEFS.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: DEFS.h,v 1.2 2023/12/10 16:45:50 deraadt Exp $ */
+/* $OpenBSD: DEFS.h,v 1.3 2023/12/11 03:05:15 deraadt Exp $ */
/*
* Copyright (c) 2015,2018,2021 Philip Guenther <guenther@openbsd.org>
*
@@ -20,8 +20,10 @@
/* ARM just had to be different... */
#ifndef __arm__
# define _FUNC_TYPE @function
+# define _PROGBITS @progbits
#else
# define _FUNC_TYPE #function
+# define _PROGBITS %progbits
#endif
/*
@@ -69,7 +71,7 @@
#define _END(x) .size x, . - x
#define PINSYSCALL(sysno, label) \
- .pushsection .openbsd.syscalls,"",@progbits; \
+ .pushsection .openbsd.syscalls,"",_PROGBITS; \
.long label; \
.long sysno; \
.popsection;