]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Work around clang assembler error with bnd by itself on a line
authorStan Shebs <stanshebs@google.com>
Wed, 7 Feb 2018 20:55:59 +0000 (12:55 -0800)
committerStan Shebs <stanshebs@google.com>
Wed, 7 Feb 2018 20:55:59 +0000 (12:55 -0800)
sysdeps/x86_64/dl-trampoline.S

index ef1425cbb909529a21ecbbc3a07d6f2c7b752575..a32916211bce46c3aded4ce2ffad3bc72119ac22 100644 (file)
@@ -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