From: deraadt Date: Tue, 25 Apr 2023 04:11:10 +0000 (+0000) Subject: endbr64 is potentially neccessary in the syscall stubs. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=12e285c6586dbcbfd391d16325c07902adf56082;p=openbsd endbr64 is potentially neccessary in the syscall stubs. --- 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 ;\