Required for strict-alignment architectures and a good idea on others.
ok deraadt@
-/* $OpenBSD: DEFS.h,v 1.3 2023/12/11 03:05:15 deraadt Exp $ */
+/* $OpenBSD: DEFS.h,v 1.4 2023/12/11 22:24:15 kettenis Exp $ */
/*
* Copyright (c) 2015,2018,2021 Philip Guenther <guenther@openbsd.org>
*
#define PINSYSCALL(sysno, label) \
.pushsection .openbsd.syscalls,"",_PROGBITS; \
+ .p2align 2; \
.long label; \
.long sysno; \
.popsection;
-/* $OpenBSD: SYS.h,v 1.17 2023/12/10 16:45:50 deraadt Exp $ */
+/* $OpenBSD: SYS.h,v 1.18 2023/12/11 22:24:15 kettenis Exp $ */
/* $NetBSD: SYS.h,v 1.4 1996/10/17 03:03:53 cgd Exp $ */
/*
#define PINSYSCALL(sysno, label) \
.pushsection .openbsd.syscalls,"",@progbits; \
+ .p2align 2; \
.long label; \
.long sysno; \
.popsection;
-/* $OpenBSD: SYS.h,v 1.25 2023/12/11 02:30:36 deraadt Exp $ */
+/* $OpenBSD: SYS.h,v 1.26 2023/12/11 22:24:15 kettenis Exp $ */
/*
* Copyright (c) 1998-2002 Michael Shalayeff
#define PINSYSCALL(sysno, label) \
.pushsection .openbsd.syscalls,"",@progbits !\
+ .p2align 2 !\
.long label !\
.long sysno !\
.popsection
-/* $OpenBSD: DEFS.h,v 1.4 2023/12/10 16:45:51 deraadt Exp $ */
+/* $OpenBSD: DEFS.h,v 1.5 2023/12/11 22:24:15 kettenis Exp $ */
/*
* Copyright (c) 2017 Philip Guenther <guenther@openbsd.org>
*
#define PINSYSCALL(sysno, label) \
.pushsection .openbsd.syscalls,"",@progbits; \
+ .p2align 2; \
.long label; \
.long sysno; \
.popsection;
-/* $OpenBSD: DEFS.h,v 1.4 2023/12/10 16:45:51 deraadt Exp $ */
+/* $OpenBSD: DEFS.h,v 1.5 2023/12/11 22:24:15 kettenis Exp $ */
#include <machine/asm.h>
#define PINSYSCALL(sysno, label) \
.pushsection .openbsd.syscalls,"",@progbits; \
+ .p2align 2; \
.long label; \
.long sysno; \
.popsection;
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $OpenBSD: SYS.h,v 1.13 2023/12/10 16:45:51 deraadt Exp $
+ * $OpenBSD: SYS.h,v 1.14 2023/12/11 22:24:16 kettenis Exp $
*/
#include <sys/syscall.h>
#define PINSYSCALL(sysno, label) \
.pushsection .openbsd.syscalls,"",@progbits; \
+ .p2align 2; \
.long label; \
.long sysno; \
.popsection;
-/* $OpenBSD: DEFS.h,v 1.2 2023/12/10 16:45:52 deraadt Exp $ */
+/* $OpenBSD: DEFS.h,v 1.3 2023/12/11 22:24:16 kettenis Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
#define PINSYSCALL(sysno, label) \
.pushsection .openbsd.syscalls,"",@progbits; \
+ .p2align 2; \
.long label; \
.long sysno; \
.popsection;
-/* $OpenBSD: DEFS.h,v 1.2 2023/12/10 16:45:52 deraadt Exp $ */
+/* $OpenBSD: DEFS.h,v 1.3 2023/12/11 22:24:16 kettenis Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
#define PINSYSCALL(sysno, label) \
.pushsection .openbsd.syscalls,"",@progbits; \
+ .p2align 2; \
.long label; \
.long sysno; \
.popsection;
-/* $OpenBSD: SYS.h,v 1.14 2023/12/10 16:45:52 deraadt Exp $ */
+/* $OpenBSD: SYS.h,v 1.15 2023/12/11 22:24:16 kettenis Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
#define PINSYSCALL(sysno, label) \
.pushsection .openbsd.syscalls,"",@progbits; \
+ .p2align 2; \
.long label; \
.long sysno; \
.popsection;