From: guenther Date: Mon, 15 Jan 2024 06:57:07 +0000 (+0000) Subject: From "Lorenz (xha)" (me(at)xha.li): teach binutils how to assemble X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=aa7b6e9de47add23ac174f3753e748aec4007562;p=openbsd From "Lorenz (xha)" (me(at)xha.li): teach binutils how to assemble endbr{64,32} "sure" dv@ deraadt@ --- diff --git a/gnu/usr.bin/binutils-2.17/include/opcode/i386.h b/gnu/usr.bin/binutils-2.17/include/opcode/i386.h index 7b315144c1e..a8d4a43d24a 100644 --- a/gnu/usr.bin/binutils-2.17/include/opcode/i386.h +++ b/gnu/usr.bin/binutils-2.17/include/opcode/i386.h @@ -1534,6 +1534,10 @@ static const template i386_optab[] = {"invpcid", 2, 0x660f3882, X, CpuNEW|CpuNo64, Modrm|IgnoreSize|No_bSuf|No_wSuf|No_sSuf|No_qSuf|No_xSuf|NoRex64, { BaseIndex|Disp8|Disp16|Disp32|Disp32S, Reg32 } }, {"invpcid", 2, 0x660f3882, X, CpuNEW|Cpu64, Modrm|IgnoreSize|No_bSuf|No_wSuf|No_sSuf|No_qSuf|No_xSuf|NoRex64, { BaseIndex|Disp8|Disp16|Disp32|Disp32S, Reg64 } }, +/* Intel Indirect Branch Tracking extensions */ +{"endbr64", 0, 0xF30F1E, 0xFA, Cpu64, NoSuf|ImmExt, { 0, 0, 0 } }, +{"endbr32", 0, 0xF30F1E, 0xFB, CpuNo64, NoSuf|ImmExt, { 0, 0, 0 } }, + /* sentinel */ {NULL, 0, 0, 0, 0, 0, { 0, 0, 0} } };