about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--sysdeps/x86_64/dl-trampoline.S3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/x86_64/dl-trampoline.S b/sysdeps/x86_64/dl-trampoline.S
index a6ae32d100..020f139945 100644
--- a/sysdeps/x86_64/dl-trampoline.S
+++ b/sysdeps/x86_64/dl-trampoline.S
@@ -45,7 +45,8 @@
 #ifdef __ILP32__
 # define PRESERVE_BND_REGS_PREFIX
 #else
-# ifdef HAVE_MPX_SUPPORT
+/* clang integrated assembler does not like "bnd" by itself on a line. */
+# if defined(HAVE_MPX_SUPPORT) && !defined(__clang__)
 #  define PRESERVE_BND_REGS_PREFIX bnd
 # else
 #  define PRESERVE_BND_REGS_PREFIX .byte 0xf2