diff options
author | Stan Shebs <stanshebs@google.com> | 2018-02-07 12:55:59 -0800 |
---|---|---|
committer | Stan Shebs <stanshebs@google.com> | 2018-02-07 12:55:59 -0800 |
commit | 5756f8227e00815727740c79fa79c0aa3997fe1c (patch) | |
tree | 5305a3b6e1b83d47c428461c0caf75343e281869 | |
parent | 3a7215f0eaaf6ad015da747f632d177a03121a3b (diff) | |
download | glibc-5756f8227e00815727740c79fa79c0aa3997fe1c.zip glibc-5756f8227e00815727740c79fa79c0aa3997fe1c.tar.gz glibc-5756f8227e00815727740c79fa79c0aa3997fe1c.tar.bz2 |
Work around clang assembler error with bnd by itself on a line
-rw-r--r-- | sysdeps/x86_64/dl-trampoline.S | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/x86_64/dl-trampoline.S b/sysdeps/x86_64/dl-trampoline.S index ef1425c..a329162 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 |