diff options
author | Stan Shebs <stanshebs@google.com> | 2018-02-07 12:55:59 -0800 |
---|---|---|
committer | Stan Shebs <stanshebs@google.com> | 2019-04-24 09:47:33 -0700 |
commit | 1cfcdae9796ab91b7f89f8ee7a808bf12842f8e3 (patch) | |
tree | a809fd306e83fa7aa2282134b9f75b93d066e8a9 | |
parent | 7c44a0bf9c14fe15a1543ab1cca5da2a66d969e2 (diff) | |
download | glibc-1cfcdae9796ab91b7f89f8ee7a808bf12842f8e3.tar.gz glibc-1cfcdae9796ab91b7f89f8ee7a808bf12842f8e3.tar.xz glibc-1cfcdae9796ab91b7f89f8ee7a808bf12842f8e3.zip |
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 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 |