]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
x86: last-insn recording should be per-subsection
authorJan Beulich <jbeulich@suse.com>
Fri, 15 Dec 2023 11:42:43 +0000 (12:42 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 15 Dec 2023 11:42:43 +0000 (12:42 +0100)
commitda374e940857fed398acccf4202b37b8a5bc8c38
treea962ea129a94499679c6863303607e16db30d952
parentc26906716eacae672a32309865ea5cc9f3e192c5
x86: last-insn recording should be per-subsection

Otherwise intermediate subsection switches result in inconsistent
behavior. Leverage ELF's section change hook to switch state as
necessary, limiting overhead to the bare minimum when subsections aren't
used.
gas/config/tc-i386.c
gas/config/tc-i386.h
gas/testsuite/gas/i386/i386.exp
gas/testsuite/gas/i386/lfence-subsect.d [new file with mode: 0644]
gas/testsuite/gas/i386/lfence-subsect.s [new file with mode: 0644]