Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Nov 2022 18:36:41 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 20125b23ff15 - stable/13 - linux32: binutils as requires %eflags instead of %flags for CFI.
Message-ID:  <202211111836.2ABIaf6M003928@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=20125b23ff1532a61775c32e28bd78d9a8835737

commit 20125b23ff1532a61775c32e28bd78d9a8835737
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-09-29 22:06:01 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-11-11 18:18:53 +0000

    linux32: binutils as requires %eflags instead of %flags for CFI.
    
    Reviewed by:    kib
    Differential Revision:  https://reviews.freebsd.org/D36781
    
    (cherry picked from commit a35572b16e38420f5f7573b13bfe2c3b07a79d19)
---
 sys/amd64/linux32/linux32_locore.asm | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/sys/amd64/linux32/linux32_locore.asm b/sys/amd64/linux32/linux32_locore.asm
index f4cdc5fc1559..bf1158185a1f 100644
--- a/sys/amd64/linux32/linux32_locore.asm
+++ b/sys/amd64/linux32/linux32_locore.asm
@@ -24,7 +24,11 @@ ENTRY(linux32_vdso_sigcode)
 	.cfi_offset	%ds, L_SC_DS
 	.cfi_offset	%cs, L_SC_CS
 	.cfi_offset	%ss, L_SC_SS
+#ifdef __clang__
 	.cfi_offset	%flags, L_SC_EFLAGS
+#else
+	.cfi_offset	%eflags, L_SC_EFLAGS
+#endif
 	.cfi_offset	%edi, L_SC_EDI
 	.cfi_offset	%esi, L_SC_ESI
 	.cfi_offset	%ebp, L_SC_EBP
@@ -56,7 +60,11 @@ ENTRY(linux32_vdso_rt_sigcode)
 	.cfi_offset	%ds, L_SC_DS
 	.cfi_offset	%cs, L_SC_CS
 	.cfi_offset	%ss, L_SC_SS
+#ifdef __clang__
 	.cfi_offset	%flags, L_SC_EFLAGS
+#else
+	.cfi_offset	%eflags, L_SC_EFLAGS
+#endif
 	.cfi_offset	%edi, L_SC_EDI
 	.cfi_offset	%esi, L_SC_ESI
 	.cfi_offset	%ebp, L_SC_EBP



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202211111836.2ABIaf6M003928>