1 2018-05-24 H.J. Lu <hongjiu.lu@intel.com>
4 * sanitizer_common/sanitizer_platform_limits_posix.cc: Don't
5 include <sys/ustat.h> for Linux.
6 (SIZEOF_STRUCT_USTAT): New.
7 (struct_ustat_sz): Use SIZEOF_STRUCT_USTAT for Linux.
9 2018-04-26 Hans-Peter Nilsson <hp@axis.com>
11 * configure.tgt <mips*-*-linux*>: Enable build, excluding
14 * sanitizer_common/sanitizer_platform_limits_linux.cc: Do not
15 take the shortcut to #include <sys/stat.h> for MIPS instead of
16 the kernel <asm/stat.h>. Explain why sys/stat.h is misleading
17 or wrong to get the kernel struct stat.
18 * sanitizer_common/sanitizer_platform_limits_posix.h [__mips__]:
19 Correct the value for 32-bit non-android struct_kernel_stat_sz.
21 * sanitizer_common/sanitizer_atomic_clang_other.h [_MIPS_SIM
22 && _MIPS_SIM == _ABIO32] (lock): Add initializer for .pad member.
24 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
26 * configure: Regenerated.
28 2018-04-19 Jakub Jelinek <jakub@redhat.com>
30 * configure: Regenerated.
32 2018-04-18 David Malcolm <dmalcolm@redhat.com>
35 * configure: Regenerate.
37 2018-04-18 Bill Seurer <seurer@linux.vnet.ibm.com>
40 * asan/asan_allocator.h (kAllocatorSpace): For __powerpc64__ change
41 from 0xa0000000000ULL to ~(uptr)0.
43 2018-03-19 Jakub Jelinek <jakub@redhat.com>
46 * sanitizer_common/sanitizer_linux_libcdep.cc (__GLIBC_PREREQ):
47 Define if not defined.
48 (DL_INTERNAL_FUNCTION): Don't define.
49 (InitTlsSize): For __i386__ if not compiled against glibc 2.27+
50 determine at runtime whether to use regparm(3), stdcall calling
51 convention for older glibcs or normal calling convention for
52 newer glibcs for call to _dl_get_tls_static_info.
54 2018-03-14 Segher Boessenkool <segher@kernel.crashing.org>
56 * sanitizer_common/sanitizer_stacktrace.cc
57 (BufferedStackTrace::FastUnwindStack): Use the correct frame offset
60 2018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
63 * configure: Regenerate.
65 2018-02-05 Martin Liska <mliska@suse.cz>
67 * asan/asan_flags.inc: Cherry-pick upstream r323995.
68 * asan/asan_report.cc (CheckForInvalidPointerPair):
69 Cherry-pick upstream r323995.
71 2018-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
74 * sanitizer_common/sanitizer_internal_defs.h: Cherry-pick upstream
77 2018-01-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
80 * lsan/lsan_common_mac.cc: Cherry-pick upstream r322437.
82 2017-12-05 Martin Liska <mliska@suse.cz>
83 Jakub Jelinek <jakub@redhat.com>
85 * asan/asan_descriptions.cc: Cherry-pick upstream r319668.
86 * asan/asan_descriptions.h: Likewise.
87 * asan/asan_report.cc: Likewise.
88 * asan/asan_thread.cc: Likewise.
89 * asan/asan_thread.h: Likewise.
91 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
93 * acinclude.m4: Add enable.m4 and cet.m4.
94 * Makefile.in: Regenerate.
95 * asan/Makefile.am: Update AM_CXXFLAGS.
96 * asan/Makefile.in: Regenerate.
97 * configure: Likewise.
98 * configure.ac: Set CET_FLAGS. Update EXTRA_CFLAGS,
99 EXTRA_CXXFLAGS, EXTRA_ASFLAGS.
100 * interception/Makefile.am: Update AM_CXXFLAGS.
101 * interception/Makefile.in: Regenerate.
102 * libbacktrace/Makefile.am: Update AM_CFLAGS, AM_CXXFLAGS.
103 * libbacktrace/Makefile.in: Regenerate.
104 * lsan/Makefile.am: Update AM_CXXFLAGS.
105 * lsan/Makefile.in: Regenerate.
106 * sanitizer_common/Makefile.am: Update AM_CXXFLAGS,
108 * sanitizer_common/sanitizer_linux_x86_64.S: Include cet.h.
109 Add _CET_ENDBR macro.
110 * sanitizer_common/Makefile.in: Regenerate.
111 * tsan/Makefile.am: Update AM_CXXFLAGS.
112 * tsan/Makefile.in: Regenerate.
113 * tsan/tsan_rtl_amd64.S Include cet.h. Add _CET_ENDBR macro.
114 * ubsan/Makefile.am: Update AM_CXXFLAGS.
115 * ubsan/Makefile.in: Regenerate.
117 2017-11-08 Jakub Jelinek <jakub@redhat.com>
120 * ubsan/Makefile.am (ubsan_files): Remove ubsan_init_standalone.cc
121 and ubsan_signals_standalone.cc.
122 * ubsan/Makefile.in: Regenerated.
124 2017-11-05 Tom de Vries <tom@codesourcery.com>
127 * asan/asan_poisoning.cc (CHECK_SMALL_REGION): Remove semicolon after
129 * lsan/lsan_common.cc (LOG_POINTERS, LOG_THREADS): Same.
131 2017-10-20 Jakub Jelinek <jakub@redhat.com>
134 * lsan/lsan.h (__lsan_init): Add SANITIZER_INTERFACE_ATTRIBUTE.
135 * lsan/Makefile.am (nodist_toolexeclib_HEADERS): Add
137 (lsan_files): Remove lsan_preinit.cc.
138 (liblsan_preinit.o): New rule.
139 * lsan/Makefile.in: Regenerated.
141 2017-10-19 Jakub Jelinek <jakub@redhat.com>
143 * All source files: Merge from upstream 315899.
144 * asan/Makefile.am (nodist_saninclude_HEADERS): Add
145 include/sanitizer/tsan_interface.h.
146 * asan/libtool-version: Bump the libasan SONAME.
147 * lsan/Makefile.am (sanitizer_lsan_files): Add lsan_common_mac.cc.
148 (lsan_files): Add lsan_linux.cc, lsan_mac.cc and lsan_malloc_mac.cc.
149 * sanitizer_common/Makefile.am (sanitizer_common_files): Add
150 sancov_flags.cc, sanitizer_allocator_checks.cc,
151 sanitizer_coverage_libcdep_new.cc, sanitizer_errno.cc,
152 sanitizer_file.cc, sanitizer_mac_libcdep.cc and
153 sanitizer_stoptheworld_mac.cc. Remove sanitizer_coverage_libcdep.cc
154 and sanitizer_coverage_mapping_libcdep.cc.
155 * tsan/Makefile.am (tsan_files): Add tsan_external.cc.
156 * ubsan/Makefile.am (DEFS): Add -DUBSAN_CAN_USE_CXXABI=1.
157 (ubsan_files): Add ubsan_init_standalone.cc and
158 ubsan_signals_standalone.cc.
159 * ubsan/libtool-version: Bump the libubsan SONAME.
160 * asan/Makefile.in: Regenerate.
161 * lsan/Makefile.in: Regenerate.
162 * sanitizer_common/Makefile.in: Regenerate.
163 * tsan/Makefile.in: Regenerate.
164 * ubsan/Makefile.in: Regenerate.
166 2017-10-05 H.J. Lu <hongjiu.lu@intel.com>
169 * configure.tgt (SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS): Set
170 to sanitizer_linux_x86_64.lo if __x86_64__ is defined by $CC.
172 2017-10-02 Jakub Jelinek <jakub@redhat.com>
174 * libbacktrace/backtrace-rename.h (backtrace_uncompress_zdebug):
177 2017-08-07 Jakub Jelinek <jakub@redhat.com>
179 * include/system/sys/ptrace.h: New file.
181 2017-07-28 Jakub Jelinek <jakub@redhat.com>
184 * ubsan/ubsan_handlers.cc: Cherry-pick upstream r304461.
185 * ubsan/ubsan_checks.inc: Likewise.
186 * ubsan/ubsan_handlers.h: Likewise.
188 2017-07-14 Jakub Jelinek <jakub@redhat.com>
191 * sanitizer_common/sanitizer_linux.h: Cherry-pick upstream r307969.
192 * sanitizer_common/sanitizer_linux.cc: Likewise.
193 * sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc: Likewise.
194 * tsan/tsan_platform_linux.cc: Likewise.
196 2017-04-06 Martin Liska <mliska@suse.cz>
199 * sanitizer_common/sanitizer_common_interceptors.inc (INTERCEPTOR):
200 Cherry-pick upstream r299036.
202 2017-03-22 Jakub Jelinek <jakub@redhat.com>
205 * tsan/tsan_interface_atomic.cc: Cherry-pick upstream r298378.
207 2017-02-16 Andreas Tobler <andreast@gcc.gnu.org>
210 * sanitizer_common/sanitizer_platform_limits_posix.cc: Cherry-pick
213 2017-02-11 Jakub Jelinek <jakub@redhat.com>
216 * configure.tgt (s390*-*-linux*): Don't disable libsanitizer on
218 * sanitizer_common/sanitizer_internal_defs.h: Cherry-pick upstream
220 * sanitizer_common/sanitizer_common_interceptors.inc: Cherry-pick
222 * sanitizer_common/sanitizer_linux_s390.cc: Cherry-pick upstream
225 2017-02-03 Maxim Ostapenko <m.ostapenko@samsung.com>
228 * sanitizer_common/sanitizer_mac.cc: Cherry-pick upstream r293992.
229 * sanitizer_common/sanitizer_platform_interceptors.h: Likewise.
231 2017-01-31 Jakub Jelinek <jakub@redhat.com>
233 * configure.tgt: Enable asan and ubsan on 64-bit s390*-*-linux*.
235 2017-01-24 Jakub Jelinek <jakub@redhat.com>
237 * configure.tgt: Enable tsan and lsan on powerpc64{,le}-*-linux*.
240 * merge.sh (change_comment_headers): Don't remove 2nd and 3rd line
241 if the 3rd line doesn't contain 'The LLVM Compiler Infrastructure'
243 * sanitizer_common/sanitizer_linux_mips64.S: Regenerated.
244 * sanitizer_common/sanitizer_linux_x86_64.S: Likewise.
245 * tsan/tsan_ppc_regs.h: Likewise.
246 * tsan/tsan_rtl_aarch64.S: Likewise.
247 * tsan/tsan_rtl_mips64.S: Likewise.
248 * tsan/tsan_rtl_ppc64.S: Likewise.
250 2017-01-21 Jakub Jelinek <jakub@redhat.com>
253 * interception/Makefile.am (gcc_version): Use @get_gcc_base_ver@
254 instead of cat to get version from BASE-VER file.
255 * asan/Makefile.am (gcc_version): Likewise.
256 * ubsan/Makefile.am (gcc_version): Likewise.
257 * sanitizer_common/Makefile.am (gcc_version): Likewise.
258 * lsan/Makefile.am (gcc_version): Likewise.
259 * tsan/Makefile.am (gcc_version): Likewise.
260 * interception/Makefile.in: Regenerated.
261 * asan/Makefile.in: Regenerated.
262 * ubsan/Makefile.in: Regenerated.
263 * sanitizer_common/Makefile.in: Regenerated.
264 * lsan/Makefile.in: Regenerated.
265 * tsan/Makefile.in: Regenerated.
267 2017-01-17 Jakub Jelinek <jakub@redhat.com>
270 * configure.ac: Add GCC_BASE_VER.
271 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
272 get version from BASE-VER file.
273 * libbacktrace/Makefile.in: Regenerated.
274 * interception/Makefile.in: Regenerated.
275 * asan/Makefile.in: Regenerated.
276 * ubsan/Makefile.in: Regenerated.
277 * configure: Regenerated.
278 * sanitizer_common/Makefile.in: Regenerated.
279 * lsan/Makefile.in: Regenerated.
280 * Makefile.in: Regenerated.
281 * tsan/Makefile.in: Regenerated.
283 2017-01-10 James Clarke <jrtc27@jrtc27.com>
286 * sanitizer_common/sanitizer_platform_limits_posix.h
287 (struct __sanitizer_sigaction): Cherry-pick upstream r291561.
289 2016-11-30 Maxim Ostapenko <m.ostapenko@samsung.com>
291 * LOCAL_PATCHES: Add revision.
293 2016-11-30 Maxim Ostapenko <m.ostapenko@samsung.com>
296 * sanitizer_common/sanitizer_platform_limits_posix.h
297 (__sanitizer_sigaction): Adjust for sparc targets and various Glibc
300 2016-11-29 Markus Trippelsdorf <markus@trippelsdorf.de>
302 * LOCAL_PATCHES: Remove r242480.
304 2016-11-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
306 * LOCAL_PATCHES: Add revision.
308 2016-11-20 Jack Howarth <howarth.at.gcc@gmail.com>
311 * sanitizer_common/sanitizer_mac.cc: Include <os/trace.h> only if
312 compiler supports blocks extension.
314 2016-11-16 Markus Trippelsdorf <markus@trippelsdorf.de>
316 * LOCAL_PATCHES: Add revision.
318 2016-11-16 Markus Trippelsdorf <markus@trippelsdorf.de>
321 * tsan/tsan_rtl.cc: Add missing attribute.
323 2016-11-16 Maxim Ostapenko <m.ostapenko@samsung.com>
325 * LOCAL_PATCHES: New file.
327 2016-11-16 Maxim Ostapenko <m.ostapenko@samsung.com>
330 * ubsan/ubsan_handlers.cc (__ubsan_handle_cfi_bad_icall): New function.
331 ( __ubsan_handle_cfi_bad_icall_abort): Likewise.
332 * ubsan/ubsan_handlers.h (struct CFIBadIcallData): New type.
333 * ubsan/ubsan_handlers_cxx.cc (__ubsan_handle_cfi_bad_type): New
335 (__ubsan_handle_cfi_bad_type_abort): Likewise.
336 * ubsan/ubsan_handlers_cxx.h (struct CFIBadTypeData): New type.
337 (__ubsan_handle_cfi_bad_type): Export function.
338 (__ubsan_handle_cfi_bad_type_abort): Likewise.
339 * HOWTO_MERGE: Update documentation.
341 2016-11-15 Matthias Klose <doko@ubuntu.com>
343 * configure: Regenerate.
345 2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
347 * asan/asan_globals.cc (RegisterGlobal): Do not call
348 CheckODRViolationViaPoisoning.
349 (CheckODRViolationViaPoisoning): Remove.
351 2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
353 * sanitizer_common/sanitizer_stacktrace.cc (GetCanonicFrame): Assume we
354 compiled code with GCC when extracting the caller PC for ARM if no
355 valid frame pointer is available.
357 2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
361 2014-10-14 David S. Miller <davem@davemloft.net>
363 * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t):
364 Define at __kernel_time_t, as needed for sparc.
365 (struct __old_kernel_stat): Don't check if __sparc__ is defined.
366 * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
367 (__sanitizer): Define struct___old_kernel_stat_sz,
368 struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc.
369 (__sanitizer_ipc_perm): Adjust for sparc targets.
370 (__sanitizer_shmid_ds): Likewsie.
371 (__sanitizer_sigaction): Likewise.
372 (IOC_SIZE): Likewsie.
374 2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
376 * All source files: Merge from upstream 285547.
377 * configure.tgt (SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS): New
379 * configure.ac (SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS): Handle it.
380 * asan/Makefile.am (asan_files): Add new files.
381 * asan/Makefile.in: Regenerate.
382 * ubsan/Makefile.in: Likewise.
383 * lsan/Makefile.in: Likewise.
384 * tsan/Makefile.am (tsan_files): Add new files.
385 * tsan/Makefile.in: Regenerate.
386 * sanitizer_common/Makefile.am (sanitizer_common_files): Add new files.
387 (EXTRA_libsanitizer_common_la_SOURCES): Define.
388 (libsanitizer_common_la_LIBADD): Likewise.
389 (libsanitizer_common_la_DEPENDENCIES): Likewise.
390 * sanitizer_common/Makefile.in: Regenerate.
391 * interception/Makefile.in: Likewise.
392 * libbacktace/Makefile.in: Likewise.
393 * Makefile.in: Likewise.
394 * configure: Likewise.
395 * merge.sh: Handle builtins/assembly.h merging.
396 * builtins/assembly.h: New file.
397 * asan/libtool-version: Bump the libasan SONAME.
399 2016-09-21 Jakub Jelinek <jakub@redhat.com>
402 * asan/asan_new_delete.cc: Cherry-pick upstream r282019.
404 2016-09-05 Jakub Jelinek <jakub@redhat.com>
407 * asan/asan_globals.cc: Cherry-pick upstream r280657.
409 2016-08-12 Jakub Jelinek <jakub@redhat.com>
412 * tsan/tsan_platform_linux.cc: Cherry-pick upstream r278292.
413 * tsan/tsan_rtl_aarch64.S: Likewise.
415 2016-07-23 Alan Modra <amodra@gmail.com>
417 Revert 2015-11-09 Alan Modra <amodra@gmail.com>
418 * configure.ac: Don't substitute OBSTACK_DEFS.
419 * asan/Makefile.am: Remove OBSTACK_DEFS from DEFS.
420 * tsan/Makefile.am: Likewise.
421 * configure: Regenerate.
422 * Makefile.in: Regenerate.
423 * asan/Makefile.in: Regenerate.
424 * interception/Makefile.in: Regenerate.
425 * libbacktrace/Makefile.in: Regenerate.
426 * lsan/Makefile.in: Regenerate.
427 * sanitizer_common/Makefile.in: Regenerate.
428 * tsan/Makefile.in: Regenerate.
429 * ubsan/Makefile.in: Regenerate.
431 2016-05-17 Jakub Jelinek <jakub@redhat.com>
434 * asan/asan_malloc_linux.cc: Cherry pick upstream r254395
437 2016-04-21 Maxim Ostapenko <m.ostapenko@samsung.com>
440 * asan/asan_mac.cc: Cherry pick upstream r266868.
442 2016-01-19 Jakub Jelinek <jakub@redhat.com>
445 * tsan/tsan_interceptors.cc (NEED_TLS_GET_ADDR, __tls_get_addr,
446 InitializeInterceptors): Cherry pick upstream r258119.
448 2016-01-14 Andreas Tobler <andreast@gcc.gnu.org>
450 * configure.ac: Replace the hard-coded -ldl requirement for
451 link_sanitizer_common with a configure time check for -ldl.
452 * configure: Regenerate.
454 2015-11-24 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
456 * include/system/linux/asm/ptrace.h: Move to ...
457 * include/system/asm/ptrace.h: ... this.
459 2015-11-24 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
461 * include/system/linux/asm/ptrace.h: New header.
463 2015-11-23 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
465 * All source files: Merge from upstream r253555.
466 * configure.tgt: Enable LSan on aarch64-*-linux* targets. Add new
467 dependences for TSan for aarch64-*-linux* targets.
468 * tsan/Makefile.am: Add new source files.
469 * configure: Regenerate.
470 * tsan/Makefile.in: Likewise.
472 2015-11-09 Alan Modra <amodra@gmail.com>
474 * sanitizer_common/sanitizer_common_interceptors.inc: Update size
475 params for _obstack_begin_1, _obstack_begin, _obstack_newchunk
477 * configure.ac: Substitute OBSTACK_DEFS.
478 * asan/Makefile.am: Add OBSTACK_DEFS to DEFS.
479 * tsan/Makefile.am: Likewise.
480 * configure: Regenerate.
481 * Makefile.in: Regenerate.
482 * asan/Makefile.in: Regenerate.
483 * interception/Makefile.in: Regenerate.
484 * libbacktrace/Makefile.in: Regenerate.
485 * lsan/Makefile.in: Regenerate.
486 * sanitizer_common/Makefile.in: Regenerate.
487 * tsan/Makefile.in: Regenerate.
488 * ubsan/Makefile.in: Regenerate.
490 2015-10-22 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
493 * configure.ac (link_sanitizer_common): Link against librt only if it
494 contains shm_open, required by sanitizers.
495 (CXX_ABI_NEEDED): Remove variable.
496 * configure: Regenerate.
497 * ubsan/Makefile.am (libubsan_la_LIBADD): Do not add -lc++abi anymore.
498 * ubsan/Makefile.in: Regenerate.
500 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
502 * HOWTO_MERGE: New file.
504 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
506 * sanitizer_common/sanitizer_stacktrace.cc (GetCanonicFrame): Assume we
507 compiled code with GCC when extracting the caller PC for ARM if no
508 valid frame pointer is available.
510 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
514 2015-02-20 Jakub Jelinek <jakub@redhat.com>
516 * asan/asan_globals.cc (RegisterGlobal): Disable detect_odr_violation
517 support until it is rewritten upstream.
519 * c-c++-common/asan/pr63888.c: New test.
521 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
525 2014-10-14 David S. Miller <davem@davemloft.net>
527 * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t):
528 Define at __kernel_time_t, as needed for sparc.
529 (struct __old_kernel_stat): Don't check if __sparc__ is defined.
530 * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
531 (__sanitizer): Define struct___old_kernel_stat_sz,
532 struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc.
533 (__sanitizer_ipc_perm): Adjust for sparc targets.
534 (__sanitizer_shmid_ds): Likewsie.
535 (__sanitizer_sigaction): Likewise.
536 (IOC_SIZE): Likewsie.
538 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
540 * All source files: Merge from upstream r250806.
541 * configure.ac (link_sanitizer_common): Add -lrt flag.
542 * configure.tgt: Enable TSAN and LSAN for aarch64-linux targets.
543 Set USE_CXX_ABI_FLAG=true for darwin.
544 * asan/Makefile.am (asan_files): Add new files.
545 (DEFS): Add DCAN_SANITIZE_UB=0 and remove unused and legacy
546 DASAN_FLEXIBLE_MAPPING_AND_OFFSET=0.
547 * asan/Makefile.in: Regenerate.
548 * ubsan/Makefile.am (ubsan_files): Add new files.
549 (DEFS): Add DCAN_SANITIZE_UB=1.
550 (libubsan_la_LIBADD): Add -lc++abi if USE_CXX_ABI_FLAG is true.
551 * ubsan/Makefile.in: Regenerate.
552 * tsan/Makefile.am (tsan_files): Add new files.
553 (DEFS): Add DCAN_SANITIZE_UB=0.
554 * tsan/Makefile.in: Regenerate.
555 * sanitizer_common/Makefile.am (sanitizer_common_files): Add new files.
556 * sanitizer_common/Makefile.in: Regenerate.
557 * asan/libtool-version: Bump the libasan SONAME.
559 2015-09-09 Markus Trippelsdorf <markus@trippelsdorf.de>
562 * ubsan/ubsan_type_hash.cc: Cherry pick upstream r244101.
564 2015-07-29 Markus Trippelsdorf <markus@trippelsdorf.de>
567 * sanitizer_common/sanitizer_stacktrace.h: Use fast unwinder
570 2015-07-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
573 * sanitizer_common/sanitizer_stacktrace.cc
574 (BufferedStackTrace::FastUnwindStack): Fix code for PowerPC to
575 find the link register at an offset of 16 from the base of the
576 caller's stack frame.
578 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
580 * Makefile.in: Regenerated with automake-1.11.6.
581 * aclocal.m4: Likewise.
582 * asan/Makefile.in: Likewise.
583 * configure: Likewise.
584 * interception/Makefile.in: Likewise.
585 * libbacktrace/Makefile.in: Likewise.
586 * lsan/Makefile.in: Likewise.
587 * sanitizer_common/Makefile.in: Likewise.
588 * tsan/Makefile.in: Likewise.
589 * ubsan/Makefile.in: Likewise.
591 2015-04-13 Yury Gribov <y.gribov@samsung.com>
594 * sanitizer_common/sanitizer_platform.h: Cherry pick
596 * sanitizer_common/sanitizer_platform_limits_posix.cc: Ditto.
597 * configure.ac (RPC_DEFS): Check for precense of RPC headers.
598 * sanitizer_common/Makefile.am (DEFS): Pass info to compiler.
599 * Makefile.in: Regenerate.
600 * asan/Makefile.in: Regenerate.
601 * config.h.in: Regenerate.
602 * configure: Regenerate.
603 * interception/Makefile.in: Regenerate.
604 * libbacktrace/Makefile.in: Regenerate.
605 * lsan/Makefile.in: Regenerate.
606 * sanitizer_common/Makefile.in: Regenerate.
607 * tsan/Makefile.in: Regenerate.
608 * ubsan/Makefile.in: Regenerate.
611 2015-03-23 Christophe Lyon <christophe.lyon@linaro.org>
614 * sanitizer_common/sanitizer_platform_limits_posix.cc: Cherry pick
616 * sanitizer_common/sanitizer_platform.h: Likewise.
617 * sanitizer_common/sanitizer_common_syscalls.inc: Likewise.
619 2015-03-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
621 * tsan/tsan_rtl_report.cc (ScopedReport::AddThread): Cherry pick
622 upstream 224508 and 224755.
624 2015-03-09 Jakub Jelinek <jakub@redhat.com>
628 2014-10-14 David S. Miller <davem@davemloft.net>
630 * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t):
631 Define at __kernel_time_t, as needed for sparc.
632 (struct __old_kernel_stat): Don't check if __sparc__ is defined.
633 * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
634 (__sanitizer): Define struct___old_kernel_stat_sz,
635 struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc.
636 (__sanitizer_ipc_perm): Adjust for sparc targets.
637 (__sanitizer_shmid_ds): Likewsie.
638 (__sanitizer_sigaction): Likewise.
639 (IOC_SIZE): Likewsie.
641 2015-02-27 Peter Bergner <bergner@vnet.ibm.com>
643 * configure.tgt: Enable build on powerpc*le-*-linux.
645 2015-02-23 Jakub Jelinek <jakub@redhat.com>
648 * asan/asan_globals.cc (RegisterGlobal): Disable detect_odr_violation
649 support until it is rewritten upstream.
651 2015-01-26 Matthias Klose <doko@ubuntu.com>
653 * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
654 * configure: Regenerate.
656 2015-01-25 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
658 * configure.ac (TSAN_TARGET_DEPENDENT_OBJECTS): Undefine.
659 * configure: Regenerate.
660 * configure.tgt (TSAN_TARGET_DEPENDENT_OBJECTS): Define.
662 2015-01-25 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
664 * configure.ac (TSAN_TARGET_DEPENDENT_OBJECTS): Define.
665 * configure: Regenerate.
666 * tsan/Makefile.am (EXTRA_libtsan_la_SOURCES): Define.
667 (libtsan_la_DEPENDENCIES): Likewise.
668 * Makefile.in: Regenerate.
669 * asan/Makefile.in: Regenerate.
670 * interception/Makefile.in: Regenerate.
671 * libbacktrace/Makefile.in: Regenerate.
672 * lsan/Makefile.in: Regenerate.
673 * sanitizer_common/Makefile.in: Regenerate.
674 * tsan/Makefile.in: Regenerate.
675 * ubsan/Makefile.in: Regenerate.
677 2015-01-22 Jakub Jelinek <jakub@redhat.com>
679 * tsan/tsan_rtl.h: Cherry pick upstream r226829.
681 2015-01-21 Jakub Jelinek <jakub@redhat.com>
684 * sanitizer_common/sanitizer_platform_limits_posix.h: Cherry pick
686 * sanitizer_common/sanitizer_platform_limits_posix.cc: Likewise.
687 * sanitizer_common/sanitizer_posix.cc: Cherry pick upstream r226639.
689 2015-01-20 Jakub Jelinek <jakub@redhat.com>
692 * ubsan/ubsan_type_hash.cc: Cherry pick upstream r224972.
694 2015-01-19 Jakub Jelinek <jakub@redhat.com>
697 * sanitizer_common/sanitizer_platform_limits_posix.cc: Cherry pick
700 2015-01-13 Jakub Jelinek <jakub@redhat.com>
702 * sanitizer_common/sanitizer_deadlock_detector.h: Cherry pick
703 upstream r224518 and r224519.
704 * tsan/tsan_rtl_thread.cc: Cherry pick upstream r224702 and
707 2014-12-16 Jakub Jelinek <jakub@redhat.com>
709 * sanitizer_common/sanitizer_symbolizer_libbacktrace.cc,
710 sanitizer_common/sanitizer_symbolizer_libbacktrace.h,
711 sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc: Cherry pick
714 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
717 * configure: Regenerated.
719 2014-11-21 Jakub Jelinek <jakub@redhat.com>
722 * config/ia64/ia64.c (ia64_attribute_takes_identifier_p): New function.
723 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Redefine to it.
725 2014-11-14 Uros Bizjak <ubizjak@gmail.com>
727 * sanitizer_common/Makefile.am (AM_CXXFLAGS): Use -std=gnu++11.
728 * asan/Makefile.am (AM_CXXFLAGS): Ditto.
729 * lsan/Makefile.am (AM_CXXFLAGS): Ditto.
730 * interception/Makefile.am (AM_CXXFLAGS): Ditto.
731 * tsan/Makefile.am (AM_CXXFLAGS): Ditto.
732 * libbacktrace/Makefile.am (AM_CXXFLAGS): Ditto.
733 * ubsan/Makefile.am (AM_CXXFLAGS): Ditto.
734 * sanitizer_common/Makefile.in: Regenerate.
735 * asan/Makefile.in: Ditto.
736 * lsan/Makefile.in: Ditto.
737 * interception/Makefile.in: Ditto.
738 * tsan/Makefile.in: Ditto.
739 * libbacktrace/Makefile.in: Ditto.
740 * ubsan/Makefile.in: Ditto.
742 2014-11-13 Kostya Serebryany <kcc@google.com>
744 * All source files: Merge from upstream r221802.
745 * sanitizer_common/sanitizer_symbolizer_libbacktrace.cc
746 (LibbacktraceSymbolizer::SymbolizeData): Replace 'address'
747 with 'start' to follow the new interface.
748 * asan/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
749 * interception/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
750 * libbacktrace/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
751 * lsan/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
752 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new
754 (AM_CXXFLAGS): Added -std=c++11.
755 * tsan/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
756 * ubsan/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
757 * asan/Makefile.in: Regenerate.
758 * interception/Makefile.in: Regenerate.
759 * libbacktrace/Makefile.in: Regenerate.
760 * lsan/Makefile.in: Regenerate.
761 * sanitizer_common/Makefile.in: Regenerate.
762 * tsan/Makefile.in: Regenerate.
763 * ubsan/Makefile.in: Regenerate.
765 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
768 * configure: Regenerate.
770 2014-10-16 Martin Liska <mliska@suse.cz>
772 * asan/Makefile.am: IPA ICF pass is disabled.
773 * asan/Makefile.in: Likewise.
775 2014-10-14 David S. Miller <davem@davemloft.net>
777 * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t):
778 Define at __kernel_time_t, as needed for sparc.
779 (struct __old_kernel_stat): Don't check if __sparc__ is defined.
780 * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
781 (__sanitizer): Define struct___old_kernel_stat_sz,
782 struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc.
783 (__sanitizer_ipc_perm): Adjust for sparc targets.
784 (__sanitizer_shmid_ds): Likewsie.
785 (__sanitizer_sigaction): Likewsie.
786 (IOC_SIZE): Likewsie.
788 2014-10-14 Jakub Jelinek <jakub@redhat.com>
790 * ubsan/Makefile.am (DEFS): Add -DPIC.
791 * ubsan/Makefile.in: Regenerated.
793 2014-09-26 Christophe Lyon <christophe.lyon@linaro.org>
795 * configure.tgt: Enable build on aarch64*-linux.
797 2014-09-19 Kostya Serebryany <kcc@google.com>
799 * All source files: Merge from upstream r218156.
800 * asan/Makefile.am (asan_files): Added new files.
801 * asan/Makefile.in: Regenerate.
802 * ubsan/Makefile.am (ubsan_files): Added new files.
803 * ubsan/Makefile.in: Regenerate.
804 * tsan/Makefile.am (tsan_files): Added new files.
805 * tsan/Makefile.in: Regenerate.
806 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new
808 * sanitizer_common/Makefile.in: Regenerate.
809 * asan/libtool-version: Bump the libasan SONAME.
811 2014-09-10 Jakub Jelinek <jakub@redhat.com>
813 * ubsan/ubsan_handlers.cc, ubsan/ubsan_handlers.h: Cherry pick
814 upstream r215485, r217389, r217391 and r217400.
816 2014-06-23 Paolo Carlini <paolo.carlini@oracle.com>
818 * sanitizer_common/sanitizer_common_interceptors.inc:
819 Cherry pick upstream r211008.
821 2014-06-11 Richard Biener <rguenther@suse.de>
823 * asan/asan_linux.cc: Cherry pick upstream r210012.
825 2014-05-30 Jakub Jelinek <jakub@redhat.com>
827 * sanitizer_common/sanitizer_stacktrace.cc: Cherry pick upstream
829 * sanitizer_common/sanitizer_common.h: Likewise.
830 * asan/asan_mapping.h: Likewise.
831 * asan/asan_linux.cc: Likewise.
832 * tsan/tsan_mman.cc: Cherry pick upstream r209744.
833 * sanitizer_common/sanitizer_allocator.h: Likewise.
835 2014-05-23 Marek Polacek <polacek@redhat.com>
837 * ubsan/ubsan_value.cc (getFloatValue): Handle 96-bit
838 floating-point types.
840 2014-05-22 Kostya Serebryany <kcc@google.com>
842 * All source files: Merge from upstream r209283.
843 * asan/Makefile.am (asan_files): Added new files.
844 * asan/Makefile.in: Regenerate.
845 * tsan/Makefile.am (tsan_files): Added new files.
846 * tsan/Makefile.in: Regenerate.
847 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new
849 * sanitizer_common/Makefile.in: Regenerate.
851 2014-05-14 Yury Gribov <y.gribov@samsung.com>
854 * Makefile.am (nodist_saninclude_HEADERS): Install
856 * Makefile.in: Regenerate.
858 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
860 * libbacktrace/Makefile.am (libsanitizer_libbacktrace_la_SOURCES):
861 Add ../../libbacktrace/sort.c.
862 * libbacktrace/Makefile.in: Regenerate.
863 * libbacktrace/backtrace-rename.h (backtrace_qsort): Define.
865 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
867 * configure.tgt: Unsupported for little endian PowerPC for now.
869 2014-02-04 Jakub Jelinek <jakub@redhat.com>
872 * tsan/tsan_flags.cc (__tsan_default_options): Add
873 SANITIZER_INTERFACE_ATTRIBUTE. Backport from upstream r200747.
874 * tsan/tsan_rtl.cc (__tsan::OnFinalize): Likewise.
877 * sanitizer_common/sanitizer_linux_libcdep.cc: Include
878 sanitizer_atomic.h and unistd.h.
879 (kThreadDescriptorSize): Made static, remove initializer and const,
880 change type to atomic_uintptr_t.
881 (ThreadDescriptorSize): Use confstr(_CS_GNU_LIBC_VERSION, ...) to
882 query glibc version, compute kThreadDescriptorSize depending on
883 glibc version minor number.
884 (GetThreadStackAndTls): Use ThreadDescriptorSize() instead of
885 kThreadDescriptorSize directly.
887 2014-01-23 Yury Gribov <y.gribov@samsung.com>
888 Jakub Jelinek <jakub@redhat.com>
891 * configure.ac: Check for missing syscalls.
892 * Makefile.am: Likewise.
893 * configure: Regenerate.
894 * Makefile.in: Regenerate.
896 2014-01-09 Jakub Jelinek <jakub@redhat.com>
898 * sanitizer_common/sanitizer_symbolizer_libbacktrace.h
899 (LibbacktraceSymbolizer::Demangle): New declaration.
900 * sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc
901 (POSIXSymbolizer::Demangle): Use libbacktrace_symbolizer_'s Demangle
903 * sanitizer_common/sanitizer_symbolizer_libbacktrace.cc: Include
904 "demangle.h" if SANITIZE_CP_DEMANGLE is defined.
905 (struct CplusV3DemangleData): New type.
906 (CplusV3DemangleCallback, CplusV3Demangle): New functions.
907 (SymbolizeCodePCInfoCallback, SymbolizeCodeCallback,
908 SymbolizeDataCallback): Use CplusV3Demangle.
909 * sanitizer_common/Makefile.am (AM_CXXFLAGS): Add
910 -DSANITIZE_CP_DEMANGLE and -I $(top_srcdir)/../include.
911 * libbacktrace/backtrace-rename.h (cplus_demangle_builtin_types,
912 cplus_demangle_fill_ctor, cplus_demangle_fill_dtor,
913 cplus_demangle_fill_extended_operator, cplus_demangle_fill_name,
914 cplus_demangle_init_info, cplus_demangle_mangled_name,
915 cplus_demangle_operators, cplus_demangle_print,
916 cplus_demangle_print_callback, cplus_demangle_type, cplus_demangle_v3,
917 cplus_demangle_v3_callback, is_gnu_v3_mangled_ctor,
918 is_gnu_v3_mangled_dtor, java_demangle_v3, java_demangle_v3_callback):
920 (__asan_internal_memcmp, __asan_internal_strncmp): New prototypes.
921 (memcmp, strncmp): Redefine.
922 * libbacktrace/Makefile.am (libsanitizer_libbacktrace_la_SOURCES): Add
923 ../../libiberty/cp-demangle.c.
924 * libbacktrace/bridge.cc (__asan_internal_memcmp,
925 __asan_internal_strncmp): New functions.
926 * sanitizer_common/Makefile.in: Regenerated.
927 * libbacktrace/Makefile.in: Regenerated.
928 * configure: Regenerated.
929 * configure.ac: Regenerated.
930 * config.h.in: Regenerated.
932 * sanitizer_common/Makefile.am (AM_CPPFLAGS): Add
933 -isystem $(top_srcdir)/include/system.
934 * sanitizer_common/Makefile.in: Regenerated.
935 * include/system/linux/aio_abi.h: New header.
936 * include/system/linux/mroute.h: New header.
937 * include/system/linux/mroute6.h: New header.
938 * include/system/linux/perf_event.h: New header.
939 * include/system/linux/types.h: New header.
942 * sanitizer_common/Makefile.am (AM_CXXFLAGS): If
943 LIBBACKTRACE_SUPPORTED add -DSANITIZER_LIBBACKTRACE
944 and -I/-include flags.
945 * lsan/Makefile.am (liblsan_la_LIBADD): Add
946 libsanitizer_libbacktrace.la if LIBBACKTRACE_SUPPORTED.
947 * tsan/Makefile.am (libtsan_la_LIBADD): Likewise.
948 * ubsan/Makefile.am (libubsan_la_LIBADD): Likewise.
949 * asan/Makefile.am (libasan_la_LIBADD): Likewise.
950 * Makefile.am (SUBDIRS): If LIBBACKTRACE_SUPPORTED add
952 * README.gcc: Document that also lsan and ubsan are
953 maintained in compiler-rt upstream.
954 * libbacktrace/Makefile.am: New file.
955 * libbacktrace/backtrace-rename.h: New file.
956 * libbacktrace/backtrace-supported.h.in: New file.
957 * libbacktrace/bridge.cc: New file.
958 * configure.ac: Add tests needed for libbacktrace build
960 * sanitizer_common/Makefile.in: Regenerated.
961 * lsan/Makefile.in: Regenerated.
962 * tsan/Makefile.in: Regenerated.
963 * ubsan/Makefile.in: Regenerated.
964 * libbacktrace/Makefile.in: Generated.
965 * config.h.in: Regenerated.
966 * configure: Regenerated.
967 * Makefile.in: Regenerated.
968 * interception/Makefile.in: Regenerated.
969 * asan/Makefile.in: Regenerated.
970 * aclocal.m4: Regenerated.
972 2013-12-19 Kostya Serebryany <kcc@google.com>
974 * sanitizer_common/sanitizer_platform_limits_posix.cc:
975 workaround for missing definition of EOWNERDEAD, backport
976 from upstream r196779.
978 2013-12-06 H.J. Lu <hongjiu.lu@intel.com>
980 * sanitizer_common/sanitizer_platform_limits_posix.h
981 (__sanitizer_shmid_ds): Use u64 on time fields for x32.
982 (__sanitizer_clock_t): Use long long for x32.
984 2013-12-06 H.J. Lu <hongjiu.lu@intel.com>
986 * sanitizer_common/sanitizer_platform_limits_linux.cc: Include
987 <sys/stat.h>, instead of <asm/stat.h>, if __x86_64__ is defined.
988 (struct___old_kernel_stat_sz): Don't check if __x86_64__ is defined.
990 2013-12-05 H.J. Lu <hongjiu.lu@intel.com>
992 * configure.ac (link_sanitizer_common): Add -lm.
993 * configure: Regenerated.
995 2013-12-05 Kostya Serebryany <kcc@google.com>
997 * All source files: Merge from upstream r196489.
998 * merge.sh: Add *.S to the list of merged files.
1000 2013-12-05 Yury Gribov <y.gribov@samsung.com>
1003 * Makefile.am (gcc_version): Added gcc_version.
1004 * Makefile.in: Regenerate.
1006 2013-12-05 Kostya Serebryany <kcc@google.com>
1008 * All source files: Merge from upstream r196090.
1009 * tsan/Makefile.am (tsan_files): Added new files.
1010 * tsan/Makefile.in: Regenerate.
1011 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new fles.
1012 * sanitizer_common/Makefile.in: Regenerate.
1013 * lsan/Makefile.am (lsan_files): Added new files.
1014 * lsan/Makefile.in: Regenerate.
1016 2013-11-29 Jakub Jelinek <jakub@redhat.com>
1017 Yury Gribov <y.gribov@samsung.com>
1020 * libsanitizer.spec.in: Add spec file to hold link flags for
1021 various sanitizer libs.
1022 * configure.ac: Check whether clock_* routines come from librt.
1023 * asan/Makefile.am (libasan_la_LDFLAGS): Libs now come from
1025 * tsan/Makefile.am (libtsan_la_LDFLAGS): Likewise.
1026 * ubsan/Makefile.am (libubsan_la_LDFLAGS): Likewise.
1027 * lsan/Makefile.am (liblsan_la_LDFLAGS): Likewise.
1028 * asan/Makefile.in: Regenerate.
1029 * interception/Makefile.in: Regenerate.
1030 * lsan/Makefile.in: Regenerate.
1031 * sanitizer_common/Makefile.in: Regenerate.
1032 * tsan/Makefile.in: Regenerate.
1033 * ubsan/Makefile.in: Regenerate.
1034 * Makefile.in: Regenerate.
1035 * configure: Regenerate.
1037 2013-11-28 Jakub Jelinek <jakub@redhat.com>
1038 Yury Gribov <y.gribov@samsung.com>
1041 * ubsan/Makefile.am (AM_CXXFLAGS): Disable -frtti for files that
1043 * ubsan/Makefile.in: Regenerated.
1045 2013-11-22 Jakub Jelinek <jakub@redhat.com>
1048 * configure.tgt: Set LSAN_SUPPORTED=yes for x86_64-linux.
1049 * configure.ac (LSAN_SUPPORTED): New AM_CONDITIONAL.
1050 * configure: Regenerated.
1051 * lsan/Makefile.am (toolexeclib_LTLIBRARIES, lsan_files,
1052 liblsan_la_SOURCES, liblsan_la_LIBADD, liblsan_la_LDFLAGS): Add.
1053 * lsan/Makefile.in: Regenerated.
1055 2013-11-22 Mike Stump <mikestump@comcast.net>
1057 * sanitizer_common/sanitizer_linux.cc (__sanitizer): Grab one
1058 change from upstream to fix build.
1060 2013-11-18 Yury Gribov <y.gribov@samsung.com>
1063 * asan/Makefile.am (AM_CXXFLAGS): Add -fno-rtti.
1064 * interception/Makefile.am (AM_CXXFLAGS): Likewise.
1065 * lsan/Makefile.am (AM_CXXFLAGS): Likewise.
1066 * sanitizer_common/Makefile.am (AM_CXXFLAGS): Likewise.
1067 * tsan/Makefile.am (AM_CXXFLAGS): Likewise.
1068 * asan/Makefile.in: Regenerate.
1069 * interception/Makefile.in: Regenerate.
1070 * tsan/Makefile.in: Regenerate.
1071 * lsan/Makefile.in: Regenerate.
1072 * sanitizer_common/Makefile.in: Regenerate.
1074 2013-11-15 Kostya Serebryany <kcc@google.com>
1077 Backport from upstream revision 194573
1078 * asan/asan_interceptors.cc (COMMON_INTERCEPTOR_ENTER): Fall
1079 back to the original functions in the common libsanitizer
1080 interceptors and the __cxa_atexit() interceptor on Darwin.
1082 2013-11-13 Peter Bergner <bergner@vnet.ibm.com>
1085 * sanitizer_common/sanitizer_platform_limits_posix.cc: Temporarily
1086 ifdef out more source.
1088 2013-11-12 Jakub Jelinek <jakub@redhat.com>
1090 * sanitizer_common/sanitizer_platform_limits_linux.cc: Temporarily
1091 ifdef out almost the whole source.
1092 * sanitizer_common/sanitizer_common_syscalls.inc: Likewise.
1094 2013-11-05 H.J. Lu <hongjiu.lu@intel.com>
1097 * sanitizer_common/sanitizer_platform_limits_posix.cc
1098 (struct_user_fpxregs_struct_sz): Initialize to 0 if __x86_64__ is
1101 2013-11-05 H.J. Lu <hongjiu.lu@intel.com>
1104 * sanitizer_common/sanitizer_platform_limits_linux.cc
1105 (struct_kernel_stat64_sz): Initialize to 0 if __x86_64__ is
1107 * sanitizer_common/sanitizer_platform_limits_posix.h
1108 (__sanitizer_dirent): Use 64-bit d_ino/d_off if __x86_64__ is
1110 (__sanitizer___kernel_uid_t): Typedef as unsigned if __x86_64__
1112 (__sanitizer___kernel_gid_t): Likewise.
1113 (__sanitizer___kernel_off_t): Typedef as long long if __x86_64__
1116 2013-11-05 H.J. Lu <hongjiu.lu@intel.com>
1119 * sanitizer_common/sanitizer_linux.cc (internal_clone): Allocate
1120 2 64-bit integers to save and restore fn and arg. Properly load
1121 newtls/child_tidptr into r8/r10.
1123 2013-11-05 H.J. Lu <hongjiu.lu@intel.com>
1126 * sanitizer_common/sanitizer_linux.cc (internal_mmap,
1127 internal_munmap, internal_open, internal_read, internal_write,
1128 internal_stat, internal_lstat, internal_fstat, internal_readlink,
1129 internal_unlink, internal_execve, NanoTime, BlockingMutex::Lock,
1130 BlockingMutex::Unlock, internal_ptrace, internal_getdents,
1131 internal_sigaltstack): Cast pointers to uptr for 64-bit syscalls.
1133 2013-11-04 Kostya Serebryany <kcc@google.com>
1135 * All source files: Merge from upstream r191666.
1136 * merge.sh: Added lsan.
1137 * configure.ac (AC_CONFIG_FILES): Added lsan.
1138 * Makefile.am (SUBDIRS): Added lsan.
1139 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new fles.
1140 * asan/Makefile.am (asan_files): Added new files.
1141 (libasan_la_LIBADD): Added a dependency on lsan.
1142 * lsan/Makefile.am: New file.
1143 * asan/Makefile.in: Regenerate.
1144 * lsan/Makefile.in: Regenerate.
1145 * Makefile.in: Regenerate.
1146 * configure: Regenerate.
1147 * sanitizer_common/Makefile.in: Regenerate.
1149 2013-09-20 Alan Modra <amodra@gmail.com>
1151 * configure: Regenerate.
1153 2013-09-01 Iain Sandoe <iain@codesourcery.com>
1155 * ubsan/Makefile.am (libubsan_la_LIBADD): Revise to omit
1156 libinterception.la for Darwin.
1157 * ubsan/Makefile.in: Regenerate.
1159 2013-08-30 Jakub Jelinek <jakub@redhat.com>
1161 * Makefile.am (SUBDIRS): Add ubsan.
1162 * configure.ac (AC_CONFIG_FILES): Add ubsan/Makefile.
1163 * merge.sh: Merge ubsan.
1164 * sanitizer_common/sanitizer_report_decorator.h: Partial merge from trunk.
1165 * sanitizer_common/sanitizer_printf.cc: Likewise.
1166 * sanitizer_common/sanitizer_common.h: Likewise.
1167 * ubsan: New directory. Import ubsan runtime from llvm.
1169 2013-06-03 Christophe Lyon <christophe.lyon@linaro.org>
1171 * sanitizer_common/sanitizer_linux.cc (MemoryMappingLayout::Next):
1172 Cherry pick upstream r182922.
1174 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
1176 * configure.tgt: Add ARM pattern.
1178 2013-03-22 Jakub Jelinek <jakub@redhat.com>
1181 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
1182 * Makefile.in: Regenerated.
1183 * asan/Makefile.in: Regenerated.
1184 * interception/Makefile.in: Regenerated.
1185 * sanitizer_common/Makefile.in: Regenerated.
1186 * tsan/Makefile.in: Regenerated.
1188 2013-02-28 Jakub Jelinek <jakub@redhat.com>
1190 * asan/asan_mapping.h (kMidMemEnd): Increase to 0x4fffffffffULL.
1191 * asan/asan_rtl.cc (__asan_init): Increase kMidMemEnd to
1194 2013-02-22 Jakub Jelinek <jakub@redhat.com>
1197 * asan/Makefile.am (nodist_toolexeclib_HEADERS): Set to
1199 (libasan_preinit.o): Depend on asan_preinit.o.
1200 * asan/Makefile.in: Regenerated.
1201 * asan/asan_preinit.cc: New file, synced from upstream.
1202 * asan/asan_rtl.cc: Remove preinit stuff, synced from upstream.
1204 2013-02-21 Jack Howarth <howarth@bromo.med.uc.edu>
1206 * asan/Makefile.am (libasan_la_SOURCES): Remove deprecated
1207 dynamic/asan_interceptors_dynamic.cc.
1208 * asan/Makefile.in: Regenerated.
1209 * merge.sh: Remove merge of deprecated lib/asan/dynamic.
1211 2013-02-21 Jakub Jelinek <jakub@redhat.com>
1213 * asan/asan_rtl.cc (__asan_preinit): Don't add if PIC macro is
1214 defined. Add used attribute.
1216 2013-02-21 Kostya Serebryany <kcc@google.com>
1218 * All source files: Merge from upstream r175733.
1219 * sanitizer_common/Makefile.am: Added a new file.
1220 * sanitizer_common/Makefile.in: Regenerated.
1222 2013-02-14 H.J. Lu <hongjiu.lu@intel.com>
1225 * interception/interception.h (OFF_T): Merged from upstream
1228 2013-02-13 Jakub Jelinek <jakub@redhat.com>
1230 * asan/asan_mapping.h (SHADOW_OFFSET): Set to (1ULL << 44) on x86-64.
1232 2013-02-13 Kostya Serebryany <kcc@google.com>
1235 * All source files: Merge from upstream r175049.
1236 * interception/Makefile.am: added include path.
1237 * interception/Makefile.in: Regenerated.
1239 2013-02-11 Jack Howarth <howarth@bromo.med.uc.edu>
1241 * configure.tgt: Disable build on darwin9 and earlier.
1243 2013-01-23 Kostya Serebryany <kcc@google.com>
1246 * All source files: Merge from upstream r173241.
1247 * merge.sh: Support merging .inc files.
1249 2013-01-16 Jakub Jelinek <jakub@redhat.com>
1251 * sanitizer_common/Makefile.am (AM_CXXFLAGS): Remove
1252 -Wno-c99-extensions.
1253 * interception/Makefile.am (AM_CXXFLAGS): Likewise.
1254 * asan/Makefile.am (AM_CXXFLAGS): Likewise.
1255 * sanitizer_common/Makefile.in: Regenerated.
1256 * interception/Makefile.in: Regenerated.
1257 * asan/Makefile.in: Regenerated.
1259 2013-01-10 Wei Mi <wmi@google.com>
1262 * tsan/Makefile.am: Add tsan_rtl_amd64.S.
1263 * tsan/Makefile.in: Regenerated.
1264 * tsan/tsan_rtl.h: Enable HACKY_CALL.
1266 2013-01-10 Kostya Serebryany <kcc@google.com>
1268 * All source files: Merge from upstream r171973.
1269 * sanitizer_common/Makefile.am: Added new files.
1270 * asan/Makefile.am: Likewise.
1271 * tsan/Makefile.am: Likewise.
1272 * sanitizer_common/Makefile.in: Regenerated.
1273 * asan/Makefile.in: Likewise.
1274 * tsan/Makefile.in: Likewise.
1276 2013-01-07 H.J. Lu <hongjiu.lu@intel.com>
1278 * asan/Makefile.am (libasan_la_LIBADD): Replace
1279 LIBSTDCXX_RAW_CXX_LDLAGS with LIBSTDCXX_RAW_CXX_LDFLAGS.
1280 * tsan/Makefile.am (libtsan_la_LIBADD): Likewise.
1281 * Makefile.in: Regenerated.
1282 * configure: Likewise.
1283 * asan/Makefile.in: Likewise.
1284 * interception/Makefile.in: Likewise.
1285 * sanitizer_common/Makefile.in: Likewise.
1286 * tsan/Makefile.in: Likewise.
1288 2012-12-12 H.J. Lu <hongjiu.lu@intel.com>
1290 * Makefile.am (AM_MAKEFLAGS): Restored.
1291 * interception/Makefile.am: Likewise.
1292 * sanitizer_common/Makefile.am: Likewise.
1293 * tsan/Makefile.am: Likewise.
1294 * Makefile.in: Regenerated.
1295 * asan/Makefile.in: Likewise.
1296 * interception/Makefile.in: Likewise.
1297 * sanitizer_common/Makefile.in: Likewise.
1298 * tsan/Makefile.in: Likewise.
1300 2012-12-12 H.J. Lu <hongjiu.lu@intel.com>
1302 * Makefile.am (MAKEOVERRIDES): Restored.
1303 * asan/Makefile.am: Likewise.
1304 * interception/Makefile.am: Likewise.
1305 * sanitizer_common/Makefile.am: Likewise.
1306 * tsan/Makefile.am: Likewise.
1307 * Makefile.in: Regenerated.
1308 * asan/Makefile.in: Likewise.
1309 * interception/Makefile.in: Likewise.
1310 * sanitizer_common/Makefile.in: Likewise.
1311 * tsan/Makefile.in: Likewise.
1313 2012-12-12 H.J. Lu <hongjiu.lu@intel.com>
1315 * asan/Makefile.am (libasan_la_LIBADD): Use $(LIBSTDCXX_RAW_CXX_LDLAGS).
1316 * tsan/Makefile.am (libtsan_la_LIBADD): Likewise.
1317 * Makefile.in: Regenerated.
1318 * configure: Likewise.
1319 * asan/Makefile.in: Likewise.
1320 * interception/Makefile.in: Likewise.
1321 * sanitizer_common/Makefile.in: Likewise.
1322 * tsan/Makefile.in: Likewise.
1324 2012-12-12 H.J. Lu <hongjiu.lu@intel.com>
1326 * Makefile.am (AM_MAKEFLAGS): Removed.
1327 (MAKEOVERRIDES): Likewise.
1328 * asan/Makefile.am: Likewise.
1329 * interception/Makefile.am: Likewise.
1330 * sanitizer_common/Makefile.am: Likewise.
1331 * tsan/Makefile.am: Likewise.
1332 * Makefile.in: Regenerated.
1333 * asan/Makefile.in: Likewise.
1334 * interception/Makefile.in: Likewise.
1335 * sanitizer_common/Makefile.in: Likewise.
1336 * tsan/Makefile.in: Likewise.
1338 2012-12-11 H.J. Lu <hongjiu.lu@intel.com>
1341 * Makefile.am (AM_MAKEFLAGS): Remove CC and CXX.
1342 * configure.ac (GCC_LIBSTDCXX_RAW_CXX_FLAGS): New.
1343 * asan/Makefile.am (AM_CXXFLAGS): Add $(LIBSTDCXX_RAW_CXX_CXXFLAGS).
1344 (AM_MAKEFLAGS): Remove CC and CXX.
1345 * interception/Makefile.am: Likewise.
1346 * sanitizer_common/Makefile.am: Likewise.
1347 * tsan/Makefile.am: Likewise.
1348 * Makefile.in: Regenerated.
1349 * aclocal.m4: Likewise.
1350 * configure: Likewise.
1351 * asan/Makefile.in: Likewise.
1352 * interception/Makefile.in: Likewise.
1353 * sanitizer_common/Makefile.in: Likewise.
1354 * tsan/Makefile.in: Likewise.
1356 2012-12-06 Peter Bergner <bergner@vnet.ibm.com>
1358 * configure.tgt: Enable build on powerpc*-linux.
1360 2012-12-06 Jack Howarth <howarth@bromo.med.uc.edu>
1363 * configure.ac: Set enable_static=no on darwin.
1364 * configure: Regenerated.
1366 2012-12-06 Kostya Serebryany <kcc@google.com>
1368 * All files: Merge from upstream r169392.
1370 2012-12-05 Kostya Serebryany <kcc@google.com>
1372 * All files: Merge from upstream r169371.
1374 2012-12-04 Kostya Serebryany <kcc@google.com>
1375 Jack Howarth <howarth@bromo.med.uc.edu>
1378 * configure.ac: Define USING_MAC_INTERPOSE when on darwin.
1379 * Makefile.am: Don't build interception subdir when
1380 USING_MAC_INTERPOSE defined.
1381 * asan/Makefile.am: Pass -DMAC_INTERPOSE_FUNCTIONS and
1382 -DMISSING_BLOCKS_SUPPORT when USING_MAC_INTERPOSE defined.
1383 Compile asan_interceptors_dynamic.cc but not libinterception
1384 when USING_MAC_INTERPOSE defined.
1385 * interception/Makefile.am: Remove usage of USING_MACH_OVERRIDE.
1386 * configure: Regenerated.
1387 * Makefile.in: Likewise.
1388 * asan/Makefile.in: Likewise.
1389 * interception/Makefile.in: Likewise.
1390 * asan/asan_intercepted_functions.h: Use MISSING_BLOCKS_SUPPORT.
1391 * asan/asan_mac.cc: Likewise.
1392 * asan/dynamic/asan_interceptors_dynamic.cc: Migrate from llvm
1393 and use MISSING_BLOCKS_SUPPORT.
1394 * merge.sh: Merge lib/asan/dynamic into asan/dynamic.
1395 * interception/mach_override/LICENSE.txt: Remove unused file.
1396 * interception/mach_override/mach_override.c: Likewise.
1397 * interception/mach_override/mach_override.h: Likewise.
1398 * interception/mach_override: Remove unused directory.
1400 2012-11-28 H.J. Lu <hongjiu.lu@intel.com>
1402 * Makefile.am (AM_MAKEFLAGS): Restore CC and CXX.
1403 * configure.ac (ACX_NONCANONICAL_TARGET): Removed.
1404 * asan/Makefile.am (AM_CXXFLAGS): Remove -I for libstdc++-v3 header
1406 (AM_MAKEFLAGS): Restore CC and CXX.
1407 * interception/Makefile.am: Likewise.
1408 * sanitizer_common/Makefile.am: Likewise.
1409 * tsan/Makefile.am: Likewise.
1410 * Makefile.in: Regenerated.
1411 * aclocal.m4: Likewise.
1412 * configure: Likewise.
1413 * asan/Makefile.in: Likewise.
1414 * interception/Makefile.in: Likewise.
1415 * sanitizer_common/Makefile.in: Likewise.
1416 * tsan/Makefile.in: Likewise.
1418 2012-11-28 H.J. Lu <hongjiu.lu@intel.com>
1420 * Makefile.am (AM_MAKEFLAGS): Remove CC and CXX.
1421 * configure.ac (ACX_NONCANONICAL_TARGET): New.
1422 * asan/Makefile.am (AM_CXXFLAGS): Add -I for libstdc++-v3 header
1424 (AM_MAKEFLAGS): Remove CC and CXX.
1425 * interception/Makefile.am: Likewise.
1426 * sanitizer_common/Makefile.am: Likewise.
1427 * tsan/Makefile.am: Likewise.
1428 * Makefile.in: Regenerated.
1429 * aclocal.m4: Likewise.
1430 * configure: Likewise.
1431 * asan/Makefile.in: Likewise.
1432 * interception/Makefile.in: Likewise.
1433 * sanitizer_common/Makefile.in: Likewise.
1434 * tsan/Makefile.in: Likewise.
1436 2012-11-27 Kostya Serebryany <kcc@google.com>
1438 * All files: Merge from upstream r168699.
1440 2012-11-24 Kostya Serebryany <kcc@google.com>
1441 Jack Howarth <howarth@bromo.med.uc.edu>
1443 * interception/mach_override/mach_override.c: Migrate from llvm.
1444 * interception/mach_override/mach_override.h: Likewise.
1445 * interception/mach_override/LICENSE.txt: Likewise.
1446 * configure.tgt: Add darwin to supported targets.
1447 * configure.ac: Define USING_MACH_OVERRIDE when on darwin.
1448 * interception/Makefile.am: Compile mach_override.c when
1449 USING_MACH_OVERRIDE defined.
1450 * configure: Regenerated.
1451 * interception/Makefile.in: Likewise.
1453 2012-11-23 H.J. Lu <hongjiu.lu@intel.com>
1456 * tsan/Makefile.am (gcc_version): New.
1457 * tsan/Makefile.in: Regenerated.
1459 2012-11-23 Kostya Serebryany <kcc@google.com>
1461 * merge.sh: Support tsan, support added/removed files.
1462 * tsan/Makefile.am: Remove tsan_printf.cc.
1463 * tsan/Makefile.in: Regenerated.
1464 * other files: Merge from upstream r168514.
1466 2012-11-23 Kostya Serebryany <kcc@google.com>
1468 * merge.sh: New file.
1470 2012-11-23 Jakub Jelinek <jakub@redhat.com>
1472 * tsan/Makefile.am (AM_CXXFLAGS): Remove -Wno-variadic-macros.
1473 * Makefile.am (SUBDIRS): Guard tsan addition with TSAN_SUPPORTED
1474 automake conditional instead of !MULTISUBDIR32.
1475 * configure.tgt: Set TSAN_SUPPORTED=yes for x86_64/i686-linux
1476 for 64-bit multilib.
1477 * configure.ac: Check for void * size, source in configure.tgt,
1478 define TSAN_SUPPORTED conditional instead of MULTILIBDIR32.
1479 * configure: Regenerated.
1480 * Makefile.in: Regenerated.
1481 * tsan/Makefile.in: Regenerated.
1483 2012-11-22 Wei Mi <wmi@google.com>
1485 * tsan: New directory. Import tsan runtime from llvm.
1486 * configure.ac: Add 64 bits tsan build.
1487 * Makefile.am: Likewise.
1488 * configure: Regenerated.
1489 * Makefile.in: Likewise.
1491 2012-11-21 Kostya Serebryany <kcc@google.com>
1493 * README.gcc: Extend the README.gcc with mode details.
1495 2012-11-20 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
1497 * sanitizer_common/sanitizer_linux.cc
1498 (SANITIZER_LINUX_USES_64BIT_SYSCALLS): Define.
1499 (internal_mmap): Use it.
1500 (internal_filesize): Likewise.
1502 2012-11-16 Tom Tromey <tromey@redhat.com>
1504 * configure.ac: Invoke AM_MAINTAINER_MODE.
1505 * aclocal.m4, configure, Makefile.in, asan/Makefile.in,
1506 interception/Makefile.in, sanitizer_common/Makefile.in: Rebuild.
1508 2012-11-16 H.J. Lu <hongjiu.lu@intel.com>
1511 * include/sanitizer/common_interface_defs.h (uhwptr): New type
1512 for hardware pointer.
1513 * sanitizer_common/sanitizer_stacktrace.cc (StackTrace::FastUnwindStack):
1514 Replace uptr with uhwptr for stack unwind.
1516 2012-11-16 Dodji Seketeli <dodji@redhat.com>
1518 * configure.tgt: Enable build on sparc linux.
1520 2012-11-15 H.J. Lu <hongjiu.lu@intel.com>
1522 * configure.ac: Properly set MULTISUBDIR.
1523 * asan/Makefile.am (gcc_version): New.
1524 * interception/Makefile.am (gcc_version): Likewise.
1525 * sanitizer_common/Makefile.am (gcc_version): Likewise.
1526 * configure: Regenerated.
1527 * asan/Makefile.in: Likewise.
1528 * interception/Makefile.in: Likewise.
1529 * sanitizer_common/Makefile.in: Likewise.
1531 2012-11-14 H.J. Lu <hongjiu.lu@intel.com>
1534 * configure.ac (--enable-version-specific-runtime-libs): New option.
1535 (AC_CANONICAL_SYSTEM): New.
1536 (AM_ENABLE_MULTILIB): Moved right after AM_INIT_AUTOMAKE.
1537 (toolexecdir): Support multilib.
1538 (toolexeclibdir): Likewise.
1539 (multilib_arg): New.
1540 * Makefile.in: Regenerated.
1541 * aclocal.m4: Likewise.
1542 * configure: Likewise.
1543 * asan/Makefile.in: Likewise.
1544 * interception/Makefile.in: Likewise.
1545 * sanitizer_common/Makefile.in: Likewise.
1547 2012-11-14 H.J. Lu <hongjiu.lu@intel.com>
1550 Backport from upstream revision 167883
1551 * sanitizer_common/sanitizer_linux.cc (internal_mmap): Check
1552 __x86_64__ instead of __WORDSIZE.
1553 (internal_filesize): Likwise.
1555 2012-11-14 H.J. Lu <hongjiu.lu@intel.com>
1557 * configure.ac (AC_CONFIG_AUX_DIR): Removed.
1558 * Makefile.in: Regenerated.
1559 * configure: Likewise.
1561 2012-11-13 H.J. Lu <hongjiu.lu@intel.com>
1564 * acinclude.m4: New file.
1565 * Makefile.am (ACLOCAL_AMFLAGS): New.
1566 * configure.ac (AC_PREREQ): Set to 2.64.
1567 (AC_CONFIG_AUX_DIR): Set to "..".
1568 * Makefile.in: Regenerated.
1569 * aclocal.m4: Likewise.
1570 * configure: Likewise.
1571 * asan/Makefile.in: Likewise.
1572 * interception/Makefile.in: Likewise.
1573 * sanitizer_common/Makefile.in: Likewise.
1575 * config.guess: Removed.
1576 * config.sub: Likewise.
1577 * depcomp: Likewise.
1578 * install-sh: Likewise.
1579 * ltmain.sh: Likewise.
1580 * missing: Likewise.
1582 2012-11-13 Richard Henderson <rth@redhat.com>
1584 * configure.tgt: New file.
1586 2012-11-12 David S. Miller <davem@davemloft.net>
1588 * asan/asan_linux.cc (GetPcSpBp): Add sparc support.
1590 2012-10-29 Wei Mi <wmi@google.com>
1592 Initial checkin: migrate asan runtime from llvm.