[llvm-commits] [compiler-rt] r146703 - in /compiler-rt/trunk/lib/asan: Makefile.old asan_rtl.cc
Kostya Serebryany
kcc at google.com
Thu Dec 15 15:08:00 PST 2011
Author: kcc
Date: Thu Dec 15 17:08:00 2011
New Revision: 146703
URL: http://llvm.org/viewvc/llvm-project?rev=146703&view=rev
Log:
[asan] revert r146529: we do need to build asan-rt as a shared library. Will need to find a different way to modify preinit_array
Modified:
compiler-rt/trunk/lib/asan/Makefile.old
compiler-rt/trunk/lib/asan/asan_rtl.cc
Modified: compiler-rt/trunk/lib/asan/Makefile.old
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/Makefile.old?rev=146703&r1=146702&r2=146703&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/Makefile.old (original)
+++ compiler-rt/trunk/lib/asan/Makefile.old Thu Dec 15 17:08:00 2011
@@ -287,6 +287,7 @@
$(LIBASAN_A): $(BIN) $(LIBASAN_OBJ) $(MAKEFILE)
mkdir -p $(LIBASAN_INST_DIR)
ar ru $@ $(LIBASAN_OBJ)
+ $(CXX) -shared $(CFLAGS) $(LIBASAN_OBJ) $(LD_FLAGS) -o $(BIN)/libasan$(SUFF).so
TEST_OBJECTS_COMMON=\
$(BIN)/asan_test$(SUFF).o \
Modified: compiler-rt/trunk/lib/asan/asan_rtl.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_rtl.cc?rev=146703&r1=146702&r2=146703&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_rtl.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_rtl.cc Thu Dec 15 17:08:00 2011
@@ -776,11 +776,3 @@
Report("AddressSanitizer Init done\n");
}
}
-
-#ifdef __linux__
-// On Linux, we force __asan_init to be called before anyone else
-// by placing it into .preinit_array section.
-// FIXME: do we have anything like this on Mac?
-__attribute__((section(".preinit_array")))
- typeof(__asan_init) *__asan_preinit =__asan_init;
-#endif
More information about the llvm-commits
mailing list