]> git.ipfire.org Git - thirdparty/gcc.git/blame - libsanitizer/ChangeLog
As discussed below:
[thirdparty/gcc.git] / libsanitizer / ChangeLog
CommitLineData
b3595983
ML
12019-08-15 Martin Liska <mliska@suse.cz>
2
3 * LOCAL_PATCHES: Add r274540
4
71e895b1
ML
52019-08-15 Martin Liska <mliska@suse.cz>
6
7 * tsan/tsan_rtl_ppc64.S: Reapply.
8
8bc1fac7
IS
92019-08-15 Iain Sandoe <iain@sandoe.co.uk>
10
11 PR bootstrap/91455
12 * Makefile.in: Regenerated.
13 * aclocal.m4: Likewise.
14 * asan/Makefile.in: Likewise.
15 * configure: Likewise.
16 * interception/Makefile.in: Likewise.
17 * libbacktrace/Makefile.in: Likewise.
18 * lsan/Makefile.in: Likewise.
19 * sanitizer_common/Makefile.am: Include top_srcdir unconditionally.
20 * sanitizer_common/Makefile.in: Regenerated.
21 * tsan/Makefile.in: Likewise.
22 * ubsan/Makefile.in: Likewise.
23
e2723123
ML
242019-08-14 Martin Liska <mliska@suse.cz>
25
26 * LOCAL_PATCHES: Refresh based on what was committed.
27
47f0255f
ML
282019-08-14 Martin Liska <mliska@suse.cz>
29
30 * asan/asan_globals.cpp (CheckODRViolationViaIndicator): Reapply
31 patch from trunk.
32 (CheckODRViolationViaPoisoning): Likewise.
33 (RegisterGlobal): Likewise.
34 * asan/asan_mapping.h: Likewise.
35 * sanitizer_common/sanitizer_linux_libcdep.cpp (defined): Likewise.
36 * sanitizer_common/sanitizer_mac.cpp (defined): Likewise.
37 * sanitizer_common/sanitizer_platform_limits_linux.cpp (defined): Likewise.
38 * sanitizer_common/sanitizer_platform_limits_posix.h (defined): Likewise.
39 * sanitizer_common/sanitizer_stacktrace.cpp (GetCanonicFrame): Likewise.
40 * ubsan/ubsan_handlers.cpp (__ubsan::__ubsan_handle_cfi_bad_icall): Likewise.
41 (__ubsan::__ubsan_handle_cfi_bad_icall_abort): Likewise.
42 * ubsan/ubsan_handlers.h (struct CFIBadIcallData): Likewise.
43 (struct CFICheckFailData): Likewise.
44 (RECOVERABLE): Likewise.
45 * ubsan/ubsan_platform.h: Likewise.
46
b667dd70
ML
472019-08-14 Martin Liska <mliska@suse.cz>
48
49 PR sanitizer/89832
50 PR sanitizer/91325
51 * All source files: Merge from upstream 368656.
52
7cfb7260
RO
532019-06-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
54
55 * sanitizer_common/sanitizer_posix_libcdep.cc: Cherry-pick
56 compiler-rt revision 363778.
57
9553f0d2
IS
582019-06-18 Iain Sandoe <iain@sandoe.co.uk>
59
60 PR libsanitizer/87880
61 * asan/asan_interceptors.h:
62 (ASAN_INTERCEPT___CXA_RETHROW_PRIMARY_EXCEPTION): New.
63 * asan/Makefile.am (DEFS): Add
64 ASAN_HAS_CXA_RETHROW_PRIMARY_EXCEPTION, defined to 0.
65 * asan/Makefile.in: Regenerated.
66 * asan/libtool-version: Bump version.
67
7f63a854
SB
682019-05-27 Segher Boessenkool <segher@kernel.crashing.org>
69
70 PR target/90639
71 * tsan/tsan_rtl_ppc64.S: Add ".machine altivec".
72
ccd1242e
RO
732019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
74
75 * configure.ac (have_dl_iterate_phdr): Remove *-*-solaris2.10*
76 handling.
77 * configure: Regenerate.
78
b8e214c6
ML
792019-04-08 Martin Liska <mliska@suse.cz>
80
81 * LOCAL_PATCHES: Add revision.
82
17cf9090
ML
832019-04-08 Martin Liska <mliska@suse.cz>
84
85 PR sanitizer/89941
86 * sanitizer_common/sanitizer_platform_limits_linux.cc (defined):
87 Reapply patch from r259664.
88 * sanitizer_common/sanitizer_platform_limits_posix.h (defined):
89 Likewise.
90
7a26e273
EB
912019-03-13 Eric Botcazou <ebotcazou@adacore.com>
92
93 PR sanitizer/80953
94 Merge from LLVM revision 355980
95 * asan/asan_allocator.h (kAllocatorSpace): Define for SPARC.
96 (kAllocatorSize): Likewise.
97 (DefaultSizeClassMap): Likewise.
98 * asan/asan_mapping.h (kSPARC64_ShadowOffset64): Define.
99 (SHADOW_OFFSET): Define for SPARC.
100 Include asan_mapping_sparc64.h for SPARC 64-bit.
101 * asan/asan_mapping_sparc64.h: New file.
102
a196c82c
EB
1032019-03-13 Eric Botcazou <ebotcazou@adacore.com>
104
105 PR sanitizer/80953
106 Merge from LLVM revision 355979
107 * asan/asan_globals.c (GetGlobalsForAddress): Use internal_memcpy to
108 copy Global objects for SPARC with GCC.
109
36b50aeb
EB
1102019-03-13 Eric Botcazou <ebotcazou@adacore.com>
111
112 PR sanitizer/80953
113 Merge from LLVM revision 355978
114 * sanitizer_common/sanitizer_allocator_primary32.h
115 (class SizeClassAllocator32): Assert that kSpaceSize is power of 2 if
116 SANITIZER_SIGN_EXTENDED_ADDRESSES is set.
117 (PointerIsMine): Deal with SANITIZER_SIGN_EXTENDED_ADDRESSES.
118 (ComputeRegionId): Likewise.
119 * sanitizer_common/sanitizer_linux.cc (GetMaxVirtualAddress): Return
120 appropriate value for SPARC 64-bit.
121 * sanitizer_common/sanitizer_platform.h (SANITIZER_MMAP_RANGE_SIZE):
122 Define for SPARC.
123 (SANITIZER_SIGN_EXTENDED_ADDRESSES): Define to 1 for SPARC 64-bit.
124
017abbe3
EB
1252019-03-13 Eric Botcazou <ebotcazou@adacore.com>
126
127 PR sanitizer/80953
128 Merge from LLVM revision 355965
129 * sanitizer_common/sanitizer_linux.cc (GetWriteFlag): Implement for
130 SPARC/Linux.
131 (GetPcSpBp): Likewise.
132 * sanitizer_common/sanitizer_stacktrace.cc (GetNextInstructionPc):
133 Adjust for SPARC.
134 * sanitizer_common/sanitizer_stacktrace.h (SANITIZER_CAN_FAST_UNWIND):
135 Define to 1 for SPARC.
136 * sanitizer_common/sanitizer_stacktrace_sparc.cc: Rewrite.
137 * sanitizer_common/sanitizer_unwind_linux_libcdep.cc (SlowUnwindStack):
138 Adjust the PC address for SPARC with GCC.
139
c24847a5
ML
1402019-03-06 Martin Liska <mliska@suse.cz>
141
142 PR sanitizer/88684
143 * sanitizer_common/sanitizer_platform.h (defined): Cherry pick.
144 (SANITIZER_NON_UNIQUE_TYPEINFO): Likewise.
145 * ubsan/ubsan_type_hash_itanium.cc (isDerivedFromAtOffset):
146 Likewise.
147
4dfc5b35
L
1482019-02-20 H.J. Lu <hongjiu.lu@intel.com>
149
150 PR sanitizer/89409
151 * sanitizer_common/sanitizer_linux.cc (internal_readlink):
152 Cherry-pick compiler-rt r354451.
153
a795cd3d
JG
1542019-01-23 Jonny Grant <jg@jguk.org>
155
156 PR sanitizer/89010
157 * libsanitizer/README.gcc: Update to current https URLs.
158
96051ee5
ML
1592018-12-27 Martin Liska <mliska@suse.cz>
160
a795cd3d 161 PR sanitizer/86229
96051ee5
ML
162 * asan/asan_errors.cc (ErrorAllocTypeMismatch::Print): Cherry
163 pick rL350085.
164 * asan/asan_errors.h (struct ErrorAllocTypeMismatch): Likewise.
165
15e109b3
ML
1662018-11-09 Martin Liska <mliska@suse.cz>
167
168 * LOCAL_PATCHES: Include one local patch.
169
d1e2e13c
ML
1702018-11-09 Martin Liska <mliska@suse.cz>
171
172 PR sanitizer/87892
173 * sanitizer_common/sanitizer_linux_libcdep.cc (defined): Return
174 1 when CPU_COUNT macro is not defined.
175
39abbb86
BS
1762018-11-08 Bill Seurer <seurer@linux.vnet.ibm.com>
177
178 * libsanitizer/sanitizer_common/sanitizer_linux.cc (CheckASLR):
179 Disable ASLR for powerpc64 when using sanitizers.
180
aaabfd71
RO
1812018-11-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
182
183 PR sanitizer/80953
184 * configure.tgt (sparc*-*-solaris2.11*): Enable.
185 (x86_64-*-solaris2.11* | i?86-*-solaris2.11*): Enable.
186
0b5ccc80
RO
1872018-11-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
188
189 PR sanitizer/80953
190 * sanitizer_common/sanitizer_internal_defs.h,
191 sanitizer_common/sanitizer_platform_limits_solaris.h,
192 sanitizer_common/sanitizer_procmaps_solaris.cc,
193 sanitizer_common/sanitizer_solaris.cc: Cherry-pick compiler-rt
194 revision 346153.
195 * sanitizer_common/sanitizer_stacktrace.h,
196 sanitizer_common/sanitizer_stacktrace_sparc.cc: Cherry-pick
197 compiler-rt revision 346155.
198
b40a67df
SB
1992018-11-05 Segher Boessenkool <segher@kernel.crashing.org>
200
201 * LOCAL_PATCHES: Add r258525.
202 * sanitizer_common/sanitizer_stacktrace.cc
203 (BufferedStackTrace::FastUnwindStack): Use the correct frame offset
204 for PowerPC SYSV ABI.
205
6388cb29
ML
2062018-11-05 Martin Liska <mliska@suse.cz>
207
208 PR sanitizer/87860
209 * sanitizer_common/sanitizer_linux.cc: Cherry-pick upstream
210 r346129.
211
22e05272
JM
2122018-10-31 Joseph Myers <joseph@codesourcery.com>
213
214 PR bootstrap/82856
215 * Makefile.am: Include multilib.am.
216 * configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
217 * Makefile.in, aclocal.m4, asan/Makefile.in, configure,
218 interception/Makefile.in, libbacktrace/Makefile.in,
219 lsan/Makefile.in, sanitizer_common/Makefile.in, tsan/Makefile.in,
220 ubsan/Makefile.in: Regenerate.
221
088371bf
ML
2222018-10-31 Martin Liska <mliska@suse.cz>
223
224 * LOCAL_PATCHES: Update to installed revisions.
225
c244886c
ML
2262018-10-31 Martin Liska <mliska@suse.cz>
227
228 * ubsan/ubsan_platform.h: Add ifndef as we define it with
229 -DCAN_SANITIZE_UB CFLAGS.
230
f607b87c
ML
2312018-10-31 Martin Liska <mliska@suse.cz>
232
233 * asan/asan_mapping.h: Revert shadow memory offset to 1 << 41.
234
e63c9677
ML
2352018-10-31 Martin Liska <mliska@suse.cz>
236
237 * LOCAL_PATCHES: Update patch list.
238 * asan/asan_globals.cc (CheckODRViolationViaIndicator): Apply
239 patches from GCC's trunk.
240 (CheckODRViolationViaPoisoning): Likewise.
241 (RegisterGlobal): Likewise.
242 * sanitizer_common/sanitizer_mac.cc (defined): Likewise.
243 * sanitizer_common/sanitizer_stacktrace.cc (GetCanonicFrame): Likewise.
244 * ubsan/ubsan_handlers.cc (__ubsan::__ubsan_handle_cfi_bad_icall): Likewise.
245 (__ubsan::__ubsan_handle_cfi_bad_icall_abort): Likewise.
246 * ubsan/ubsan_handlers.h (struct CFIBadIcallData): Likewise.
247 (struct CFICheckFailData): Likewise.
248 (RECOVERABLE): Likewise.
249
8468f944
ML
2502018-10-31 Martin Liska <mliska@suse.cz>
251
252 * config.h.in: Regenerate.
253 * configure: Likewise.
254 * sanitizer_common/Makefile.am: Include new files, remove old
255 files.
256 * sanitizer_common/Makefile.in: Regenerate.
257 * ubsan/Makefile.am: Include new files, remove old
258 files.
259 * ubsan/Makefile.in: Likewise.
260 * asan/Makefile.am: Include new files.
261 * asan/Makefile.in: Regenerate.
262
eac97531
ML
2632018-10-31 Martin Liska <mliska@suse.cz>
264
265 * All source files: Merge from upstream 345033.
266
95fba530
ML
2672018-10-31 Martin Liska <mliska@suse.cz>
268
269 * HOWTO_MERGE: Enhance documentation.
270 * merge.sh: Add support for git as well.
271
b4f1f01d
ML
2722018-08-02 Martin Liska <mliska@suse.cz>
273
92a285c1 274 PR sanitizer/86022
b4f1f01d 275 * sanitizer_common/sanitizer_linux_libcdep.cc (ThreadDescriptorSize):
92a285c1 276 Cherry-pick compiler-rt revision 338606.
b4f1f01d 277
c191b1ab
MP
2782018-08-01 Marek Polacek <polacek@redhat.com>
279
280 PR sanitizer/86759
281 * tsan/tsan_platform.h: Cherry-pick compiler-rt revision 318044.
282 * tsan/tsan_platform_linux.cc: Cherry-pick compiler-rt revision
283 319180.
284
c83b4b82
L
2852018-07-25 H.J. Lu <hongjiu.lu@intel.com>
286
287 PR target/86560
288 * asan/asan_interceptors.cc (swapcontext) Cherry-pick
289 compiler-rt revision 337603.
290 * sanitizer_common/sanitizer_internal_defs.h (__has_attribute):
291 Likewise.
292
bdfc619e
JJ
2932018-07-05 Jakub Jelinek <jakub@redhat.com>
294
295 Revert
296 2018-07-04 Maxim Ostapenko <m.ostapenko@samsung.com>
297
298 PR sanitizer/84250
299 * Makefile.am: Reorder libs.
300 * Makefile.in: Regenerate.
301 * asan/Makefile.am: Define DCAN_SANITIZE_UB=1, add dependancy from
302 libsanitizer_ubsan.la.
303 * asan/Makefile.in: Regenerate.
304 * ubsan/Makefile.am: Define new libsanitizer_ubsan.la library.
305 * ubsan/Makefile.in: Regenerate.
306
ca8dd9f2
MO
3072018-07-04 Maxim Ostapenko <m.ostapenko@samsung.com>
308
309 PR sanitizer/84250
310 * Makefile.am: Reorder libs.
311 * Makefile.in: Regenerate.
312 * asan/Makefile.am: Define DCAN_SANITIZE_UB=1, add dependancy from
313 libsanitizer_ubsan.la.
314 * asan/Makefile.in: Regenerate.
315 * ubsan/Makefile.am: Define new libsanitizer_ubsan.la library.
316 * ubsan/Makefile.in: Regenerate.
317
3b07c0e5
DK
3182018-06-13 Denis Khalikov <d.khalikov@partner.samsung.com>
319
92a285c1
ML
320 PR sanitizer/86090
321 * configure.ac: Check for lstat and readlink.
322 * configure, config.h.in: Rebuild.
3b07c0e5 323
5b87c1fe
MK
3242018-05-31 Matthias Klose <doko@ubuntu.com>
325
326 PR sanitizer/86012
327 * sanitizer_common/sanitizer_platform_limits_posix.cc: Define
328 SIZEOF_STRUCT_USTAT for 32bit sparc.
329
71b55d45
L
3302018-05-24 H.J. Lu <hongjiu.lu@intel.com>
331
332 PR sanitizer/85835
333 * sanitizer_common/sanitizer_platform_limits_posix.cc: Don't
334 include <sys/ustat.h> for Linux.
335 (SIZEOF_STRUCT_USTAT): New.
336 (struct_ustat_sz): Use SIZEOF_STRUCT_USTAT for Linux.
337
bc40f166
HPN
3382018-04-26 Hans-Peter Nilsson <hp@axis.com>
339
752361c9
HPN
340 * configure.tgt <mips*-*-linux*>: Enable build, excluding
341 mips*64*-*-linux*.
342
9f943b24
HPN
343 * sanitizer_common/sanitizer_platform_limits_linux.cc: Do not
344 take the shortcut to #include <sys/stat.h> for MIPS instead of
345 the kernel <asm/stat.h>. Explain why sys/stat.h is misleading
346 or wrong to get the kernel struct stat.
347 * sanitizer_common/sanitizer_platform_limits_posix.h [__mips__]:
348 Correct the value for 32-bit non-android struct_kernel_stat_sz.
349
bc40f166
HPN
350 * sanitizer_common/sanitizer_atomic_clang_other.h [_MIPS_SIM
351 && _MIPS_SIM == _ABIO32] (lock): Add initializer for .pad member.
352
7b47ecf2
L
3532018-04-24 H.J. Lu <hongjiu.lu@intel.com>
354
355 * configure: Regenerated.
356
a0e1df88
JJ
3572018-04-19 Jakub Jelinek <jakub@redhat.com>
358
359 * configure: Regenerated.
360
001ddaa8
DM
3612018-04-18 David Malcolm <dmalcolm@redhat.com>
362
363 PR jit/85384
364 * configure: Regenerate.
365
19ddb884
BS
3662018-04-18 Bill Seurer <seurer@linux.vnet.ibm.com>
367
368 PR sanitizer/85389
369 * asan/asan_allocator.h (kAllocatorSpace): For __powerpc64__ change
370 from 0xa0000000000ULL to ~(uptr)0.
371
359ea407
JJ
3722018-03-19 Jakub Jelinek <jakub@redhat.com>
373
374 PR sanitizer/84761
375 * sanitizer_common/sanitizer_linux_libcdep.cc (__GLIBC_PREREQ):
376 Define if not defined.
377 (DL_INTERNAL_FUNCTION): Don't define.
378 (InitTlsSize): For __i386__ if not compiled against glibc 2.27+
379 determine at runtime whether to use regparm(3), stdcall calling
380 convention for older glibcs or normal calling convention for
381 newer glibcs for call to _dl_get_tls_static_info.
382
1422855a
SB
3832018-03-14 Segher Boessenkool <segher@kernel.crashing.org>
384
385 * sanitizer_common/sanitizer_stacktrace.cc
386 (BufferedStackTrace::FastUnwindStack): Use the correct frame offset
387 for PowerPC SYSV ABI.
388
14e335ed
IT
3892018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
390
391 PR target/84148
392 * configure: Regenerate.
393
4c4f3c3f
ML
3942018-02-05 Martin Liska <mliska@suse.cz>
395
396 * asan/asan_flags.inc: Cherry-pick upstream r323995.
397 * asan/asan_report.cc (CheckForInvalidPointerPair):
398 Cherry-pick upstream r323995.
399
2d509539
RO
4002018-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
401
402 PR sanitizer/82825
403 * sanitizer_common/sanitizer_internal_defs.h: Cherry-pick upstream
9dfc6e83 404 r324284.
2d509539 405
1f7273e5
RO
4062018-01-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
407
408 PR sanitizer/82824
409 * lsan/lsan_common_mac.cc: Cherry-pick upstream r322437.
410
05abad4c
ML
4112017-12-05 Martin Liska <mliska@suse.cz>
412 Jakub Jelinek <jakub@redhat.com>
413
414 * asan/asan_descriptions.cc: Cherry-pick upstream r319668.
415 * asan/asan_descriptions.h: Likewise.
416 * asan/asan_report.cc: Likewise.
417 * asan/asan_thread.cc: Likewise.
418 * asan/asan_thread.h: Likewise.
419
9069eb28
IT
4202017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
421
422 * acinclude.m4: Add enable.m4 and cet.m4.
423 * Makefile.in: Regenerate.
424 * asan/Makefile.am: Update AM_CXXFLAGS.
425 * asan/Makefile.in: Regenerate.
426 * configure: Likewise.
427 * configure.ac: Set CET_FLAGS. Update EXTRA_CFLAGS,
428 EXTRA_CXXFLAGS, EXTRA_ASFLAGS.
429 * interception/Makefile.am: Update AM_CXXFLAGS.
430 * interception/Makefile.in: Regenerate.
431 * libbacktrace/Makefile.am: Update AM_CFLAGS, AM_CXXFLAGS.
432 * libbacktrace/Makefile.in: Regenerate.
433 * lsan/Makefile.am: Update AM_CXXFLAGS.
434 * lsan/Makefile.in: Regenerate.
435 * sanitizer_common/Makefile.am: Update AM_CXXFLAGS,
436 AM_CCASFLAGS.
437 * sanitizer_common/sanitizer_linux_x86_64.S: Include cet.h.
438 Add _CET_ENDBR macro.
439 * sanitizer_common/Makefile.in: Regenerate.
440 * tsan/Makefile.am: Update AM_CXXFLAGS.
441 * tsan/Makefile.in: Regenerate.
442 * tsan/tsan_rtl_amd64.S Include cet.h. Add _CET_ENDBR macro.
443 * ubsan/Makefile.am: Update AM_CXXFLAGS.
444 * ubsan/Makefile.in: Regenerate.
445
5925290f
JJ
4462017-11-08 Jakub Jelinek <jakub@redhat.com>
447
448 PR bootstrap/82670
449 * ubsan/Makefile.am (ubsan_files): Remove ubsan_init_standalone.cc
450 and ubsan_signals_standalone.cc.
451 * ubsan/Makefile.in: Regenerated.
452
735e62b9
TV
4532017-11-05 Tom de Vries <tom@codesourcery.com>
454
455 PR other/82784
456 * asan/asan_poisoning.cc (CHECK_SMALL_REGION): Remove semicolon after
457 "do {} while (0)".
458 * lsan/lsan_common.cc (LOG_POINTERS, LOG_THREADS): Same.
459
9a45ffbd
JJ
4602017-10-20 Jakub Jelinek <jakub@redhat.com>
461
462 PR sanitizer/82595
463 * lsan/lsan.h (__lsan_init): Add SANITIZER_INTERFACE_ATTRIBUTE.
464 * lsan/Makefile.am (nodist_toolexeclib_HEADERS): Add
465 liblsan_preinit.o.
466 (lsan_files): Remove lsan_preinit.cc.
467 (liblsan_preinit.o): New rule.
468 * lsan/Makefile.in: Regenerated.
469
5d3805fc
JJ
4702017-10-19 Jakub Jelinek <jakub@redhat.com>
471
472 * All source files: Merge from upstream 315899.
92a285c1 473 * asan/Makefile.am (nodist_saninclude_HEADERS): Add
5d3805fc 474 include/sanitizer/tsan_interface.h.
92a285c1 475 * asan/libtool-version: Bump the libasan SONAME.
5d3805fc
JJ
476 * lsan/Makefile.am (sanitizer_lsan_files): Add lsan_common_mac.cc.
477 (lsan_files): Add lsan_linux.cc, lsan_mac.cc and lsan_malloc_mac.cc.
92a285c1 478 * sanitizer_common/Makefile.am (sanitizer_common_files): Add
5d3805fc
JJ
479 sancov_flags.cc, sanitizer_allocator_checks.cc,
480 sanitizer_coverage_libcdep_new.cc, sanitizer_errno.cc,
481 sanitizer_file.cc, sanitizer_mac_libcdep.cc and
482 sanitizer_stoptheworld_mac.cc. Remove sanitizer_coverage_libcdep.cc
483 and sanitizer_coverage_mapping_libcdep.cc.
92a285c1 484 * tsan/Makefile.am (tsan_files): Add tsan_external.cc.
5d3805fc
JJ
485 * ubsan/Makefile.am (DEFS): Add -DUBSAN_CAN_USE_CXXABI=1.
486 (ubsan_files): Add ubsan_init_standalone.cc and
487 ubsan_signals_standalone.cc.
488 * ubsan/libtool-version: Bump the libubsan SONAME.
92a285c1
ML
489 * asan/Makefile.in: Regenerate.
490 * lsan/Makefile.in: Regenerate.
491 * sanitizer_common/Makefile.in: Regenerate.
492 * tsan/Makefile.in: Regenerate.
5d3805fc
JJ
493 * ubsan/Makefile.in: Regenerate.
494
bf4df9e6
L
4952017-10-05 H.J. Lu <hongjiu.lu@intel.com>
496
497 PR sanitizer/82379
498 * configure.tgt (SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS): Set
499 to sanitizer_linux_x86_64.lo if __x86_64__ is defined by $CC.
500
d1453bec
JJ
5012017-10-02 Jakub Jelinek <jakub@redhat.com>
502
503 * libbacktrace/backtrace-rename.h (backtrace_uncompress_zdebug):
504 Define.
505
a5320f3c
JJ
5062017-08-07 Jakub Jelinek <jakub@redhat.com>
507
508 * include/system/sys/ptrace.h: New file.
509
c9b39a49
JJ
5102017-07-28 Jakub Jelinek <jakub@redhat.com>
511
512 PR sanitizer/80998
513 * ubsan/ubsan_handlers.cc: Cherry-pick upstream r304461.
514 * ubsan/ubsan_checks.inc: Likewise.
515 * ubsan/ubsan_handlers.h: Likewise.
516
144e36a7
JJ
5172017-07-14 Jakub Jelinek <jakub@redhat.com>
518
519 PR sanitizer/81066
520 * sanitizer_common/sanitizer_linux.h: Cherry-pick upstream r307969.
521 * sanitizer_common/sanitizer_linux.cc: Likewise.
522 * sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc: Likewise.
523 * tsan/tsan_platform_linux.cc: Likewise.
524
d9f8c5af
ML
5252017-04-06 Martin Liska <mliska@suse.cz>
526
527 PR sanitizer/80166
528 * sanitizer_common/sanitizer_common_interceptors.inc (INTERCEPTOR):
529 Cherry-pick upstream r299036.
530
fd6cba40
JJ
5312017-03-22 Jakub Jelinek <jakub@redhat.com>
532
533 PR sanitizer/78158
534 * tsan/tsan_interface_atomic.cc: Cherry-pick upstream r298378.
535
9b9ad360
AT
5362017-02-16 Andreas Tobler <andreast@gcc.gnu.org>
537
538 PR sanitizer/79562
539 * sanitizer_common/sanitizer_platform_limits_posix.cc: Cherry-pick
540 upstream r294806.
541
1509524b
JJ
5422017-02-11 Jakub Jelinek <jakub@redhat.com>
543
544 PR sanitizer/79341
545 * configure.tgt (s390*-*-linux*): Don't disable libsanitizer on
546 s390-linux 31-bit.
547 * sanitizer_common/sanitizer_internal_defs.h: Cherry-pick upstream
548 r294793.
549 * sanitizer_common/sanitizer_common_interceptors.inc: Cherry-pick
550 upstream r294790.
551 * sanitizer_common/sanitizer_linux_s390.cc: Cherry-pick upstream
552 r294799.
553
778e0ac3
MO
5542017-02-03 Maxim Ostapenko <m.ostapenko@samsung.com>
555
556 PR sanitizer/78663
557 * sanitizer_common/sanitizer_mac.cc: Cherry-pick upstream r293992.
558 * sanitizer_common/sanitizer_platform_interceptors.h: Likewise.
559
4997a71d
JJ
5602017-01-31 Jakub Jelinek <jakub@redhat.com>
561
562 * configure.tgt: Enable asan and ubsan on 64-bit s390*-*-linux*.
563
86b2a558
JJ
5642017-01-24 Jakub Jelinek <jakub@redhat.com>
565
c831801d
JJ
566 * configure.tgt: Enable tsan and lsan on powerpc64{,le}-*-linux*.
567
86b2a558
JJ
568 PR sanitizer/79168
569 * merge.sh (change_comment_headers): Don't remove 2nd and 3rd line
570 if the 3rd line doesn't contain 'The LLVM Compiler Infrastructure'
571 text.
572 * sanitizer_common/sanitizer_linux_mips64.S: Regenerated.
573 * sanitizer_common/sanitizer_linux_x86_64.S: Likewise.
574 * tsan/tsan_ppc_regs.h: Likewise.
575 * tsan/tsan_rtl_aarch64.S: Likewise.
576 * tsan/tsan_rtl_mips64.S: Likewise.
577 * tsan/tsan_rtl_ppc64.S: Likewise.
578
73aa401e
JJ
5792017-01-21 Jakub Jelinek <jakub@redhat.com>
580
581 PR other/79046
582 * interception/Makefile.am (gcc_version): Use @get_gcc_base_ver@
583 instead of cat to get version from BASE-VER file.
584 * asan/Makefile.am (gcc_version): Likewise.
585 * ubsan/Makefile.am (gcc_version): Likewise.
586 * sanitizer_common/Makefile.am (gcc_version): Likewise.
587 * lsan/Makefile.am (gcc_version): Likewise.
588 * tsan/Makefile.am (gcc_version): Likewise.
589 * interception/Makefile.in: Regenerated.
590 * asan/Makefile.in: Regenerated.
591 * ubsan/Makefile.in: Regenerated.
592 * sanitizer_common/Makefile.in: Regenerated.
593 * lsan/Makefile.in: Regenerated.
594 * tsan/Makefile.in: Regenerated.
595
3c36aa6b
JJ
5962017-01-17 Jakub Jelinek <jakub@redhat.com>
597
598 PR other/79046
599 * configure.ac: Add GCC_BASE_VER.
600 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
601 get version from BASE-VER file.
602 * libbacktrace/Makefile.in: Regenerated.
603 * interception/Makefile.in: Regenerated.
604 * asan/Makefile.in: Regenerated.
605 * ubsan/Makefile.in: Regenerated.
606 * configure: Regenerated.
607 * sanitizer_common/Makefile.in: Regenerated.
608 * lsan/Makefile.in: Regenerated.
609 * Makefile.in: Regenerated.
610 * tsan/Makefile.in: Regenerated.
611
942136a4
JC
6122017-01-10 James Clarke <jrtc27@jrtc27.com>
613
614 PR sanitizer/78992
615 * sanitizer_common/sanitizer_platform_limits_posix.h
616 (struct __sanitizer_sigaction): Cherry-pick upstream r291561.
617
11bbe995
MO
6182016-11-30 Maxim Ostapenko <m.ostapenko@samsung.com>
619
620 * LOCAL_PATCHES: Add revision.
621
d61ed91e
MO
6222016-11-30 Maxim Ostapenko <m.ostapenko@samsung.com>
623
624 PR sanitizer/78532
625 * sanitizer_common/sanitizer_platform_limits_posix.h
626 (__sanitizer_sigaction): Adjust for sparc targets and various Glibc
627 versions.
628
f4214e23
MT
6292016-11-29 Markus Trippelsdorf <markus@trippelsdorf.de>
630
631 * LOCAL_PATCHES: Remove r242480.
632
00212843
RO
6332016-11-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
634
635 * LOCAL_PATCHES: Add revision.
636
97448adf
RO
6372016-11-20 Jack Howarth <howarth.at.gcc@gmail.com>
638
639 PR sanitizer/78267
640 * sanitizer_common/sanitizer_mac.cc: Include <os/trace.h> only if
641 compiler supports blocks extension.
642
61a58d07
MT
6432016-11-16 Markus Trippelsdorf <markus@trippelsdorf.de>
644
645 * LOCAL_PATCHES: Add revision.
646
8c32ae0e
MT
6472016-11-16 Markus Trippelsdorf <markus@trippelsdorf.de>
648
649 PR sanitizer/78294
650 * tsan/tsan_rtl.cc: Add missing attribute.
651
949cc52d
MO
6522016-11-16 Maxim Ostapenko <m.ostapenko@samsung.com>
653
654 * LOCAL_PATCHES: New file.
655
511c8687
MO
6562016-11-16 Maxim Ostapenko <m.ostapenko@samsung.com>
657
658 PR sanitizer/78307
659 * ubsan/ubsan_handlers.cc (__ubsan_handle_cfi_bad_icall): New function.
660 ( __ubsan_handle_cfi_bad_icall_abort): Likewise.
661 * ubsan/ubsan_handlers.h (struct CFIBadIcallData): New type.
662 * ubsan/ubsan_handlers_cxx.cc (__ubsan_handle_cfi_bad_type): New
663 function.
664 (__ubsan_handle_cfi_bad_type_abort): Likewise.
665 * ubsan/ubsan_handlers_cxx.h (struct CFIBadTypeData): New type.
666 (__ubsan_handle_cfi_bad_type): Export function.
667 (__ubsan_handle_cfi_bad_type_abort): Likewise.
668 * HOWTO_MERGE: Update documentation.
669
84c1b9d3
MK
6702016-11-15 Matthias Klose <doko@ubuntu.com>
671
672 * configure: Regenerate.
673
8f16b6ca
MO
6742016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
675
676 * asan/asan_globals.cc (RegisterGlobal): Do not call
677 CheckODRViolationViaPoisoning.
678 (CheckODRViolationViaPoisoning): Remove.
679
789306de
MO
6802016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
681
682 * sanitizer_common/sanitizer_stacktrace.cc (GetCanonicFrame): Assume we
683 compiled code with GCC when extracting the caller PC for ARM if no
684 valid frame pointer is available.
685
fe7913f6
MO
6862016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
687
688 PR sanitizer/63958
689 Reapply:
690 2014-10-14 David S. Miller <davem@davemloft.net>
691
692 * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t):
693 Define at __kernel_time_t, as needed for sparc.
694 (struct __old_kernel_stat): Don't check if __sparc__ is defined.
695 * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
696 (__sanitizer): Define struct___old_kernel_stat_sz,
697 struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc.
698 (__sanitizer_ipc_perm): Adjust for sparc targets.
699 (__sanitizer_shmid_ds): Likewsie.
700 (__sanitizer_sigaction): Likewise.
701 (IOC_SIZE): Likewsie.
702
10189819
MO
7032016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
704
705 * All source files: Merge from upstream 285547.
706 * configure.tgt (SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS): New
707 variable.
708 * configure.ac (SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS): Handle it.
709 * asan/Makefile.am (asan_files): Add new files.
710 * asan/Makefile.in: Regenerate.
711 * ubsan/Makefile.in: Likewise.
712 * lsan/Makefile.in: Likewise.
713 * tsan/Makefile.am (tsan_files): Add new files.
714 * tsan/Makefile.in: Regenerate.
715 * sanitizer_common/Makefile.am (sanitizer_common_files): Add new files.
716 (EXTRA_libsanitizer_common_la_SOURCES): Define.
717 (libsanitizer_common_la_LIBADD): Likewise.
718 (libsanitizer_common_la_DEPENDENCIES): Likewise.
719 * sanitizer_common/Makefile.in: Regenerate.
720 * interception/Makefile.in: Likewise.
721 * libbacktace/Makefile.in: Likewise.
722 * Makefile.in: Likewise.
723 * configure: Likewise.
724 * merge.sh: Handle builtins/assembly.h merging.
725 * builtins/assembly.h: New file.
726 * asan/libtool-version: Bump the libasan SONAME.
727
aef6a97c
JJ
7282016-09-21 Jakub Jelinek <jakub@redhat.com>
729
730 PR sanitizer/77567
731 * asan/asan_new_delete.cc: Cherry-pick upstream r282019.
732
0ce48391
JJ
7332016-09-05 Jakub Jelinek <jakub@redhat.com>
734
735 PR sanitizer/77396
736 * asan/asan_globals.cc: Cherry-pick upstream r280657.
737
e23a7a99
JJ
7382016-08-12 Jakub Jelinek <jakub@redhat.com>
739
740 PR sanitizer/71042
741 * tsan/tsan_platform_linux.cc: Cherry-pick upstream r278292.
742 * tsan/tsan_rtl_aarch64.S: Likewise.
743
aa00995c
AM
7442016-07-23 Alan Modra <amodra@gmail.com>
745
746 Revert 2015-11-09 Alan Modra <amodra@gmail.com>
747 * configure.ac: Don't substitute OBSTACK_DEFS.
748 * asan/Makefile.am: Remove OBSTACK_DEFS from DEFS.
749 * tsan/Makefile.am: Likewise.
750 * configure: Regenerate.
751 * Makefile.in: Regenerate.
752 * asan/Makefile.in: Regenerate.
753 * interception/Makefile.in: Regenerate.
754 * libbacktrace/Makefile.in: Regenerate.
755 * lsan/Makefile.in: Regenerate.
756 * sanitizer_common/Makefile.in: Regenerate.
757 * tsan/Makefile.in: Regenerate.
758 * ubsan/Makefile.in: Regenerate.
759
69af4eec
JJ
7602016-05-17 Jakub Jelinek <jakub@redhat.com>
761
762 PR sanitizer/71160
763 * asan/asan_malloc_linux.cc: Cherry pick upstream r254395
764 and r269633.
765
fefddbef
MO
7662016-04-21 Maxim Ostapenko <m.ostapenko@samsung.com>
767
768 PR sanitizer/70624
769 * asan/asan_mac.cc: Cherry pick upstream r266868.
770
e4729419
JJ
7712016-01-19 Jakub Jelinek <jakub@redhat.com>
772
773 PR sanitizer/68824
774 * tsan/tsan_interceptors.cc (NEED_TLS_GET_ADDR, __tls_get_addr,
775 InitializeInterceptors): Cherry pick upstream r258119.
776
bf93d543
AT
7772016-01-14 Andreas Tobler <andreast@gcc.gnu.org>
778
779 * configure.ac: Replace the hard-coded -ldl requirement for
780 link_sanitizer_common with a configure time check for -ldl.
781 * configure: Regenerate.
782
9211bbb2
MO
7832015-11-24 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
784
785 * include/system/linux/asm/ptrace.h: Move to ...
786 * include/system/asm/ptrace.h: ... this.
787
664dd3cf
MO
7882015-11-24 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
789
790 * include/system/linux/asm/ptrace.h: New header.
791
55aea9f5
MO
7922015-11-23 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
793
794 * All source files: Merge from upstream r253555.
795 * configure.tgt: Enable LSan on aarch64-*-linux* targets. Add new
796 dependences for TSan for aarch64-*-linux* targets.
797 * tsan/Makefile.am: Add new source files.
798 * configure: Regenerate.
799 * tsan/Makefile.in: Likewise.
800
62c0f0a6
AM
8012015-11-09 Alan Modra <amodra@gmail.com>
802
803 * sanitizer_common/sanitizer_common_interceptors.inc: Update size
804 params for _obstack_begin_1, _obstack_begin, _obstack_newchunk
805 interceptors.
806 * configure.ac: Substitute OBSTACK_DEFS.
807 * asan/Makefile.am: Add OBSTACK_DEFS to DEFS.
808 * tsan/Makefile.am: Likewise.
809 * configure: Regenerate.
810 * Makefile.in: Regenerate.
811 * asan/Makefile.in: Regenerate.
812 * interception/Makefile.in: Regenerate.
813 * libbacktrace/Makefile.in: Regenerate.
814 * lsan/Makefile.in: Regenerate.
815 * sanitizer_common/Makefile.in: Regenerate.
816 * tsan/Makefile.in: Regenerate.
817 * ubsan/Makefile.in: Regenerate.
818
692b1131
MO
8192015-10-22 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
820
821 PR bootstrap/68041
822 * configure.ac (link_sanitizer_common): Link against librt only if it
823 contains shm_open, required by sanitizers.
824 (CXX_ABI_NEEDED): Remove variable.
825 * configure: Regenerate.
826 * ubsan/Makefile.am (libubsan_la_LIBADD): Do not add -lc++abi anymore.
827 * ubsan/Makefile.in: Regenerate.
828
7047bc9c
MO
8292015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
830
831 * HOWTO_MERGE: New file.
832
21d61063
MO
8332015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
834
835 * sanitizer_common/sanitizer_stacktrace.cc (GetCanonicFrame): Assume we
836 compiled code with GCC when extracting the caller PC for ARM if no
837 valid frame pointer is available.
838
15ebe1fe
MO
8392015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
840
841 PR bootstrap/63888
842 Reapply:
843 2015-02-20 Jakub Jelinek <jakub@redhat.com>
844
845 * asan/asan_globals.cc (RegisterGlobal): Disable detect_odr_violation
846 support until it is rewritten upstream.
847
848 * c-c++-common/asan/pr63888.c: New test.
849
0d57d3e0
MO
8502015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
851
852 PR sanitizer/63958
853 Reapply:
854 2014-10-14 David S. Miller <davem@davemloft.net>
855
856 * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t):
857 Define at __kernel_time_t, as needed for sparc.
858 (struct __old_kernel_stat): Don't check if __sparc__ is defined.
859 * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
860 (__sanitizer): Define struct___old_kernel_stat_sz,
861 struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc.
862 (__sanitizer_ipc_perm): Adjust for sparc targets.
863 (__sanitizer_shmid_ds): Likewsie.
864 (__sanitizer_sigaction): Likewise.
865 (IOC_SIZE): Likewsie.
866
696d846a
MO
8672015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
868
869 * All source files: Merge from upstream r250806.
870 * configure.ac (link_sanitizer_common): Add -lrt flag.
871 * configure.tgt: Enable TSAN and LSAN for aarch64-linux targets.
872 Set USE_CXX_ABI_FLAG=true for darwin.
873 * asan/Makefile.am (asan_files): Add new files.
874 (DEFS): Add DCAN_SANITIZE_UB=0 and remove unused and legacy
875 DASAN_FLEXIBLE_MAPPING_AND_OFFSET=0.
876 * asan/Makefile.in: Regenerate.
877 * ubsan/Makefile.am (ubsan_files): Add new files.
878 (DEFS): Add DCAN_SANITIZE_UB=1.
879 (libubsan_la_LIBADD): Add -lc++abi if USE_CXX_ABI_FLAG is true.
880 * ubsan/Makefile.in: Regenerate.
881 * tsan/Makefile.am (tsan_files): Add new files.
882 (DEFS): Add DCAN_SANITIZE_UB=0.
883 * tsan/Makefile.in: Regenerate.
884 * sanitizer_common/Makefile.am (sanitizer_common_files): Add new files.
885 * sanitizer_common/Makefile.in: Regenerate.
886 * asan/libtool-version: Bump the libasan SONAME.
887
1842a04c
MT
8882015-09-09 Markus Trippelsdorf <markus@trippelsdorf.de>
889
890 PR sanitizer/67258
891 * ubsan/ubsan_type_hash.cc: Cherry pick upstream r244101.
892
97d8f801
MT
8932015-07-29 Markus Trippelsdorf <markus@trippelsdorf.de>
894
895 PR sanitizer/63927
896 * sanitizer_common/sanitizer_stacktrace.h: Use fast unwinder
897 for PowerPC.
898
3d61d875
BS
8992015-07-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
900
901 PR sanitizer/63927
902 * sanitizer_common/sanitizer_stacktrace.cc
903 (BufferedStackTrace::FastUnwindStack): Fix code for PowerPC to
904 find the link register at an offset of 16 from the base of the
905 caller's stack frame.
906
f3915b42
MH
9072015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
908
909 * Makefile.in: Regenerated with automake-1.11.6.
910 * aclocal.m4: Likewise.
911 * asan/Makefile.in: Likewise.
912 * configure: Likewise.
913 * interception/Makefile.in: Likewise.
914 * libbacktrace/Makefile.in: Likewise.
915 * lsan/Makefile.in: Likewise.
916 * sanitizer_common/Makefile.in: Likewise.
917 * tsan/Makefile.in: Likewise.
918 * ubsan/Makefile.in: Likewise.
919
d041a6fc
YG
9202015-04-13 Yury Gribov <y.gribov@samsung.com>
921
922 PR sanitizer/64839
923 * sanitizer_common/sanitizer_platform.h: Cherry pick
924 upstream r234470.
925 * sanitizer_common/sanitizer_platform_limits_posix.cc: Ditto.
926 * configure.ac (RPC_DEFS): Check for precense of RPC headers.
927 * sanitizer_common/Makefile.am (DEFS): Pass info to compiler.
928 * Makefile.in: Regenerate.
929 * asan/Makefile.in: Regenerate.
930 * config.h.in: Regenerate.
931 * configure: Regenerate.
932 * interception/Makefile.in: Regenerate.
933 * libbacktrace/Makefile.in: Regenerate.
934 * lsan/Makefile.in: Regenerate.
935 * sanitizer_common/Makefile.in: Regenerate.
936 * tsan/Makefile.in: Regenerate.
937 * ubsan/Makefile.in: Regenerate.
938
939
d886f7cc
CL
9402015-03-23 Christophe Lyon <christophe.lyon@linaro.org>
941
942 PR sanitizer/59009
943 * sanitizer_common/sanitizer_platform_limits_posix.cc: Cherry pick
944 upstream r230324.
945 * sanitizer_common/sanitizer_platform.h: Likewise.
946 * sanitizer_common/sanitizer_common_syscalls.inc: Likewise.
947
563fb64a
BE
9482015-03-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
949
950 * tsan/tsan_rtl_report.cc (ScopedReport::AddThread): Cherry pick
951 upstream 224508 and 224755.
952
ee876e59
JJ
9532015-03-09 Jakub Jelinek <jakub@redhat.com>
954
955 PR sanitizer/63958
956 Reapply:
957 2014-10-14 David S. Miller <davem@davemloft.net>
958
959 * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t):
960 Define at __kernel_time_t, as needed for sparc.
961 (struct __old_kernel_stat): Don't check if __sparc__ is defined.
962 * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
963 (__sanitizer): Define struct___old_kernel_stat_sz,
964 struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc.
965 (__sanitizer_ipc_perm): Adjust for sparc targets.
966 (__sanitizer_shmid_ds): Likewsie.
967 (__sanitizer_sigaction): Likewise.
968 (IOC_SIZE): Likewsie.
969
6ad0611b
PB
9702015-02-27 Peter Bergner <bergner@vnet.ibm.com>
971
972 * configure.tgt: Enable build on powerpc*le-*-linux.
973
09901e8a 9742015-02-23 Jakub Jelinek <jakub@redhat.com>
86ee2038
JJ
975
976 PR bootstrap/63888
977 * asan/asan_globals.cc (RegisterGlobal): Disable detect_odr_violation
978 support until it is rewritten upstream.
979
94213c10
MK
9802015-01-26 Matthias Klose <doko@ubuntu.com>
981
982 * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
983 * configure: Regenerate.
984
8790f572
VK
9852015-01-25 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
986
94213c10 987 * configure.ac (TSAN_TARGET_DEPENDENT_OBJECTS): Undefine.
8790f572 988 * configure: Regenerate.
94213c10 989 * configure.tgt (TSAN_TARGET_DEPENDENT_OBJECTS): Define.
8790f572 990
b0edd457
VK
9912015-01-25 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
992
993 * configure.ac (TSAN_TARGET_DEPENDENT_OBJECTS): Define.
994 * configure: Regenerate.
995 * tsan/Makefile.am (EXTRA_libtsan_la_SOURCES): Define.
996 (libtsan_la_DEPENDENCIES): Likewise.
997 * Makefile.in: Regenerate.
998 * asan/Makefile.in: Regenerate.
999 * interception/Makefile.in: Regenerate.
1000 * libbacktrace/Makefile.in: Regenerate.
1001 * lsan/Makefile.in: Regenerate.
1002 * sanitizer_common/Makefile.in: Regenerate.
1003 * tsan/Makefile.in: Regenerate.
1004 * ubsan/Makefile.in: Regenerate.
1005
19ac475f
JJ
10062015-01-22 Jakub Jelinek <jakub@redhat.com>
1007
1008 * tsan/tsan_rtl.h: Cherry pick upstream r226829.
1009
8b08ef25
JJ
10102015-01-21 Jakub Jelinek <jakub@redhat.com>
1011
1012 PR sanitizer/64435
1013 * sanitizer_common/sanitizer_platform_limits_posix.h: Cherry pick
1014 upstream r226637.
1015 * sanitizer_common/sanitizer_platform_limits_posix.cc: Likewise.
1016 * sanitizer_common/sanitizer_posix.cc: Cherry pick upstream r226639.
1017
3ea36418
JJ
10182015-01-20 Jakub Jelinek <jakub@redhat.com>
1019
1020 PR sanitizer/64632
1021 * ubsan/ubsan_type_hash.cc: Cherry pick upstream r224972.
1022
9deaf59d
JJ
10232015-01-19 Jakub Jelinek <jakub@redhat.com>
1024
1025 PR sanitizer/64435
1026 * sanitizer_common/sanitizer_platform_limits_posix.cc: Cherry pick
1027 upstream r223925.
1028
b6a8bacc
JJ
10292015-01-13 Jakub Jelinek <jakub@redhat.com>
1030
1031 * sanitizer_common/sanitizer_deadlock_detector.h: Cherry pick
1032 upstream r224518 and r224519.
1033 * tsan/tsan_rtl_thread.cc: Cherry pick upstream r224702 and
1034 r224834.
1035
f2798565
JJ
10362014-12-16 Jakub Jelinek <jakub@redhat.com>
1037
1038 * sanitizer_common/sanitizer_symbolizer_libbacktrace.cc,
1039 sanitizer_common/sanitizer_symbolizer_libbacktrace.h,
1040 sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc: Cherry pick
1041 upstream r224308.
1042
a699d672
L
10432014-11-21 H.J. Lu <hongjiu.lu@intel.com>
1044
1045 PR bootstrap/63784
1046 * configure: Regenerated.
1047
7697b16f
JJ
10482014-11-21 Jakub Jelinek <jakub@redhat.com>
1049
1050 PR target/61137
1051 * config/ia64/ia64.c (ia64_attribute_takes_identifier_p): New function.
1052 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Redefine to it.
1053
7f201a67
UB
10542014-11-14 Uros Bizjak <ubizjak@gmail.com>
1055
1056 * sanitizer_common/Makefile.am (AM_CXXFLAGS): Use -std=gnu++11.
1057 * asan/Makefile.am (AM_CXXFLAGS): Ditto.
1058 * lsan/Makefile.am (AM_CXXFLAGS): Ditto.
1059 * interception/Makefile.am (AM_CXXFLAGS): Ditto.
1060 * tsan/Makefile.am (AM_CXXFLAGS): Ditto.
1061 * libbacktrace/Makefile.am (AM_CXXFLAGS): Ditto.
1062 * ubsan/Makefile.am (AM_CXXFLAGS): Ditto.
1063 * sanitizer_common/Makefile.in: Regenerate.
1064 * asan/Makefile.in: Ditto.
1065 * lsan/Makefile.in: Ditto.
1066 * interception/Makefile.in: Ditto.
1067 * tsan/Makefile.in: Ditto.
1068 * libbacktrace/Makefile.in: Ditto.
1069 * ubsan/Makefile.in: Ditto.
1070
c5be964a
KS
10712014-11-13 Kostya Serebryany <kcc@google.com>
1072
1073 * All source files: Merge from upstream r221802.
1074 * sanitizer_common/sanitizer_symbolizer_libbacktrace.cc
1075 (LibbacktraceSymbolizer::SymbolizeData): Replace 'address'
1076 with 'start' to follow the new interface.
1077 * asan/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
1078 * interception/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
1079 * libbacktrace/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
1080 * lsan/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
1081 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new
1082 files.
1083 (AM_CXXFLAGS): Added -std=c++11.
1084 * tsan/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
1085 * ubsan/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
1086 * asan/Makefile.in: Regenerate.
1087 * interception/Makefile.in: Regenerate.
1088 * libbacktrace/Makefile.in: Regenerate.
1089 * lsan/Makefile.in: Regenerate.
1090 * sanitizer_common/Makefile.in: Regenerate.
1091 * tsan/Makefile.in: Regenerate.
1092 * ubsan/Makefile.in: Regenerate.
1093
ebf6d33b
FXC
10942014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1095
1096 PR target/63610
1097 * configure: Regenerate.
1098
d13fc1ed
ML
10992014-10-16 Martin Liska <mliska@suse.cz>
1100
1101 * asan/Makefile.am: IPA ICF pass is disabled.
1102 * asan/Makefile.in: Likewise.
1103
c8473336
DM
11042014-10-14 David S. Miller <davem@davemloft.net>
1105
1106 * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t):
1107 Define at __kernel_time_t, as needed for sparc.
1108 (struct __old_kernel_stat): Don't check if __sparc__ is defined.
1109 * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
1110 (__sanitizer): Define struct___old_kernel_stat_sz,
1111 struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc.
1112 (__sanitizer_ipc_perm): Adjust for sparc targets.
1113 (__sanitizer_shmid_ds): Likewsie.
1114 (__sanitizer_sigaction): Likewsie.
1115 (IOC_SIZE): Likewsie.
1116
694b4cfa
JJ
11172014-10-14 Jakub Jelinek <jakub@redhat.com>
1118
1119 * ubsan/Makefile.am (DEFS): Add -DPIC.
1120 * ubsan/Makefile.in: Regenerated.
1121
a3125fc2
CL
11222014-09-26 Christophe Lyon <christophe.lyon@linaro.org>
1123
1124 * configure.tgt: Enable build on aarch64*-linux.
1125
866e32ad
KS
11262014-09-19 Kostya Serebryany <kcc@google.com>
1127
1128 * All source files: Merge from upstream r218156.
1129 * asan/Makefile.am (asan_files): Added new files.
1130 * asan/Makefile.in: Regenerate.
1131 * ubsan/Makefile.am (ubsan_files): Added new files.
1132 * ubsan/Makefile.in: Regenerate.
1133 * tsan/Makefile.am (tsan_files): Added new files.
1134 * tsan/Makefile.in: Regenerate.
1135 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new
1136 files.
1137 * sanitizer_common/Makefile.in: Regenerate.
1138 * asan/libtool-version: Bump the libasan SONAME.
1139
126edc3f
JJ
11402014-09-10 Jakub Jelinek <jakub@redhat.com>
1141
1142 * ubsan/ubsan_handlers.cc, ubsan/ubsan_handlers.h: Cherry pick
1143 upstream r215485, r217389, r217391 and r217400.
1144
0d807c80
PC
11452014-06-23 Paolo Carlini <paolo.carlini@oracle.com>
1146
1147 * sanitizer_common/sanitizer_common_interceptors.inc:
1148 Cherry pick upstream r211008.
1149
4622301b
RB
11502014-06-11 Richard Biener <rguenther@suse.de>
1151
1152 * asan/asan_linux.cc: Cherry pick upstream r210012.
1153
ecd5543f
JJ
11542014-05-30 Jakub Jelinek <jakub@redhat.com>
1155
1156 * sanitizer_common/sanitizer_stacktrace.cc: Cherry pick upstream
1157 r209879.
1158 * sanitizer_common/sanitizer_common.h: Likewise.
1159 * asan/asan_mapping.h: Likewise.
1160 * asan/asan_linux.cc: Likewise.
1161 * tsan/tsan_mman.cc: Cherry pick upstream r209744.
1162 * sanitizer_common/sanitizer_allocator.h: Likewise.
1163
85a16bf8
MP
11642014-05-23 Marek Polacek <polacek@redhat.com>
1165
1166 * ubsan/ubsan_value.cc (getFloatValue): Handle 96-bit
1167 floating-point types.
1168
dee5ea7a
KS
11692014-05-22 Kostya Serebryany <kcc@google.com>
1170
1171 * All source files: Merge from upstream r209283.
1172 * asan/Makefile.am (asan_files): Added new files.
1173 * asan/Makefile.in: Regenerate.
1174 * tsan/Makefile.am (tsan_files): Added new files.
1175 * tsan/Makefile.in: Regenerate.
0d807c80
PC
1176 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new
1177 files.
dee5ea7a
KS
1178 * sanitizer_common/Makefile.in: Regenerate.
1179
2675305b
YG
11802014-05-14 Yury Gribov <y.gribov@samsung.com>
1181
1182 PR sanitizer/61100
1183 * Makefile.am (nodist_saninclude_HEADERS): Install
1184 public headers.
1185 * Makefile.in: Regenerate.
1186
a6c9ab4e
RO
11872014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1188
1189 * libbacktrace/Makefile.am (libsanitizer_libbacktrace_la_SOURCES):
1190 Add ../../libbacktrace/sort.c.
1191 * libbacktrace/Makefile.in: Regenerate.
1192 * libbacktrace/backtrace-rename.h (backtrace_qsort): Define.
1193
a42a7046
BS
11942014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1195
1196 * configure.tgt: Unsupported for little endian PowerPC for now.
1197
5ab39ec3
JJ
11982014-02-04 Jakub Jelinek <jakub@redhat.com>
1199
81c87471
JJ
1200 PR sanitizer/60055
1201 * tsan/tsan_flags.cc (__tsan_default_options): Add
1202 SANITIZER_INTERFACE_ATTRIBUTE. Backport from upstream r200747.
1203 * tsan/tsan_rtl.cc (__tsan::OnFinalize): Likewise.
1204
5ab39ec3
JJ
1205 PR sanitizer/60038
1206 * sanitizer_common/sanitizer_linux_libcdep.cc: Include
1207 sanitizer_atomic.h and unistd.h.
1208 (kThreadDescriptorSize): Made static, remove initializer and const,
1209 change type to atomic_uintptr_t.
1210 (ThreadDescriptorSize): Use confstr(_CS_GNU_LIBC_VERSION, ...) to
1211 query glibc version, compute kThreadDescriptorSize depending on
1212 glibc version minor number.
1213 (GetThreadStackAndTls): Use ThreadDescriptorSize() instead of
1214 kThreadDescriptorSize directly.
1215
4a7eaf5f
YG
12162014-01-23 Yury Gribov <y.gribov@samsung.com>
1217 Jakub Jelinek <jakub@redhat.com>
1218
1219 PR sanitizer/57316
1220 * configure.ac: Check for missing syscalls.
1221 * Makefile.am: Likewise.
1222 * configure: Regenerate.
1223 * Makefile.in: Regenerate.
1224
2613419a
JJ
12252014-01-09 Jakub Jelinek <jakub@redhat.com>
1226
b5f58ba3
JJ
1227 * sanitizer_common/sanitizer_symbolizer_libbacktrace.h
1228 (LibbacktraceSymbolizer::Demangle): New declaration.
1229 * sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc
1230 (POSIXSymbolizer::Demangle): Use libbacktrace_symbolizer_'s Demangle
1231 method if possible.
1232 * sanitizer_common/sanitizer_symbolizer_libbacktrace.cc: Include
1233 "demangle.h" if SANITIZE_CP_DEMANGLE is defined.
1234 (struct CplusV3DemangleData): New type.
1235 (CplusV3DemangleCallback, CplusV3Demangle): New functions.
1236 (SymbolizeCodePCInfoCallback, SymbolizeCodeCallback,
1237 SymbolizeDataCallback): Use CplusV3Demangle.
1238 * sanitizer_common/Makefile.am (AM_CXXFLAGS): Add
1239 -DSANITIZE_CP_DEMANGLE and -I $(top_srcdir)/../include.
1240 * libbacktrace/backtrace-rename.h (cplus_demangle_builtin_types,
1241 cplus_demangle_fill_ctor, cplus_demangle_fill_dtor,
1242 cplus_demangle_fill_extended_operator, cplus_demangle_fill_name,
1243 cplus_demangle_init_info, cplus_demangle_mangled_name,
1244 cplus_demangle_operators, cplus_demangle_print,
1245 cplus_demangle_print_callback, cplus_demangle_type, cplus_demangle_v3,
1246 cplus_demangle_v3_callback, is_gnu_v3_mangled_ctor,
1247 is_gnu_v3_mangled_dtor, java_demangle_v3, java_demangle_v3_callback):
1248 Define.
1249 (__asan_internal_memcmp, __asan_internal_strncmp): New prototypes.
1250 (memcmp, strncmp): Redefine.
1251 * libbacktrace/Makefile.am (libsanitizer_libbacktrace_la_SOURCES): Add
1252 ../../libiberty/cp-demangle.c.
1253 * libbacktrace/bridge.cc (__asan_internal_memcmp,
1254 __asan_internal_strncmp): New functions.
1255 * sanitizer_common/Makefile.in: Regenerated.
1256 * libbacktrace/Makefile.in: Regenerated.
1257 * configure: Regenerated.
1258 * configure.ac: Regenerated.
1259 * config.h.in: Regenerated.
1260
2613419a
JJ
1261 * sanitizer_common/Makefile.am (AM_CPPFLAGS): Add
1262 -isystem $(top_srcdir)/include/system.
1263 * sanitizer_common/Makefile.in: Regenerated.
1264 * include/system/linux/aio_abi.h: New header.
1265 * include/system/linux/mroute.h: New header.
1266 * include/system/linux/mroute6.h: New header.
1267 * include/system/linux/perf_event.h: New header.
1268 * include/system/linux/types.h: New header.
c915a581
JJ
1269
1270 PR sanitizer/59136
1271 * sanitizer_common/Makefile.am (AM_CXXFLAGS): If
1272 LIBBACKTRACE_SUPPORTED add -DSANITIZER_LIBBACKTRACE
1273 and -I/-include flags.
1274 * lsan/Makefile.am (liblsan_la_LIBADD): Add
1275 libsanitizer_libbacktrace.la if LIBBACKTRACE_SUPPORTED.
1276 * tsan/Makefile.am (libtsan_la_LIBADD): Likewise.
1277 * ubsan/Makefile.am (libubsan_la_LIBADD): Likewise.
1278 * asan/Makefile.am (libasan_la_LIBADD): Likewise.
1279 * Makefile.am (SUBDIRS): If LIBBACKTRACE_SUPPORTED add
1280 libbacktrace.
1281 * README.gcc: Document that also lsan and ubsan are
1282 maintained in compiler-rt upstream.
1283 * libbacktrace/Makefile.am: New file.
1284 * libbacktrace/backtrace-rename.h: New file.
1285 * libbacktrace/backtrace-supported.h.in: New file.
1286 * libbacktrace/bridge.cc: New file.
1287 * configure.ac: Add tests needed for libbacktrace build
1288 within libsanitizer.
1289 * sanitizer_common/Makefile.in: Regenerated.
1290 * lsan/Makefile.in: Regenerated.
1291 * tsan/Makefile.in: Regenerated.
1292 * ubsan/Makefile.in: Regenerated.
1293 * libbacktrace/Makefile.in: Generated.
1294 * config.h.in: Regenerated.
1295 * configure: Regenerated.
1296 * Makefile.in: Regenerated.
1297 * interception/Makefile.in: Regenerated.
1298 * asan/Makefile.in: Regenerated.
1299 * aclocal.m4: Regenerated.
1300
409f3b46
KS
13012013-12-19 Kostya Serebryany <kcc@google.com>
1302
92a285c1 1303 * sanitizer_common/sanitizer_platform_limits_posix.cc:
409f3b46
KS
1304 workaround for missing definition of EOWNERDEAD, backport
1305 from upstream r196779.
1306
079db27b
L
13072013-12-06 H.J. Lu <hongjiu.lu@intel.com>
1308
1309 * sanitizer_common/sanitizer_platform_limits_posix.h
1310 (__sanitizer_shmid_ds): Use u64 on time fields for x32.
1311 (__sanitizer_clock_t): Use long long for x32.
1312
7efb96c0
L
13132013-12-06 H.J. Lu <hongjiu.lu@intel.com>
1314
1315 * sanitizer_common/sanitizer_platform_limits_linux.cc: Include
1316 <sys/stat.h>, instead of <asm/stat.h>, if __x86_64__ is defined.
1317 (struct___old_kernel_stat_sz): Don't check if __x86_64__ is defined.
1318
df9d1700
L
13192013-12-05 H.J. Lu <hongjiu.lu@intel.com>
1320
1321 * configure.ac (link_sanitizer_common): Add -lm.
1322 * configure: Regenerated.
1323
c4c16f74
KS
13242013-12-05 Kostya Serebryany <kcc@google.com>
1325
1326 * All source files: Merge from upstream r196489.
1327 * merge.sh: Add *.S to the list of merged files.
1328
666ee4d6
YG
13292013-12-05 Yury Gribov <y.gribov@samsung.com>
1330
1331 PR sanitizer/59368
1332 * Makefile.am (gcc_version): Added gcc_version.
1333 * Makefile.in: Regenerate.
1334
df77f0e4
KS
13352013-12-05 Kostya Serebryany <kcc@google.com>
1336
1337 * All source files: Merge from upstream r196090.
1338 * tsan/Makefile.am (tsan_files): Added new files.
1339 * tsan/Makefile.in: Regenerate.
1340 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new fles.
1341 * sanitizer_common/Makefile.in: Regenerate.
1342 * lsan/Makefile.am (lsan_files): Added new files.
1343 * lsan/Makefile.in: Regenerate.
1344
35814b03
JJ
13452013-11-29 Jakub Jelinek <jakub@redhat.com>
1346 Yury Gribov <y.gribov@samsung.com>
1347
1348 PR sanitizer/59063
1349 * libsanitizer.spec.in: Add spec file to hold link flags for
1350 various sanitizer libs.
1351 * configure.ac: Check whether clock_* routines come from librt.
1352 * asan/Makefile.am (libasan_la_LDFLAGS): Libs now come from
1353 configure.ac.
1354 * tsan/Makefile.am (libtsan_la_LDFLAGS): Likewise.
1355 * ubsan/Makefile.am (libubsan_la_LDFLAGS): Likewise.
1356 * lsan/Makefile.am (liblsan_la_LDFLAGS): Likewise.
1357 * asan/Makefile.in: Regenerate.
1358 * interception/Makefile.in: Regenerate.
1359 * lsan/Makefile.in: Regenerate.
1360 * sanitizer_common/Makefile.in: Regenerate.
1361 * tsan/Makefile.in: Regenerate.
1362 * ubsan/Makefile.in: Regenerate.
1363 * Makefile.in: Regenerate.
1364 * configure: Regenerate.
1365
049558ed
JJ
13662013-11-28 Jakub Jelinek <jakub@redhat.com>
1367 Yury Gribov <y.gribov@samsung.com>
1368
1369 PR sanitizer/59106
1370 * ubsan/Makefile.am (AM_CXXFLAGS): Disable -frtti for files that
1371 don't need it.
1372 * ubsan/Makefile.in: Regenerated.
1373
9065ada9
JJ
13742013-11-22 Jakub Jelinek <jakub@redhat.com>
1375
1376 PR sanitizer/59061
1377 * configure.tgt: Set LSAN_SUPPORTED=yes for x86_64-linux.
1378 * configure.ac (LSAN_SUPPORTED): New AM_CONDITIONAL.
1379 * configure: Regenerated.
1380 * lsan/Makefile.am (toolexeclib_LTLIBRARIES, lsan_files,
1381 liblsan_la_SOURCES, liblsan_la_LIBADD, liblsan_la_LDFLAGS): Add.
1382 * lsan/Makefile.in: Regenerated.
1383
486294d4
MS
13842013-11-22 Mike Stump <mikestump@comcast.net>
1385
1386 * sanitizer_common/sanitizer_linux.cc (__sanitizer): Grab one
1387 change from upstream to fix build.
1388
2621c860
YG
13892013-11-18 Yury Gribov <y.gribov@samsung.com>
1390
1391 PR sanitizer/59106
1392 * asan/Makefile.am (AM_CXXFLAGS): Add -fno-rtti.
1393 * interception/Makefile.am (AM_CXXFLAGS): Likewise.
1394 * lsan/Makefile.am (AM_CXXFLAGS): Likewise.
1395 * sanitizer_common/Makefile.am (AM_CXXFLAGS): Likewise.
1396 * tsan/Makefile.am (AM_CXXFLAGS): Likewise.
1397 * asan/Makefile.in: Regenerate.
1398 * interception/Makefile.in: Regenerate.
1399 * tsan/Makefile.in: Regenerate.
1400 * lsan/Makefile.in: Regenerate.
1401 * sanitizer_common/Makefile.in: Regenerate.
1402
c8e1377b
KS
14032013-11-15 Kostya Serebryany <kcc@google.com>
1404
1405 PR sanitizer/58994
92a285c1
ML
1406 Backport from upstream revision 194573
1407 * asan/asan_interceptors.cc (COMMON_INTERCEPTOR_ENTER): Fall
1408 back to the original functions in the common libsanitizer
1409 interceptors and the __cxa_atexit() interceptor on Darwin.
c8e1377b 1410
c3d77f3a
PB
14112013-11-13 Peter Bergner <bergner@vnet.ibm.com>
1412
1413 PR sanitizer/59009
1414 * sanitizer_common/sanitizer_platform_limits_posix.cc: Temporarily
1415 ifdef out more source.
1416
d00106f4
JJ
14172013-11-12 Jakub Jelinek <jakub@redhat.com>
1418
1419 * sanitizer_common/sanitizer_platform_limits_linux.cc: Temporarily
1420 ifdef out almost the whole source.
1421 * sanitizer_common/sanitizer_common_syscalls.inc: Likewise.
1422
e276866f
L
14232013-11-05 H.J. Lu <hongjiu.lu@intel.com>
1424
1425 PR sanitizer/59018
1426 * sanitizer_common/sanitizer_platform_limits_posix.cc
1427 (struct_user_fpxregs_struct_sz): Initialize to 0 if __x86_64__ is
1428 defined.
1429
f5c36cfc
L
14302013-11-05 H.J. Lu <hongjiu.lu@intel.com>
1431
1432 PR sanitizer/59018
1433 * sanitizer_common/sanitizer_platform_limits_linux.cc
1434 (struct_kernel_stat64_sz): Initialize to 0 if __x86_64__ is
1435 defined.
1436 * sanitizer_common/sanitizer_platform_limits_posix.h
1437 (__sanitizer_dirent): Use 64-bit d_ino/d_off if __x86_64__ is
1438 defined.
1439 (__sanitizer___kernel_uid_t): Typedef as unsigned if __x86_64__
1440 is defined.
1441 (__sanitizer___kernel_gid_t): Likewise.
1442 (__sanitizer___kernel_off_t): Typedef as long long if __x86_64__
1443 is defined.
1444
e45de14e
L
14452013-11-05 H.J. Lu <hongjiu.lu@intel.com>
1446
1447 PR sanitizer/59018
1448 * sanitizer_common/sanitizer_linux.cc (internal_clone): Allocate
1449 2 64-bit integers to save and restore fn and arg. Properly load
1450 newtls/child_tidptr into r8/r10.
1451
38693e39
L
14522013-11-05 H.J. Lu <hongjiu.lu@intel.com>
1453
1454 PR sanitizer/59018
1455 * sanitizer_common/sanitizer_linux.cc (internal_mmap,
1456 internal_munmap, internal_open, internal_read, internal_write,
1457 internal_stat, internal_lstat, internal_fstat, internal_readlink,
1458 internal_unlink, internal_execve, NanoTime, BlockingMutex::Lock,
1459 BlockingMutex::Unlock, internal_ptrace, internal_getdents,
1460 internal_sigaltstack): Cast pointers to uptr for 64-bit syscalls.
1461
ef1b3fda
KS
14622013-11-04 Kostya Serebryany <kcc@google.com>
1463
1464 * All source files: Merge from upstream r191666.
1465 * merge.sh: Added lsan.
1466 * configure.ac (AC_CONFIG_FILES): Added lsan.
1467 * Makefile.am (SUBDIRS): Added lsan.
1468 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new fles.
1469 * asan/Makefile.am (asan_files): Added new files.
1470 (libasan_la_LIBADD): Added a dependency on lsan.
1471 * lsan/Makefile.am: New file.
1472 * asan/Makefile.in: Regenerate.
1473 * lsan/Makefile.in: Regenerate.
1474 * Makefile.in: Regenerate.
1475 * configure: Regenerate.
1476 * sanitizer_common/Makefile.in: Regenerate.
1477
3cbe17f7
AM
14782013-09-20 Alan Modra <amodra@gmail.com>
1479
1480 * configure: Regenerate.
1481
0cea211e
IS
14822013-09-01 Iain Sandoe <iain@codesourcery.com>
1483
1484 * ubsan/Makefile.am (libubsan_la_LIBADD): Revise to omit
1485 libinterception.la for Darwin.
1486 * ubsan/Makefile.in: Regenerate.
1487
de5a5fa1
MP
14882013-08-30 Jakub Jelinek <jakub@redhat.com>
1489
1490 * Makefile.am (SUBDIRS): Add ubsan.
1491 * configure.ac (AC_CONFIG_FILES): Add ubsan/Makefile.
1492 * merge.sh: Merge ubsan.
1493 * sanitizer_common/sanitizer_report_decorator.h: Partial merge from trunk.
1494 * sanitizer_common/sanitizer_printf.cc: Likewise.
1495 * sanitizer_common/sanitizer_common.h: Likewise.
1496 * ubsan: New directory. Import ubsan runtime from llvm.
1497
634cfa2b
CL
14982013-06-03 Christophe Lyon <christophe.lyon@linaro.org>
1499
1500 * sanitizer_common/sanitizer_linux.cc (MemoryMappingLayout::Next):
1501 Cherry pick upstream r182922.
1502
8a5800b8
CL
15032013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
1504
1505 * configure.tgt: Add ARM pattern.
1506
a745e444 15072013-03-22 Jakub Jelinek <jakub@redhat.com>
1868beee
JJ
1508
1509 PR other/43620
1510 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
1511 * Makefile.in: Regenerated.
1512 * asan/Makefile.in: Regenerated.
1513 * interception/Makefile.in: Regenerated.
1514 * sanitizer_common/Makefile.in: Regenerated.
1515 * tsan/Makefile.in: Regenerated.
1516
4c376126
JJ
15172013-02-28 Jakub Jelinek <jakub@redhat.com>
1518
1519 * asan/asan_mapping.h (kMidMemEnd): Increase to 0x4fffffffffULL.
1520 * asan/asan_rtl.cc (__asan_init): Increase kMidMemEnd to
1521 0x4fffffffffULL.
1522
7d613735
JJ
15232013-02-22 Jakub Jelinek <jakub@redhat.com>
1524
1525 PR sanitizer/56393
1526 * asan/Makefile.am (nodist_toolexeclib_HEADERS): Set to
1527 libasan_preinit.o.
1528 (libasan_preinit.o): Depend on asan_preinit.o.
1529 * asan/Makefile.in: Regenerated.
1530 * asan/asan_preinit.cc: New file, synced from upstream.
1531 * asan/asan_rtl.cc: Remove preinit stuff, synced from upstream.
1532
ecdbd01a 15332013-02-21 Jack Howarth <howarth@bromo.med.uc.edu>
304886c5
JH
1534
1535 * asan/Makefile.am (libasan_la_SOURCES): Remove deprecated
1536 dynamic/asan_interceptors_dynamic.cc.
1537 * asan/Makefile.in: Regenerated.
1538 * merge.sh: Remove merge of deprecated lib/asan/dynamic.
1539
4be7da26
JJ
15402013-02-21 Jakub Jelinek <jakub@redhat.com>
1541
1542 * asan/asan_rtl.cc (__asan_preinit): Don't add if PIC macro is
1543 defined. Add used attribute.
1544
7df59255
KS
15452013-02-21 Kostya Serebryany <kcc@google.com>
1546
1547 * All source files: Merge from upstream r175733.
1548 * sanitizer_common/Makefile.am: Added a new file.
1549 * sanitizer_common/Makefile.in: Regenerated.
1550
8afd2ed7
L
15512013-02-14 H.J. Lu <hongjiu.lu@intel.com>
1552
1553 PR bootstrap/56327
1554 * interception/interception.h (OFF_T): Merged from upstream
1555 r175140.
1556
6422242b
JJ
15572013-02-13 Jakub Jelinek <jakub@redhat.com>
1558
1559 * asan/asan_mapping.h (SHADOW_OFFSET): Set to (1ULL << 44) on x86-64.
1560
b4ab7d34
KS
15612013-02-13 Kostya Serebryany <kcc@google.com>
1562
8afd2ed7 1563 PR sanitizer/56128
b4ab7d34
KS
1564 * All source files: Merge from upstream r175049.
1565 * interception/Makefile.am: added include path.
1566 * interception/Makefile.in: Regenerated.
1567
34dc17ed
JH
15682013-02-11 Jack Howarth <howarth@bromo.med.uc.edu>
1569
1570 * configure.tgt: Disable build on darwin9 and earlier.
1571
2660d12d
KS
15722013-01-23 Kostya Serebryany <kcc@google.com>
1573
8afd2ed7 1574 PR sanitizer/55989
2660d12d
KS
1575 * All source files: Merge from upstream r173241.
1576 * merge.sh: Support merging .inc files.
1577
19006c45
JJ
15782013-01-16 Jakub Jelinek <jakub@redhat.com>
1579
1580 * sanitizer_common/Makefile.am (AM_CXXFLAGS): Remove
1581 -Wno-c99-extensions.
1582 * interception/Makefile.am (AM_CXXFLAGS): Likewise.
1583 * asan/Makefile.am (AM_CXXFLAGS): Likewise.
1584 * sanitizer_common/Makefile.in: Regenerated.
1585 * interception/Makefile.in: Regenerated.
1586 * asan/Makefile.in: Regenerated.
1587
edadb734
WM
15882013-01-10 Wei Mi <wmi@google.com>
1589
1590 PR sanitizer/55488
1591 * tsan/Makefile.am: Add tsan_rtl_amd64.S.
1592 * tsan/Makefile.in: Regenerated.
1593 * tsan/tsan_rtl.h: Enable HACKY_CALL.
1594
e9772e16
KS
15952013-01-10 Kostya Serebryany <kcc@google.com>
1596
1597 * All source files: Merge from upstream r171973.
1598 * sanitizer_common/Makefile.am: Added new files.
1599 * asan/Makefile.am: Likewise.
1600 * tsan/Makefile.am: Likewise.
1601 * sanitizer_common/Makefile.in: Regenerated.
1602 * asan/Makefile.in: Likewise.
1603 * tsan/Makefile.in: Likewise.
1604
7f7162cf
L
16052013-01-07 H.J. Lu <hongjiu.lu@intel.com>
1606
1607 * asan/Makefile.am (libasan_la_LIBADD): Replace
1608 LIBSTDCXX_RAW_CXX_LDLAGS with LIBSTDCXX_RAW_CXX_LDFLAGS.
1609 * tsan/Makefile.am (libtsan_la_LIBADD): Likewise.
1610 * Makefile.in: Regenerated.
1611 * configure: Likewise.
1612 * asan/Makefile.in: Likewise.
1613 * interception/Makefile.in: Likewise.
1614 * sanitizer_common/Makefile.in: Likewise.
1615 * tsan/Makefile.in: Likewise.
1616
b488a2c7
L
16172012-12-12 H.J. Lu <hongjiu.lu@intel.com>
1618
1619 * Makefile.am (AM_MAKEFLAGS): Restored.
1620 * interception/Makefile.am: Likewise.
1621 * sanitizer_common/Makefile.am: Likewise.
1622 * tsan/Makefile.am: Likewise.
1623 * Makefile.in: Regenerated.
1624 * asan/Makefile.in: Likewise.
1625 * interception/Makefile.in: Likewise.
1626 * sanitizer_common/Makefile.in: Likewise.
1627 * tsan/Makefile.in: Likewise.
1628
e8adb21b
L
16292012-12-12 H.J. Lu <hongjiu.lu@intel.com>
1630
1631 * Makefile.am (MAKEOVERRIDES): Restored.
1632 * asan/Makefile.am: Likewise.
1633 * interception/Makefile.am: Likewise.
1634 * sanitizer_common/Makefile.am: Likewise.
1635 * tsan/Makefile.am: Likewise.
1636 * Makefile.in: Regenerated.
1637 * asan/Makefile.in: Likewise.
1638 * interception/Makefile.in: Likewise.
1639 * sanitizer_common/Makefile.in: Likewise.
1640 * tsan/Makefile.in: Likewise.
1641
e1e953d9
L
16422012-12-12 H.J. Lu <hongjiu.lu@intel.com>
1643
1644 * asan/Makefile.am (libasan_la_LIBADD): Use $(LIBSTDCXX_RAW_CXX_LDLAGS).
1645 * tsan/Makefile.am (libtsan_la_LIBADD): Likewise.
1646 * Makefile.in: Regenerated.
1647 * configure: Likewise.
1648 * asan/Makefile.in: Likewise.
1649 * interception/Makefile.in: Likewise.
1650 * sanitizer_common/Makefile.in: Likewise.
1651 * tsan/Makefile.in: Likewise.
1652
a62d3903
L
16532012-12-12 H.J. Lu <hongjiu.lu@intel.com>
1654
1655 * Makefile.am (AM_MAKEFLAGS): Removed.
1656 (MAKEOVERRIDES): Likewise.
1657 * asan/Makefile.am: Likewise.
1658 * interception/Makefile.am: Likewise.
1659 * sanitizer_common/Makefile.am: Likewise.
1660 * tsan/Makefile.am: Likewise.
1661 * Makefile.in: Regenerated.
1662 * asan/Makefile.in: Likewise.
1663 * interception/Makefile.in: Likewise.
1664 * sanitizer_common/Makefile.in: Likewise.
1665 * tsan/Makefile.in: Likewise.
1666
d10a2df2
L
16672012-12-11 H.J. Lu <hongjiu.lu@intel.com>
1668
1669 PR sanitizer/55533
1670 * Makefile.am (AM_MAKEFLAGS): Remove CC and CXX.
1671 * configure.ac (GCC_LIBSTDCXX_RAW_CXX_FLAGS): New.
1672 * asan/Makefile.am (AM_CXXFLAGS): Add $(LIBSTDCXX_RAW_CXX_CXXFLAGS).
1673 (AM_MAKEFLAGS): Remove CC and CXX.
1674 * interception/Makefile.am: Likewise.
1675 * sanitizer_common/Makefile.am: Likewise.
1676 * tsan/Makefile.am: Likewise.
1677 * Makefile.in: Regenerated.
1678 * aclocal.m4: Likewise.
1679 * configure: Likewise.
1680 * asan/Makefile.in: Likewise.
1681 * interception/Makefile.in: Likewise.
1682 * sanitizer_common/Makefile.in: Likewise.
1683 * tsan/Makefile.in: Likewise.
1684
957fee09
PB
16852012-12-06 Peter Bergner <bergner@vnet.ibm.com>
1686
1687 * configure.tgt: Enable build on powerpc*-linux.
1688
ecdbd01a 16892012-12-06 Jack Howarth <howarth@bromo.med.uc.edu>
3157880f
JH
1690
1691 PR 55599/sanitizer
d10a2df2
L
1692 * configure.ac: Set enable_static=no on darwin.
1693 * configure: Regenerated.
3157880f 1694
695edbac
KS
16952012-12-06 Kostya Serebryany <kcc@google.com>
1696
1697 * All files: Merge from upstream r169392.
1698
a0408454
KS
16992012-12-05 Kostya Serebryany <kcc@google.com>
1700
1701 * All files: Merge from upstream r169371.
1702
41d37c56 17032012-12-04 Kostya Serebryany <kcc@google.com>
ecdbd01a 1704 Jack Howarth <howarth@bromo.med.uc.edu>
8c4d267c
KS
1705
1706 PR 55521/sanitizer
1707 * configure.ac: Define USING_MAC_INTERPOSE when on darwin.
1708 * Makefile.am: Don't build interception subdir when
1709 USING_MAC_INTERPOSE defined.
1710 * asan/Makefile.am: Pass -DMAC_INTERPOSE_FUNCTIONS and
1711 -DMISSING_BLOCKS_SUPPORT when USING_MAC_INTERPOSE defined.
1712 Compile asan_interceptors_dynamic.cc but not libinterception
1713 when USING_MAC_INTERPOSE defined.
1714 * interception/Makefile.am: Remove usage of USING_MACH_OVERRIDE.
1715 * configure: Regenerated.
1716 * Makefile.in: Likewise.
1717 * asan/Makefile.in: Likewise.
1718 * interception/Makefile.in: Likewise.
1719 * asan/asan_intercepted_functions.h: Use MISSING_BLOCKS_SUPPORT.
1720 * asan/asan_mac.cc: Likewise.
1721 * asan/dynamic/asan_interceptors_dynamic.cc: Migrate from llvm
1722 and use MISSING_BLOCKS_SUPPORT.
1723 * merge.sh: Merge lib/asan/dynamic into asan/dynamic.
1724 * interception/mach_override/LICENSE.txt: Remove unused file.
1725 * interception/mach_override/mach_override.c: Likewise.
1726 * interception/mach_override/mach_override.h: Likewise.
1727 * interception/mach_override: Remove unused directory.
1728
a23ed040
L
17292012-11-28 H.J. Lu <hongjiu.lu@intel.com>
1730
1731 * Makefile.am (AM_MAKEFLAGS): Restore CC and CXX.
1732 * configure.ac (ACX_NONCANONICAL_TARGET): Removed.
1733 * asan/Makefile.am (AM_CXXFLAGS): Remove -I for libstdc++-v3 header
1734 files.
1735 (AM_MAKEFLAGS): Restore CC and CXX.
1736 * interception/Makefile.am: Likewise.
1737 * sanitizer_common/Makefile.am: Likewise.
1738 * tsan/Makefile.am: Likewise.
1739 * Makefile.in: Regenerated.
1740 * aclocal.m4: Likewise.
1741 * configure: Likewise.
1742 * asan/Makefile.in: Likewise.
1743 * interception/Makefile.in: Likewise.
1744 * sanitizer_common/Makefile.in: Likewise.
1745 * tsan/Makefile.in: Likewise.
1746
2ed685b8
L
17472012-11-28 H.J. Lu <hongjiu.lu@intel.com>
1748
1749 * Makefile.am (AM_MAKEFLAGS): Remove CC and CXX.
1750 * configure.ac (ACX_NONCANONICAL_TARGET): New.
1751 * asan/Makefile.am (AM_CXXFLAGS): Add -I for libstdc++-v3 header
1752 files.
1753 (AM_MAKEFLAGS): Remove CC and CXX.
1754 * interception/Makefile.am: Likewise.
1755 * sanitizer_common/Makefile.am: Likewise.
1756 * tsan/Makefile.am: Likewise.
1757 * Makefile.in: Regenerated.
1758 * aclocal.m4: Likewise.
1759 * configure: Likewise.
1760 * asan/Makefile.in: Likewise.
1761 * interception/Makefile.in: Likewise.
1762 * sanitizer_common/Makefile.in: Likewise.
1763 * tsan/Makefile.in: Likewise.
1764
4ba5ca46
KS
17652012-11-27 Kostya Serebryany <kcc@google.com>
1766
1767 * All files: Merge from upstream r168699.
1768
41d37c56 17692012-11-24 Kostya Serebryany <kcc@google.com>
ecdbd01a 1770 Jack Howarth <howarth@bromo.med.uc.edu>
f246eadc
JH
1771
1772 * interception/mach_override/mach_override.c: Migrate from llvm.
1773 * interception/mach_override/mach_override.h: Likewise.
1774 * interception/mach_override/LICENSE.txt: Likewise.
1775 * configure.tgt: Add darwin to supported targets.
1776 * configure.ac: Define USING_MACH_OVERRIDE when on darwin.
1777 * interception/Makefile.am: Compile mach_override.c when
1778 USING_MACH_OVERRIDE defined.
1779 * configure: Regenerated.
1780 * interception/Makefile.in: Likewise.
1781
9cb5411c
L
17822012-11-23 H.J. Lu <hongjiu.lu@intel.com>
1783
1784 PR sanitizer/55450
1785 * tsan/Makefile.am (gcc_version): New.
1786 * tsan/Makefile.in: Regenerated.
1787
3409d40e 17882012-11-23 Kostya Serebryany <kcc@google.com>
9cb5411c 1789
e297eb60
KS
1790 * merge.sh: Support tsan, support added/removed files.
1791 * tsan/Makefile.am: Remove tsan_printf.cc.
1792 * tsan/Makefile.in: Regenerated.
1793 * other files: Merge from upstream r168514.
1794
17952012-11-23 Kostya Serebryany <kcc@google.com>
9cb5411c 1796
e297eb60 1797 * merge.sh: New file.
3409d40e 1798
64548f3b
JJ
17992012-11-23 Jakub Jelinek <jakub@redhat.com>
1800
1801 * tsan/Makefile.am (AM_CXXFLAGS): Remove -Wno-variadic-macros.
1802 * Makefile.am (SUBDIRS): Guard tsan addition with TSAN_SUPPORTED
1803 automake conditional instead of !MULTISUBDIR32.
1804 * configure.tgt: Set TSAN_SUPPORTED=yes for x86_64/i686-linux
1805 for 64-bit multilib.
1806 * configure.ac: Check for void * size, source in configure.tgt,
1807 define TSAN_SUPPORTED conditional instead of MULTILIBDIR32.
1808 * configure: Regenerated.
1809 * Makefile.in: Regenerated.
1810 * tsan/Makefile.in: Regenerated.
1811
cd0be65c
WM
18122012-11-22 Wei Mi <wmi@google.com>
1813
1814 * tsan: New directory. Import tsan runtime from llvm.
1815 * configure.ac: Add 64 bits tsan build.
1816 * Makefile.am: Likewise.
1817 * configure: Regenerated.
1818 * Makefile.in: Likewise.
1819
5cba83a8
KS
18202012-11-21 Kostya Serebryany <kcc@google.com>
1821
9cb5411c 1822 * README.gcc: Extend the README.gcc with mode details.
5cba83a8 1823
b014e124
KS
18242012-11-20 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
1825
1826 * sanitizer_common/sanitizer_linux.cc
1827 (SANITIZER_LINUX_USES_64BIT_SYSCALLS): Define.
1828 (internal_mmap): Use it.
1829 (internal_filesize): Likewise.
1830
2b723e21
TT
18312012-11-16 Tom Tromey <tromey@redhat.com>
1832
1833 * configure.ac: Invoke AM_MAINTAINER_MODE.
1834 * aclocal.m4, configure, Makefile.in, asan/Makefile.in,
1835 interception/Makefile.in, sanitizer_common/Makefile.in: Rebuild.
1836
d1caed14
L
18372012-11-16 H.J. Lu <hongjiu.lu@intel.com>
1838
1839 PR other/55333
1840 * include/sanitizer/common_interface_defs.h (uhwptr): New type
1841 for hardware pointer.
1842 * sanitizer_common/sanitizer_stacktrace.cc (StackTrace::FastUnwindStack):
1843 Replace uptr with uhwptr for stack unwind.
1844
f3754998
DS
18452012-11-16 Dodji Seketeli <dodji@redhat.com>
1846
1847 * configure.tgt: Enable build on sparc linux.
1848
f64bcb29
L
18492012-11-15 H.J. Lu <hongjiu.lu@intel.com>
1850
1851 * configure.ac: Properly set MULTISUBDIR.
1852 * asan/Makefile.am (gcc_version): New.
1853 * interception/Makefile.am (gcc_version): Likewise.
1854 * sanitizer_common/Makefile.am (gcc_version): Likewise.
1855 * configure: Regenerated.
1856 * asan/Makefile.in: Likewise.
1857 * interception/Makefile.in: Likewise.
1858 * sanitizer_common/Makefile.in: Likewise.
1859
2a6346c4
L
18602012-11-14 H.J. Lu <hongjiu.lu@intel.com>
1861
1862 PR other/55291
1863 * configure.ac (--enable-version-specific-runtime-libs): New option.
1864 (AC_CANONICAL_SYSTEM): New.
1865 (AM_ENABLE_MULTILIB): Moved right after AM_INIT_AUTOMAKE.
1866 (toolexecdir): Support multilib.
1867 (toolexeclibdir): Likewise.
1868 (multilib_arg): New.
1869 * Makefile.in: Regenerated.
1870 * aclocal.m4: Likewise.
1871 * configure: Likewise.
1872 * asan/Makefile.in: Likewise.
1873 * interception/Makefile.in: Likewise.
1874 * sanitizer_common/Makefile.in: Likewise.
1875
4a56a7be
L
18762012-11-14 H.J. Lu <hongjiu.lu@intel.com>
1877
1878 PR other/55292
1879 Backport from upstream revision 167883
1880 * sanitizer_common/sanitizer_linux.cc (internal_mmap): Check
1881 __x86_64__ instead of __WORDSIZE.
1882 (internal_filesize): Likwise.
1883
4053ca2c
L
18842012-11-14 H.J. Lu <hongjiu.lu@intel.com>
1885
1886 * configure.ac (AC_CONFIG_AUX_DIR): Removed.
1887 * Makefile.in: Regenerated.
1888 * configure: Likewise.
1889
a2479b3d
L
18902012-11-13 H.J. Lu <hongjiu.lu@intel.com>
1891
1892 PR other/55304
1893 * acinclude.m4: New file.
1894 * Makefile.am (ACLOCAL_AMFLAGS): New.
1895 * configure.ac (AC_PREREQ): Set to 2.64.
1896 (AC_CONFIG_AUX_DIR): Set to "..".
1897 * Makefile.in: Regenerated.
1898 * aclocal.m4: Likewise.
1899 * configure: Likewise.
1900 * asan/Makefile.in: Likewise.
1901 * interception/Makefile.in: Likewise.
1902 * sanitizer_common/Makefile.in: Likewise.
1903
1904 * config.guess: Removed.
1905 * config.sub: Likewise.
1906 * depcomp: Likewise.
1907 * install-sh: Likewise.
1908 * ltmain.sh: Likewise.
1909 * missing: Likewise.
1910
93bf5390
RH
19112012-11-13 Richard Henderson <rth@redhat.com>
1912
1913 * configure.tgt: New file.
1914
d2860e72
DM
19152012-11-12 David S. Miller <davem@davemloft.net>
1916
1917 * asan/asan_linux.cc (GetPcSpBp): Add sparc support.
1918
f35db108
WM
19192012-10-29 Wei Mi <wmi@google.com>
1920
1921 Initial checkin: migrate asan runtime from llvm.