[compiler-rt] r255733 - [cfi] Fix GCC build.
Evgeniy Stepanov via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 15 16:34:30 PST 2015
Author: eugenis
Date: Tue Dec 15 18:34:30 2015
New Revision: 255733
URL: http://llvm.org/viewvc/llvm-project?rev=255733&view=rev
Log:
[cfi] Fix GCC build.
Modified:
compiler-rt/trunk/lib/cfi/cfi.cc
Modified: compiler-rt/trunk/lib/cfi/cfi.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/cfi/cfi.cc?rev=255733&r1=255732&r2=255733&view=diff
==============================================================================
--- compiler-rt/trunk/lib/cfi/cfi.cc (original)
+++ compiler-rt/trunk/lib/cfi/cfi.cc Tue Dec 15 18:34:30 2015
@@ -188,7 +188,7 @@ static void init_shadow() {
dl_iterate_phdr(dl_iterate_phdr_cb, nullptr);
}
-SANITIZER_INTERFACE_ATTRIBUTE extern "C"
+extern "C" SANITIZER_INTERFACE_ATTRIBUTE
void __cfi_slowpath(uptr CallSiteTypeId, void *Ptr) {
uptr Addr = (uptr)Ptr;
VReport(3, "__cfi_slowpath: %zx, %p\n", CallSiteTypeId, Ptr);
@@ -233,7 +233,7 @@ static void InitializeFlags() {
}
}
-extern "C" __attribute__((visibility("default")))
+extern "C" SANITIZER_INTERFACE_ATTRIBUTE
#if !SANITIZER_CAN_USE_PREINIT_ARRAY
// On ELF platforms, the constructor is invoked using .preinit_array (see below)
__attribute__((constructor(0)))
More information about the llvm-commits
mailing list