From: deraadt Date: Mon, 18 Dec 2023 17:19:07 +0000 (+0000) Subject: correct section the SYS_kbind syscall pin record goes into X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=babd3acecf8f4907c9b8d00aa6a432e0dfdfd6c8;p=openbsd correct section the SYS_kbind syscall pin record goes into noticed by gnezdo --- 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) ";"