diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2023-12-18 17:19:08 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2023-12-18 17:19:08 +0000 |
commit | 39575bafa5c69f884423bb5e445ff8b1f7031f9f (patch) | |
tree | afb9a52a80d96d3e4638b00e4c3353c4e5786b4f | |
parent | ccbb4c2ea99c140e8daf54146bfaf4cf0a598918 (diff) |
correct section the SYS_kbind syscall pin record goes into
noticed by gnezdo
-rw-r--r-- | libexec/ld.so/loader.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/ld.so/loader.c b/libexec/ld.so/loader.c index 016bfa33633..d8be0dada17 100644 --- a/libexec/ld.so/loader.c +++ b/libexec/ld.so/loader.c @@ -1,4 +1,4 @@ -/* $OpenBSD: loader.c,v 1.215 2023/12/12 15:44:00 deraadt Exp $ */ +/* $OpenBSD: loader.c,v 1.216 2023/12/18 17:19:07 deraadt Exp $ */ /* * Copyright (c) 1998 Per Fogelstrom, Opsycon AB @@ -476,13 +476,13 @@ _dl_self_relro(long loff) #define __STRINGIFY(x) #x #define STRINGIFY(x) __STRINGIFY(x) #ifdef __arm__ -__asm__(".pushsection openbsd.syscalls,\"\",%progbits;" +__asm__(".pushsection .openbsd.syscalls,\"\",%progbits;" ".p2align 2;" ".long 0;" ".long " STRINGIFY(SYS_kbind) ";" ".popsection"); #else -__asm__(".pushsection openbsd.syscalls,\"\",@progbits;" +__asm__(".pushsection .openbsd.syscalls,\"\",@progbits;" ".long 0;" ".p2align 2;" ".long " STRINGIFY(SYS_kbind) ";" |