aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2023-06-30 16:36:16 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2023-06-30 16:43:58 +0000
commitf4de136aa82978107aa98f91ca1928870b7d310a (patch)
tree8812fc33c66413d085d34b67cf6102badedc4158 /sys
parent533f1f686f175cbdb7b45280b24fc51d4cd46a06 (diff)
downloadsrc-f4de136aa82978107aa98f91ca1928870b7d310a.tar.gz
src-f4de136aa82978107aa98f91ca1928870b7d310a.zip
linux: binutils as requires %eflags instead of %flags for CFI.
This applies the changes to linux32_locore.asm from commit a35572b16e38 to the i386 copy.
Diffstat (limited to 'sys')
-rw-r--r--sys/i386/linux/linux_locore.asm8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/i386/linux/linux_locore.asm b/sys/i386/linux/linux_locore.asm
index 9aef5ad21d26..bebd05686149 100644
--- a/sys/i386/linux/linux_locore.asm
+++ b/sys/i386/linux/linux_locore.asm
@@ -23,7 +23,11 @@ ENTRY(linux_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
@@ -54,7 +58,11 @@ ENTRY(linux_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