From: Stan Shebs Date: Wed, 7 Feb 2018 20:55:59 +0000 (-0800) Subject: Work around clang assembler error with bnd by itself on a line X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5756f8227e00815727740c79fa79c0aa3997fe1c;p=thirdparty%2Fglibc.git Work around clang assembler error with bnd by itself on a line --- diff --git a/sysdeps/x86_64/dl-trampoline.S b/sysdeps/x86_64/dl-trampoline.S index ef1425cbb90..a32916211bc 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