[PATCH] D32172: Port asan to FreeBSD AArch64

John Baldwin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 27 15:02:12 PDT 2018


bsdjhb added inline comments.


================
Comment at: lib/sanitizer_common/sanitizer_linux_libcdep.cc:329
   __asm __volatile("movq %%fs:0, %0" : "=r" (segbase));
+# elif defined(__aarch64__)
+  __asm __volatile("mrs %0, tpidr_el0" : "=&r" (segbase));
----------------
aarch64 on FreeBSD uses TLS variant I and the code futher below assumes Variant II used on x86.  You might be able to add reuse the variant I code I have in the FreeBSD/mips64 ASAN patch though for this.


Repository:
  rL LLVM

https://reviews.llvm.org/D32172





More information about the llvm-commits mailing list