summaryrefslogtreecommitdiff
path: root/libexec/ld.so/i386
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2023-12-11 22:29:26 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2023-12-11 22:29:26 +0000
commitc1d4c39f3682ac4231f5081425448e1349a782cc (patch)
tree2212bd195eb6eab44431ba1b98cfa11355faa93a /libexec/ld.so/i386
parent334c7eb36543639c3f0534361f5e815df7e0a6fd (diff)
Make sure the syscall table entries are aligned on a 4-byte boundary.
Required for strict-alignment architectures and a good idea on others. same as kettenis commit to libc
Diffstat (limited to 'libexec/ld.so/i386')
-rw-r--r--libexec/ld.so/i386/SYS.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libexec/ld.so/i386/SYS.h b/libexec/ld.so/i386/SYS.h
index b714c503b27..7d09eb5652a 100644
--- a/libexec/ld.so/i386/SYS.h
+++ b/libexec/ld.so/i386/SYS.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: SYS.h,v 1.2 2023/12/10 16:45:50 deraadt Exp $ */
+/* $OpenBSD: SYS.h,v 1.3 2023/12/11 22:29:24 deraadt Exp $ */
/*
* Copyright (c) 2002 Dale Rahn
@@ -32,6 +32,7 @@
#define PINSYSCALL(sysno, label) \
.pushsection .openbsd.syscalls,"",@progbits ;\
+ .p2align 2 ;\
.long label ;\
.long sysno ;\
.popsection