From 12e285c6586dbcbfd391d16325c07902adf56082 Mon Sep 17 00:00:00 2001 From: deraadt Date: Tue, 25 Apr 2023 04:11:10 +0000 Subject: [PATCH] endbr64 is potentially neccessary in the syscall stubs. --- libexec/ld.so/amd64/SYS.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libexec/ld.so/amd64/SYS.h b/libexec/ld.so/amd64/SYS.h index ed1f20725c1..0ac95d77abc 100644 --- a/libexec/ld.so/amd64/SYS.h +++ b/libexec/ld.so/amd64/SYS.h @@ -1,4 +1,4 @@ -/* $OpenBSD: SYS.h,v 1.2 2023/01/11 01:55:17 mortimer Exp $ */ +/* $OpenBSD: SYS.h,v 1.3 2023/04/25 04:11:10 deraadt Exp $ */ /* * Copyright (c) 2002,2004 Dale Rahn @@ -35,6 +35,7 @@ .type __CONCAT(_dl_,n), @function ;\ .align 16,0xcc ;\ __CONCAT(_dl_,n): ;\ + endbr64 ;\ RETGUARD_SETUP(_dl_##n, r11) ;\ RETGUARD_PUSH(r11) ;\ movl $(__CONCAT(SYS_,n)), %eax ;\ -- 2.20.1