aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Shebs <stanshebs@google.com>2018-02-07 12:55:59 -0800
committerStan Shebs <stanshebs@google.com>2018-02-07 12:55:59 -0800
commit5756f8227e00815727740c79fa79c0aa3997fe1c (patch)
tree5305a3b6e1b83d47c428461c0caf75343e281869
parent3a7215f0eaaf6ad015da747f632d177a03121a3b (diff)
downloadglibc-5756f8227e00815727740c79fa79c0aa3997fe1c.tar
glibc-5756f8227e00815727740c79fa79c0aa3997fe1c.tar.gz
glibc-5756f8227e00815727740c79fa79c0aa3997fe1c.tar.bz2
glibc-5756f8227e00815727740c79fa79c0aa3997fe1c.zip
Work around clang assembler error with bnd by itself on a line
-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 ef1425cbb9..a32916211b 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