diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2023-12-11 22:29:26 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2023-12-11 22:29:26 +0000 |
commit | c1d4c39f3682ac4231f5081425448e1349a782cc (patch) | |
tree | 2212bd195eb6eab44431ba1b98cfa11355faa93a /libexec/ld.so/alpha | |
parent | 334c7eb36543639c3f0534361f5e815df7e0a6fd (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/alpha')
-rw-r--r-- | libexec/ld.so/alpha/SYS.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libexec/ld.so/alpha/SYS.h b/libexec/ld.so/alpha/SYS.h index 3d0d140540d..62b4d67b048 100644 --- a/libexec/ld.so/alpha/SYS.h +++ b/libexec/ld.so/alpha/SYS.h @@ -1,4 +1,4 @@ -/* $OpenBSD: SYS.h,v 1.4 2023/12/10 16:45:50 deraadt Exp $ */ +/* $OpenBSD: SYS.h,v 1.5 2023/12/11 22:29:24 deraadt Exp $ */ /* * Copyright (c) 2001 Niklas Hallqvist @@ -63,6 +63,7 @@ #define PINSYSCALL(sysno, label) \ .pushsection .openbsd.syscalls,"",@progbits ;\ + .p2align 2 ;\ .long label ;\ .long sysno ;\ .popsection |