]> git.ipfire.org Git - thirdparty/gcc.git/blame - libsanitizer/ChangeLog
[PATCH, rs6000] Disable ASLR in sanitizer on powerpc64.
[thirdparty/gcc.git] / libsanitizer / ChangeLog
CommitLineData
39abbb86
BS
12018-11-08 Bill Seurer <seurer@linux.vnet.ibm.com>
2
3 * libsanitizer/sanitizer_common/sanitizer_linux.cc (CheckASLR):
4 Disable ASLR for powerpc64 when using sanitizers.
5
aaabfd71
RO
62018-11-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7
8 PR sanitizer/80953
9 * configure.tgt (sparc*-*-solaris2.11*): Enable.
10 (x86_64-*-solaris2.11* | i?86-*-solaris2.11*): Enable.
11
0b5ccc80
RO
122018-11-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13
14 PR sanitizer/80953
15 * sanitizer_common/sanitizer_internal_defs.h,
16 sanitizer_common/sanitizer_platform_limits_solaris.h,
17 sanitizer_common/sanitizer_procmaps_solaris.cc,
18 sanitizer_common/sanitizer_solaris.cc: Cherry-pick compiler-rt
19 revision 346153.
20 * sanitizer_common/sanitizer_stacktrace.h,
21 sanitizer_common/sanitizer_stacktrace_sparc.cc: Cherry-pick
22 compiler-rt revision 346155.
23
b40a67df
SB
242018-11-05 Segher Boessenkool <segher@kernel.crashing.org>
25
26 * LOCAL_PATCHES: Add r258525.
27 * sanitizer_common/sanitizer_stacktrace.cc
28 (BufferedStackTrace::FastUnwindStack): Use the correct frame offset
29 for PowerPC SYSV ABI.
30
6388cb29
ML
312018-11-05 Martin Liska <mliska@suse.cz>
32
33 PR sanitizer/87860
34 * sanitizer_common/sanitizer_linux.cc: Cherry-pick upstream
35 r346129.
36
22e05272
JM
372018-10-31 Joseph Myers <joseph@codesourcery.com>
38
39 PR bootstrap/82856
40 * Makefile.am: Include multilib.am.
41 * configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
42 * Makefile.in, aclocal.m4, asan/Makefile.in, configure,
43 interception/Makefile.in, libbacktrace/Makefile.in,
44 lsan/Makefile.in, sanitizer_common/Makefile.in, tsan/Makefile.in,
45 ubsan/Makefile.in: Regenerate.
46
088371bf
ML
472018-10-31 Martin Liska <mliska@suse.cz>
48
49 * LOCAL_PATCHES: Update to installed revisions.
50
c244886c
ML
512018-10-31 Martin Liska <mliska@suse.cz>
52
53 * ubsan/ubsan_platform.h: Add ifndef as we define it with
54 -DCAN_SANITIZE_UB CFLAGS.
55
f607b87c
ML
562018-10-31 Martin Liska <mliska@suse.cz>
57
58 * asan/asan_mapping.h: Revert shadow memory offset to 1 << 41.
59
e63c9677
ML
602018-10-31 Martin Liska <mliska@suse.cz>
61
62 * LOCAL_PATCHES: Update patch list.
63 * asan/asan_globals.cc (CheckODRViolationViaIndicator): Apply
64 patches from GCC's trunk.
65 (CheckODRViolationViaPoisoning): Likewise.
66 (RegisterGlobal): Likewise.
67 * sanitizer_common/sanitizer_mac.cc (defined): Likewise.
68 * sanitizer_common/sanitizer_stacktrace.cc (GetCanonicFrame): Likewise.
69 * ubsan/ubsan_handlers.cc (__ubsan::__ubsan_handle_cfi_bad_icall): Likewise.
70 (__ubsan::__ubsan_handle_cfi_bad_icall_abort): Likewise.
71 * ubsan/ubsan_handlers.h (struct CFIBadIcallData): Likewise.
72 (struct CFICheckFailData): Likewise.
73 (RECOVERABLE): Likewise.
74
8468f944
ML
752018-10-31 Martin Liska <mliska@suse.cz>
76
77 * config.h.in: Regenerate.
78 * configure: Likewise.
79 * sanitizer_common/Makefile.am: Include new files, remove old
80 files.
81 * sanitizer_common/Makefile.in: Regenerate.
82 * ubsan/Makefile.am: Include new files, remove old
83 files.
84 * ubsan/Makefile.in: Likewise.
85 * asan/Makefile.am: Include new files.
86 * asan/Makefile.in: Regenerate.
87
eac97531
ML
882018-10-31 Martin Liska <mliska@suse.cz>
89
90 * All source files: Merge from upstream 345033.
91
95fba530
ML
922018-10-31 Martin Liska <mliska@suse.cz>
93
94 * HOWTO_MERGE: Enhance documentation.
95 * merge.sh: Add support for git as well.
96
b4f1f01d
ML
972018-08-02 Martin Liska <mliska@suse.cz>
98
92a285c1 99 PR sanitizer/86022
b4f1f01d 100 * sanitizer_common/sanitizer_linux_libcdep.cc (ThreadDescriptorSize):
92a285c1 101 Cherry-pick compiler-rt revision 338606.
b4f1f01d 102
c191b1ab
MP
1032018-08-01 Marek Polacek <polacek@redhat.com>
104
105 PR sanitizer/86759
106 * tsan/tsan_platform.h: Cherry-pick compiler-rt revision 318044.
107 * tsan/tsan_platform_linux.cc: Cherry-pick compiler-rt revision
108 319180.
109
c83b4b82
L
1102018-07-25 H.J. Lu <hongjiu.lu@intel.com>
111
112 PR target/86560
113 * asan/asan_interceptors.cc (swapcontext) Cherry-pick
114 compiler-rt revision 337603.
115 * sanitizer_common/sanitizer_internal_defs.h (__has_attribute):
116 Likewise.
117
bdfc619e
JJ
1182018-07-05 Jakub Jelinek <jakub@redhat.com>
119
120 Revert
121 2018-07-04 Maxim Ostapenko <m.ostapenko@samsung.com>
122
123 PR sanitizer/84250
124 * Makefile.am: Reorder libs.
125 * Makefile.in: Regenerate.
126 * asan/Makefile.am: Define DCAN_SANITIZE_UB=1, add dependancy from
127 libsanitizer_ubsan.la.
128 * asan/Makefile.in: Regenerate.
129 * ubsan/Makefile.am: Define new libsanitizer_ubsan.la library.
130 * ubsan/Makefile.in: Regenerate.
131
ca8dd9f2
MO
1322018-07-04 Maxim Ostapenko <m.ostapenko@samsung.com>
133
134 PR sanitizer/84250
135 * Makefile.am: Reorder libs.
136 * Makefile.in: Regenerate.
137 * asan/Makefile.am: Define DCAN_SANITIZE_UB=1, add dependancy from
138 libsanitizer_ubsan.la.
139 * asan/Makefile.in: Regenerate.
140 * ubsan/Makefile.am: Define new libsanitizer_ubsan.la library.
141 * ubsan/Makefile.in: Regenerate.
142
3b07c0e5
DK
1432018-06-13 Denis Khalikov <d.khalikov@partner.samsung.com>
144
92a285c1
ML
145 PR sanitizer/86090
146 * configure.ac: Check for lstat and readlink.
147 * configure, config.h.in: Rebuild.
3b07c0e5 148
5b87c1fe
MK
1492018-05-31 Matthias Klose <doko@ubuntu.com>
150
151 PR sanitizer/86012
152 * sanitizer_common/sanitizer_platform_limits_posix.cc: Define
153 SIZEOF_STRUCT_USTAT for 32bit sparc.
154
71b55d45
L
1552018-05-24 H.J. Lu <hongjiu.lu@intel.com>
156
157 PR sanitizer/85835
158 * sanitizer_common/sanitizer_platform_limits_posix.cc: Don't
159 include <sys/ustat.h> for Linux.
160 (SIZEOF_STRUCT_USTAT): New.
161 (struct_ustat_sz): Use SIZEOF_STRUCT_USTAT for Linux.
162
bc40f166
HPN
1632018-04-26 Hans-Peter Nilsson <hp@axis.com>
164
752361c9
HPN
165 * configure.tgt <mips*-*-linux*>: Enable build, excluding
166 mips*64*-*-linux*.
167
9f943b24
HPN
168 * sanitizer_common/sanitizer_platform_limits_linux.cc: Do not
169 take the shortcut to #include <sys/stat.h> for MIPS instead of
170 the kernel <asm/stat.h>. Explain why sys/stat.h is misleading
171 or wrong to get the kernel struct stat.
172 * sanitizer_common/sanitizer_platform_limits_posix.h [__mips__]:
173 Correct the value for 32-bit non-android struct_kernel_stat_sz.
174
bc40f166
HPN
175 * sanitizer_common/sanitizer_atomic_clang_other.h [_MIPS_SIM
176 && _MIPS_SIM == _ABIO32] (lock): Add initializer for .pad member.
177
7b47ecf2
L
1782018-04-24 H.J. Lu <hongjiu.lu@intel.com>
179
180 * configure: Regenerated.
181
a0e1df88
JJ
1822018-04-19 Jakub Jelinek <jakub@redhat.com>
183
184 * configure: Regenerated.
185
001ddaa8
DM
1862018-04-18 David Malcolm <dmalcolm@redhat.com>
187
188 PR jit/85384
189 * configure: Regenerate.
190
19ddb884
BS
1912018-04-18 Bill Seurer <seurer@linux.vnet.ibm.com>
192
193 PR sanitizer/85389
194 * asan/asan_allocator.h (kAllocatorSpace): For __powerpc64__ change
195 from 0xa0000000000ULL to ~(uptr)0.
196
359ea407
JJ
1972018-03-19 Jakub Jelinek <jakub@redhat.com>
198
199 PR sanitizer/84761
200 * sanitizer_common/sanitizer_linux_libcdep.cc (__GLIBC_PREREQ):
201 Define if not defined.
202 (DL_INTERNAL_FUNCTION): Don't define.
203 (InitTlsSize): For __i386__ if not compiled against glibc 2.27+
204 determine at runtime whether to use regparm(3), stdcall calling
205 convention for older glibcs or normal calling convention for
206 newer glibcs for call to _dl_get_tls_static_info.
207
1422855a
SB
2082018-03-14 Segher Boessenkool <segher@kernel.crashing.org>
209
210 * sanitizer_common/sanitizer_stacktrace.cc
211 (BufferedStackTrace::FastUnwindStack): Use the correct frame offset
212 for PowerPC SYSV ABI.
213
14e335ed
IT
2142018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
215
216 PR target/84148
217 * configure: Regenerate.
218
4c4f3c3f
ML
2192018-02-05 Martin Liska <mliska@suse.cz>
220
221 * asan/asan_flags.inc: Cherry-pick upstream r323995.
222 * asan/asan_report.cc (CheckForInvalidPointerPair):
223 Cherry-pick upstream r323995.
224
2d509539
RO
2252018-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
226
227 PR sanitizer/82825
228 * sanitizer_common/sanitizer_internal_defs.h: Cherry-pick upstream
9dfc6e83 229 r324284.
2d509539 230
1f7273e5
RO
2312018-01-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
232
233 PR sanitizer/82824
234 * lsan/lsan_common_mac.cc: Cherry-pick upstream r322437.
235
05abad4c
ML
2362017-12-05 Martin Liska <mliska@suse.cz>
237 Jakub Jelinek <jakub@redhat.com>
238
239 * asan/asan_descriptions.cc: Cherry-pick upstream r319668.
240 * asan/asan_descriptions.h: Likewise.
241 * asan/asan_report.cc: Likewise.
242 * asan/asan_thread.cc: Likewise.
243 * asan/asan_thread.h: Likewise.
244
9069eb28
IT
2452017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
246
247 * acinclude.m4: Add enable.m4 and cet.m4.
248 * Makefile.in: Regenerate.
249 * asan/Makefile.am: Update AM_CXXFLAGS.
250 * asan/Makefile.in: Regenerate.
251 * configure: Likewise.
252 * configure.ac: Set CET_FLAGS. Update EXTRA_CFLAGS,
253 EXTRA_CXXFLAGS, EXTRA_ASFLAGS.
254 * interception/Makefile.am: Update AM_CXXFLAGS.
255 * interception/Makefile.in: Regenerate.
256 * libbacktrace/Makefile.am: Update AM_CFLAGS, AM_CXXFLAGS.
257 * libbacktrace/Makefile.in: Regenerate.
258 * lsan/Makefile.am: Update AM_CXXFLAGS.
259 * lsan/Makefile.in: Regenerate.
260 * sanitizer_common/Makefile.am: Update AM_CXXFLAGS,
261 AM_CCASFLAGS.
262 * sanitizer_common/sanitizer_linux_x86_64.S: Include cet.h.
263 Add _CET_ENDBR macro.
264 * sanitizer_common/Makefile.in: Regenerate.
265 * tsan/Makefile.am: Update AM_CXXFLAGS.
266 * tsan/Makefile.in: Regenerate.
267 * tsan/tsan_rtl_amd64.S Include cet.h. Add _CET_ENDBR macro.
268 * ubsan/Makefile.am: Update AM_CXXFLAGS.
269 * ubsan/Makefile.in: Regenerate.
270
5925290f
JJ
2712017-11-08 Jakub Jelinek <jakub@redhat.com>
272
273 PR bootstrap/82670
274 * ubsan/Makefile.am (ubsan_files): Remove ubsan_init_standalone.cc
275 and ubsan_signals_standalone.cc.
276 * ubsan/Makefile.in: Regenerated.
277
735e62b9
TV
2782017-11-05 Tom de Vries <tom@codesourcery.com>
279
280 PR other/82784
281 * asan/asan_poisoning.cc (CHECK_SMALL_REGION): Remove semicolon after
282 "do {} while (0)".
283 * lsan/lsan_common.cc (LOG_POINTERS, LOG_THREADS): Same.
284
9a45ffbd
JJ
2852017-10-20 Jakub Jelinek <jakub@redhat.com>
286
287 PR sanitizer/82595
288 * lsan/lsan.h (__lsan_init): Add SANITIZER_INTERFACE_ATTRIBUTE.
289 * lsan/Makefile.am (nodist_toolexeclib_HEADERS): Add
290 liblsan_preinit.o.
291 (lsan_files): Remove lsan_preinit.cc.
292 (liblsan_preinit.o): New rule.
293 * lsan/Makefile.in: Regenerated.
294
5d3805fc
JJ
2952017-10-19 Jakub Jelinek <jakub@redhat.com>
296
297 * All source files: Merge from upstream 315899.
92a285c1 298 * asan/Makefile.am (nodist_saninclude_HEADERS): Add
5d3805fc 299 include/sanitizer/tsan_interface.h.
92a285c1 300 * asan/libtool-version: Bump the libasan SONAME.
5d3805fc
JJ
301 * lsan/Makefile.am (sanitizer_lsan_files): Add lsan_common_mac.cc.
302 (lsan_files): Add lsan_linux.cc, lsan_mac.cc and lsan_malloc_mac.cc.
92a285c1 303 * sanitizer_common/Makefile.am (sanitizer_common_files): Add
5d3805fc
JJ
304 sancov_flags.cc, sanitizer_allocator_checks.cc,
305 sanitizer_coverage_libcdep_new.cc, sanitizer_errno.cc,
306 sanitizer_file.cc, sanitizer_mac_libcdep.cc and
307 sanitizer_stoptheworld_mac.cc. Remove sanitizer_coverage_libcdep.cc
308 and sanitizer_coverage_mapping_libcdep.cc.
92a285c1 309 * tsan/Makefile.am (tsan_files): Add tsan_external.cc.
5d3805fc
JJ
310 * ubsan/Makefile.am (DEFS): Add -DUBSAN_CAN_USE_CXXABI=1.
311 (ubsan_files): Add ubsan_init_standalone.cc and
312 ubsan_signals_standalone.cc.
313 * ubsan/libtool-version: Bump the libubsan SONAME.
92a285c1
ML
314 * asan/Makefile.in: Regenerate.
315 * lsan/Makefile.in: Regenerate.
316 * sanitizer_common/Makefile.in: Regenerate.
317 * tsan/Makefile.in: Regenerate.
5d3805fc
JJ
318 * ubsan/Makefile.in: Regenerate.
319
bf4df9e6
L
3202017-10-05 H.J. Lu <hongjiu.lu@intel.com>
321
322 PR sanitizer/82379
323 * configure.tgt (SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS): Set
324 to sanitizer_linux_x86_64.lo if __x86_64__ is defined by $CC.
325
d1453bec
JJ
3262017-10-02 Jakub Jelinek <jakub@redhat.com>
327
328 * libbacktrace/backtrace-rename.h (backtrace_uncompress_zdebug):
329 Define.
330
a5320f3c
JJ
3312017-08-07 Jakub Jelinek <jakub@redhat.com>
332
333 * include/system/sys/ptrace.h: New file.
334
c9b39a49
JJ
3352017-07-28 Jakub Jelinek <jakub@redhat.com>
336
337 PR sanitizer/80998
338 * ubsan/ubsan_handlers.cc: Cherry-pick upstream r304461.
339 * ubsan/ubsan_checks.inc: Likewise.
340 * ubsan/ubsan_handlers.h: Likewise.
341
144e36a7
JJ
3422017-07-14 Jakub Jelinek <jakub@redhat.com>
343
344 PR sanitizer/81066
345 * sanitizer_common/sanitizer_linux.h: Cherry-pick upstream r307969.
346 * sanitizer_common/sanitizer_linux.cc: Likewise.
347 * sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc: Likewise.
348 * tsan/tsan_platform_linux.cc: Likewise.
349
d9f8c5af
ML
3502017-04-06 Martin Liska <mliska@suse.cz>
351
352 PR sanitizer/80166
353 * sanitizer_common/sanitizer_common_interceptors.inc (INTERCEPTOR):
354 Cherry-pick upstream r299036.
355
fd6cba40
JJ
3562017-03-22 Jakub Jelinek <jakub@redhat.com>
357
358 PR sanitizer/78158
359 * tsan/tsan_interface_atomic.cc: Cherry-pick upstream r298378.
360
9b9ad360
AT
3612017-02-16 Andreas Tobler <andreast@gcc.gnu.org>
362
363 PR sanitizer/79562
364 * sanitizer_common/sanitizer_platform_limits_posix.cc: Cherry-pick
365 upstream r294806.
366
1509524b
JJ
3672017-02-11 Jakub Jelinek <jakub@redhat.com>
368
369 PR sanitizer/79341
370 * configure.tgt (s390*-*-linux*): Don't disable libsanitizer on
371 s390-linux 31-bit.
372 * sanitizer_common/sanitizer_internal_defs.h: Cherry-pick upstream
373 r294793.
374 * sanitizer_common/sanitizer_common_interceptors.inc: Cherry-pick
375 upstream r294790.
376 * sanitizer_common/sanitizer_linux_s390.cc: Cherry-pick upstream
377 r294799.
378
778e0ac3
MO
3792017-02-03 Maxim Ostapenko <m.ostapenko@samsung.com>
380
381 PR sanitizer/78663
382 * sanitizer_common/sanitizer_mac.cc: Cherry-pick upstream r293992.
383 * sanitizer_common/sanitizer_platform_interceptors.h: Likewise.
384
4997a71d
JJ
3852017-01-31 Jakub Jelinek <jakub@redhat.com>
386
387 * configure.tgt: Enable asan and ubsan on 64-bit s390*-*-linux*.
388
86b2a558
JJ
3892017-01-24 Jakub Jelinek <jakub@redhat.com>
390
c831801d
JJ
391 * configure.tgt: Enable tsan and lsan on powerpc64{,le}-*-linux*.
392
86b2a558
JJ
393 PR sanitizer/79168
394 * merge.sh (change_comment_headers): Don't remove 2nd and 3rd line
395 if the 3rd line doesn't contain 'The LLVM Compiler Infrastructure'
396 text.
397 * sanitizer_common/sanitizer_linux_mips64.S: Regenerated.
398 * sanitizer_common/sanitizer_linux_x86_64.S: Likewise.
399 * tsan/tsan_ppc_regs.h: Likewise.
400 * tsan/tsan_rtl_aarch64.S: Likewise.
401 * tsan/tsan_rtl_mips64.S: Likewise.
402 * tsan/tsan_rtl_ppc64.S: Likewise.
403
73aa401e
JJ
4042017-01-21 Jakub Jelinek <jakub@redhat.com>
405
406 PR other/79046
407 * interception/Makefile.am (gcc_version): Use @get_gcc_base_ver@
408 instead of cat to get version from BASE-VER file.
409 * asan/Makefile.am (gcc_version): Likewise.
410 * ubsan/Makefile.am (gcc_version): Likewise.
411 * sanitizer_common/Makefile.am (gcc_version): Likewise.
412 * lsan/Makefile.am (gcc_version): Likewise.
413 * tsan/Makefile.am (gcc_version): Likewise.
414 * interception/Makefile.in: Regenerated.
415 * asan/Makefile.in: Regenerated.
416 * ubsan/Makefile.in: Regenerated.
417 * sanitizer_common/Makefile.in: Regenerated.
418 * lsan/Makefile.in: Regenerated.
419 * tsan/Makefile.in: Regenerated.
420
3c36aa6b
JJ
4212017-01-17 Jakub Jelinek <jakub@redhat.com>
422
423 PR other/79046
424 * configure.ac: Add GCC_BASE_VER.
425 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
426 get version from BASE-VER file.
427 * libbacktrace/Makefile.in: Regenerated.
428 * interception/Makefile.in: Regenerated.
429 * asan/Makefile.in: Regenerated.
430 * ubsan/Makefile.in: Regenerated.
431 * configure: Regenerated.
432 * sanitizer_common/Makefile.in: Regenerated.
433 * lsan/Makefile.in: Regenerated.
434 * Makefile.in: Regenerated.
435 * tsan/Makefile.in: Regenerated.
436
942136a4
JC
4372017-01-10 James Clarke <jrtc27@jrtc27.com>
438
439 PR sanitizer/78992
440 * sanitizer_common/sanitizer_platform_limits_posix.h
441 (struct __sanitizer_sigaction): Cherry-pick upstream r291561.
442
11bbe995
MO
4432016-11-30 Maxim Ostapenko <m.ostapenko@samsung.com>
444
445 * LOCAL_PATCHES: Add revision.
446
d61ed91e
MO
4472016-11-30 Maxim Ostapenko <m.ostapenko@samsung.com>
448
449 PR sanitizer/78532
450 * sanitizer_common/sanitizer_platform_limits_posix.h
451 (__sanitizer_sigaction): Adjust for sparc targets and various Glibc
452 versions.
453
f4214e23
MT
4542016-11-29 Markus Trippelsdorf <markus@trippelsdorf.de>
455
456 * LOCAL_PATCHES: Remove r242480.
457
00212843
RO
4582016-11-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
459
460 * LOCAL_PATCHES: Add revision.
461
97448adf
RO
4622016-11-20 Jack Howarth <howarth.at.gcc@gmail.com>
463
464 PR sanitizer/78267
465 * sanitizer_common/sanitizer_mac.cc: Include <os/trace.h> only if
466 compiler supports blocks extension.
467
61a58d07
MT
4682016-11-16 Markus Trippelsdorf <markus@trippelsdorf.de>
469
470 * LOCAL_PATCHES: Add revision.
471
8c32ae0e
MT
4722016-11-16 Markus Trippelsdorf <markus@trippelsdorf.de>
473
474 PR sanitizer/78294
475 * tsan/tsan_rtl.cc: Add missing attribute.
476
949cc52d
MO
4772016-11-16 Maxim Ostapenko <m.ostapenko@samsung.com>
478
479 * LOCAL_PATCHES: New file.
480
511c8687
MO
4812016-11-16 Maxim Ostapenko <m.ostapenko@samsung.com>
482
483 PR sanitizer/78307
484 * ubsan/ubsan_handlers.cc (__ubsan_handle_cfi_bad_icall): New function.
485 ( __ubsan_handle_cfi_bad_icall_abort): Likewise.
486 * ubsan/ubsan_handlers.h (struct CFIBadIcallData): New type.
487 * ubsan/ubsan_handlers_cxx.cc (__ubsan_handle_cfi_bad_type): New
488 function.
489 (__ubsan_handle_cfi_bad_type_abort): Likewise.
490 * ubsan/ubsan_handlers_cxx.h (struct CFIBadTypeData): New type.
491 (__ubsan_handle_cfi_bad_type): Export function.
492 (__ubsan_handle_cfi_bad_type_abort): Likewise.
493 * HOWTO_MERGE: Update documentation.
494
84c1b9d3
MK
4952016-11-15 Matthias Klose <doko@ubuntu.com>
496
497 * configure: Regenerate.
498
8f16b6ca
MO
4992016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
500
501 * asan/asan_globals.cc (RegisterGlobal): Do not call
502 CheckODRViolationViaPoisoning.
503 (CheckODRViolationViaPoisoning): Remove.
504
789306de
MO
5052016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
506
507 * sanitizer_common/sanitizer_stacktrace.cc (GetCanonicFrame): Assume we
508 compiled code with GCC when extracting the caller PC for ARM if no
509 valid frame pointer is available.
510
fe7913f6
MO
5112016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
512
513 PR sanitizer/63958
514 Reapply:
515 2014-10-14 David S. Miller <davem@davemloft.net>
516
517 * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t):
518 Define at __kernel_time_t, as needed for sparc.
519 (struct __old_kernel_stat): Don't check if __sparc__ is defined.
520 * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
521 (__sanitizer): Define struct___old_kernel_stat_sz,
522 struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc.
523 (__sanitizer_ipc_perm): Adjust for sparc targets.
524 (__sanitizer_shmid_ds): Likewsie.
525 (__sanitizer_sigaction): Likewise.
526 (IOC_SIZE): Likewsie.
527
10189819
MO
5282016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
529
530 * All source files: Merge from upstream 285547.
531 * configure.tgt (SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS): New
532 variable.
533 * configure.ac (SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS): Handle it.
534 * asan/Makefile.am (asan_files): Add new files.
535 * asan/Makefile.in: Regenerate.
536 * ubsan/Makefile.in: Likewise.
537 * lsan/Makefile.in: Likewise.
538 * tsan/Makefile.am (tsan_files): Add new files.
539 * tsan/Makefile.in: Regenerate.
540 * sanitizer_common/Makefile.am (sanitizer_common_files): Add new files.
541 (EXTRA_libsanitizer_common_la_SOURCES): Define.
542 (libsanitizer_common_la_LIBADD): Likewise.
543 (libsanitizer_common_la_DEPENDENCIES): Likewise.
544 * sanitizer_common/Makefile.in: Regenerate.
545 * interception/Makefile.in: Likewise.
546 * libbacktace/Makefile.in: Likewise.
547 * Makefile.in: Likewise.
548 * configure: Likewise.
549 * merge.sh: Handle builtins/assembly.h merging.
550 * builtins/assembly.h: New file.
551 * asan/libtool-version: Bump the libasan SONAME.
552
aef6a97c
JJ
5532016-09-21 Jakub Jelinek <jakub@redhat.com>
554
555 PR sanitizer/77567
556 * asan/asan_new_delete.cc: Cherry-pick upstream r282019.
557
0ce48391
JJ
5582016-09-05 Jakub Jelinek <jakub@redhat.com>
559
560 PR sanitizer/77396
561 * asan/asan_globals.cc: Cherry-pick upstream r280657.
562
e23a7a99
JJ
5632016-08-12 Jakub Jelinek <jakub@redhat.com>
564
565 PR sanitizer/71042
566 * tsan/tsan_platform_linux.cc: Cherry-pick upstream r278292.
567 * tsan/tsan_rtl_aarch64.S: Likewise.
568
aa00995c
AM
5692016-07-23 Alan Modra <amodra@gmail.com>
570
571 Revert 2015-11-09 Alan Modra <amodra@gmail.com>
572 * configure.ac: Don't substitute OBSTACK_DEFS.
573 * asan/Makefile.am: Remove OBSTACK_DEFS from DEFS.
574 * tsan/Makefile.am: Likewise.
575 * configure: Regenerate.
576 * Makefile.in: Regenerate.
577 * asan/Makefile.in: Regenerate.
578 * interception/Makefile.in: Regenerate.
579 * libbacktrace/Makefile.in: Regenerate.
580 * lsan/Makefile.in: Regenerate.
581 * sanitizer_common/Makefile.in: Regenerate.
582 * tsan/Makefile.in: Regenerate.
583 * ubsan/Makefile.in: Regenerate.
584
69af4eec
JJ
5852016-05-17 Jakub Jelinek <jakub@redhat.com>
586
587 PR sanitizer/71160
588 * asan/asan_malloc_linux.cc: Cherry pick upstream r254395
589 and r269633.
590
fefddbef
MO
5912016-04-21 Maxim Ostapenko <m.ostapenko@samsung.com>
592
593 PR sanitizer/70624
594 * asan/asan_mac.cc: Cherry pick upstream r266868.
595
e4729419
JJ
5962016-01-19 Jakub Jelinek <jakub@redhat.com>
597
598 PR sanitizer/68824
599 * tsan/tsan_interceptors.cc (NEED_TLS_GET_ADDR, __tls_get_addr,
600 InitializeInterceptors): Cherry pick upstream r258119.
601
bf93d543
AT
6022016-01-14 Andreas Tobler <andreast@gcc.gnu.org>
603
604 * configure.ac: Replace the hard-coded -ldl requirement for
605 link_sanitizer_common with a configure time check for -ldl.
606 * configure: Regenerate.
607
9211bbb2
MO
6082015-11-24 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
609
610 * include/system/linux/asm/ptrace.h: Move to ...
611 * include/system/asm/ptrace.h: ... this.
612
664dd3cf
MO
6132015-11-24 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
614
615 * include/system/linux/asm/ptrace.h: New header.
616
55aea9f5
MO
6172015-11-23 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
618
619 * All source files: Merge from upstream r253555.
620 * configure.tgt: Enable LSan on aarch64-*-linux* targets. Add new
621 dependences for TSan for aarch64-*-linux* targets.
622 * tsan/Makefile.am: Add new source files.
623 * configure: Regenerate.
624 * tsan/Makefile.in: Likewise.
625
62c0f0a6
AM
6262015-11-09 Alan Modra <amodra@gmail.com>
627
628 * sanitizer_common/sanitizer_common_interceptors.inc: Update size
629 params for _obstack_begin_1, _obstack_begin, _obstack_newchunk
630 interceptors.
631 * configure.ac: Substitute OBSTACK_DEFS.
632 * asan/Makefile.am: Add OBSTACK_DEFS to DEFS.
633 * tsan/Makefile.am: Likewise.
634 * configure: Regenerate.
635 * Makefile.in: Regenerate.
636 * asan/Makefile.in: Regenerate.
637 * interception/Makefile.in: Regenerate.
638 * libbacktrace/Makefile.in: Regenerate.
639 * lsan/Makefile.in: Regenerate.
640 * sanitizer_common/Makefile.in: Regenerate.
641 * tsan/Makefile.in: Regenerate.
642 * ubsan/Makefile.in: Regenerate.
643
692b1131
MO
6442015-10-22 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
645
646 PR bootstrap/68041
647 * configure.ac (link_sanitizer_common): Link against librt only if it
648 contains shm_open, required by sanitizers.
649 (CXX_ABI_NEEDED): Remove variable.
650 * configure: Regenerate.
651 * ubsan/Makefile.am (libubsan_la_LIBADD): Do not add -lc++abi anymore.
652 * ubsan/Makefile.in: Regenerate.
653
7047bc9c
MO
6542015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
655
656 * HOWTO_MERGE: New file.
657
21d61063
MO
6582015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
659
660 * sanitizer_common/sanitizer_stacktrace.cc (GetCanonicFrame): Assume we
661 compiled code with GCC when extracting the caller PC for ARM if no
662 valid frame pointer is available.
663
15ebe1fe
MO
6642015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
665
666 PR bootstrap/63888
667 Reapply:
668 2015-02-20 Jakub Jelinek <jakub@redhat.com>
669
670 * asan/asan_globals.cc (RegisterGlobal): Disable detect_odr_violation
671 support until it is rewritten upstream.
672
673 * c-c++-common/asan/pr63888.c: New test.
674
0d57d3e0
MO
6752015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
676
677 PR sanitizer/63958
678 Reapply:
679 2014-10-14 David S. Miller <davem@davemloft.net>
680
681 * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t):
682 Define at __kernel_time_t, as needed for sparc.
683 (struct __old_kernel_stat): Don't check if __sparc__ is defined.
684 * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
685 (__sanitizer): Define struct___old_kernel_stat_sz,
686 struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc.
687 (__sanitizer_ipc_perm): Adjust for sparc targets.
688 (__sanitizer_shmid_ds): Likewsie.
689 (__sanitizer_sigaction): Likewise.
690 (IOC_SIZE): Likewsie.
691
696d846a
MO
6922015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
693
694 * All source files: Merge from upstream r250806.
695 * configure.ac (link_sanitizer_common): Add -lrt flag.
696 * configure.tgt: Enable TSAN and LSAN for aarch64-linux targets.
697 Set USE_CXX_ABI_FLAG=true for darwin.
698 * asan/Makefile.am (asan_files): Add new files.
699 (DEFS): Add DCAN_SANITIZE_UB=0 and remove unused and legacy
700 DASAN_FLEXIBLE_MAPPING_AND_OFFSET=0.
701 * asan/Makefile.in: Regenerate.
702 * ubsan/Makefile.am (ubsan_files): Add new files.
703 (DEFS): Add DCAN_SANITIZE_UB=1.
704 (libubsan_la_LIBADD): Add -lc++abi if USE_CXX_ABI_FLAG is true.
705 * ubsan/Makefile.in: Regenerate.
706 * tsan/Makefile.am (tsan_files): Add new files.
707 (DEFS): Add DCAN_SANITIZE_UB=0.
708 * tsan/Makefile.in: Regenerate.
709 * sanitizer_common/Makefile.am (sanitizer_common_files): Add new files.
710 * sanitizer_common/Makefile.in: Regenerate.
711 * asan/libtool-version: Bump the libasan SONAME.
712
1842a04c
MT
7132015-09-09 Markus Trippelsdorf <markus@trippelsdorf.de>
714
715 PR sanitizer/67258
716 * ubsan/ubsan_type_hash.cc: Cherry pick upstream r244101.
717
97d8f801
MT
7182015-07-29 Markus Trippelsdorf <markus@trippelsdorf.de>
719
720 PR sanitizer/63927
721 * sanitizer_common/sanitizer_stacktrace.h: Use fast unwinder
722 for PowerPC.
723
3d61d875
BS
7242015-07-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
725
726 PR sanitizer/63927
727 * sanitizer_common/sanitizer_stacktrace.cc
728 (BufferedStackTrace::FastUnwindStack): Fix code for PowerPC to
729 find the link register at an offset of 16 from the base of the
730 caller's stack frame.
731
f3915b42
MH
7322015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
733
734 * Makefile.in: Regenerated with automake-1.11.6.
735 * aclocal.m4: Likewise.
736 * asan/Makefile.in: Likewise.
737 * configure: Likewise.
738 * interception/Makefile.in: Likewise.
739 * libbacktrace/Makefile.in: Likewise.
740 * lsan/Makefile.in: Likewise.
741 * sanitizer_common/Makefile.in: Likewise.
742 * tsan/Makefile.in: Likewise.
743 * ubsan/Makefile.in: Likewise.
744
d041a6fc
YG
7452015-04-13 Yury Gribov <y.gribov@samsung.com>
746
747 PR sanitizer/64839
748 * sanitizer_common/sanitizer_platform.h: Cherry pick
749 upstream r234470.
750 * sanitizer_common/sanitizer_platform_limits_posix.cc: Ditto.
751 * configure.ac (RPC_DEFS): Check for precense of RPC headers.
752 * sanitizer_common/Makefile.am (DEFS): Pass info to compiler.
753 * Makefile.in: Regenerate.
754 * asan/Makefile.in: Regenerate.
755 * config.h.in: Regenerate.
756 * configure: Regenerate.
757 * interception/Makefile.in: Regenerate.
758 * libbacktrace/Makefile.in: Regenerate.
759 * lsan/Makefile.in: Regenerate.
760 * sanitizer_common/Makefile.in: Regenerate.
761 * tsan/Makefile.in: Regenerate.
762 * ubsan/Makefile.in: Regenerate.
763
764
d886f7cc
CL
7652015-03-23 Christophe Lyon <christophe.lyon@linaro.org>
766
767 PR sanitizer/59009
768 * sanitizer_common/sanitizer_platform_limits_posix.cc: Cherry pick
769 upstream r230324.
770 * sanitizer_common/sanitizer_platform.h: Likewise.
771 * sanitizer_common/sanitizer_common_syscalls.inc: Likewise.
772
563fb64a
BE
7732015-03-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
774
775 * tsan/tsan_rtl_report.cc (ScopedReport::AddThread): Cherry pick
776 upstream 224508 and 224755.
777
ee876e59
JJ
7782015-03-09 Jakub Jelinek <jakub@redhat.com>
779
780 PR sanitizer/63958
781 Reapply:
782 2014-10-14 David S. Miller <davem@davemloft.net>
783
784 * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t):
785 Define at __kernel_time_t, as needed for sparc.
786 (struct __old_kernel_stat): Don't check if __sparc__ is defined.
787 * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
788 (__sanitizer): Define struct___old_kernel_stat_sz,
789 struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc.
790 (__sanitizer_ipc_perm): Adjust for sparc targets.
791 (__sanitizer_shmid_ds): Likewsie.
792 (__sanitizer_sigaction): Likewise.
793 (IOC_SIZE): Likewsie.
794
6ad0611b
PB
7952015-02-27 Peter Bergner <bergner@vnet.ibm.com>
796
797 * configure.tgt: Enable build on powerpc*le-*-linux.
798
09901e8a 7992015-02-23 Jakub Jelinek <jakub@redhat.com>
86ee2038
JJ
800
801 PR bootstrap/63888
802 * asan/asan_globals.cc (RegisterGlobal): Disable detect_odr_violation
803 support until it is rewritten upstream.
804
94213c10
MK
8052015-01-26 Matthias Klose <doko@ubuntu.com>
806
807 * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
808 * configure: Regenerate.
809
8790f572
VK
8102015-01-25 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
811
94213c10 812 * configure.ac (TSAN_TARGET_DEPENDENT_OBJECTS): Undefine.
8790f572 813 * configure: Regenerate.
94213c10 814 * configure.tgt (TSAN_TARGET_DEPENDENT_OBJECTS): Define.
8790f572 815
b0edd457
VK
8162015-01-25 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
817
818 * configure.ac (TSAN_TARGET_DEPENDENT_OBJECTS): Define.
819 * configure: Regenerate.
820 * tsan/Makefile.am (EXTRA_libtsan_la_SOURCES): Define.
821 (libtsan_la_DEPENDENCIES): Likewise.
822 * Makefile.in: Regenerate.
823 * asan/Makefile.in: Regenerate.
824 * interception/Makefile.in: Regenerate.
825 * libbacktrace/Makefile.in: Regenerate.
826 * lsan/Makefile.in: Regenerate.
827 * sanitizer_common/Makefile.in: Regenerate.
828 * tsan/Makefile.in: Regenerate.
829 * ubsan/Makefile.in: Regenerate.
830
19ac475f
JJ
8312015-01-22 Jakub Jelinek <jakub@redhat.com>
832
833 * tsan/tsan_rtl.h: Cherry pick upstream r226829.
834
8b08ef25
JJ
8352015-01-21 Jakub Jelinek <jakub@redhat.com>
836
837 PR sanitizer/64435
838 * sanitizer_common/sanitizer_platform_limits_posix.h: Cherry pick
839 upstream r226637.
840 * sanitizer_common/sanitizer_platform_limits_posix.cc: Likewise.
841 * sanitizer_common/sanitizer_posix.cc: Cherry pick upstream r226639.
842
3ea36418
JJ
8432015-01-20 Jakub Jelinek <jakub@redhat.com>
844
845 PR sanitizer/64632
846 * ubsan/ubsan_type_hash.cc: Cherry pick upstream r224972.
847
9deaf59d
JJ
8482015-01-19 Jakub Jelinek <jakub@redhat.com>
849
850 PR sanitizer/64435
851 * sanitizer_common/sanitizer_platform_limits_posix.cc: Cherry pick
852 upstream r223925.
853
b6a8bacc
JJ
8542015-01-13 Jakub Jelinek <jakub@redhat.com>
855
856 * sanitizer_common/sanitizer_deadlock_detector.h: Cherry pick
857 upstream r224518 and r224519.
858 * tsan/tsan_rtl_thread.cc: Cherry pick upstream r224702 and
859 r224834.
860
f2798565
JJ
8612014-12-16 Jakub Jelinek <jakub@redhat.com>
862
863 * sanitizer_common/sanitizer_symbolizer_libbacktrace.cc,
864 sanitizer_common/sanitizer_symbolizer_libbacktrace.h,
865 sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc: Cherry pick
866 upstream r224308.
867
a699d672
L
8682014-11-21 H.J. Lu <hongjiu.lu@intel.com>
869
870 PR bootstrap/63784
871 * configure: Regenerated.
872
7697b16f
JJ
8732014-11-21 Jakub Jelinek <jakub@redhat.com>
874
875 PR target/61137
876 * config/ia64/ia64.c (ia64_attribute_takes_identifier_p): New function.
877 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Redefine to it.
878
7f201a67
UB
8792014-11-14 Uros Bizjak <ubizjak@gmail.com>
880
881 * sanitizer_common/Makefile.am (AM_CXXFLAGS): Use -std=gnu++11.
882 * asan/Makefile.am (AM_CXXFLAGS): Ditto.
883 * lsan/Makefile.am (AM_CXXFLAGS): Ditto.
884 * interception/Makefile.am (AM_CXXFLAGS): Ditto.
885 * tsan/Makefile.am (AM_CXXFLAGS): Ditto.
886 * libbacktrace/Makefile.am (AM_CXXFLAGS): Ditto.
887 * ubsan/Makefile.am (AM_CXXFLAGS): Ditto.
888 * sanitizer_common/Makefile.in: Regenerate.
889 * asan/Makefile.in: Ditto.
890 * lsan/Makefile.in: Ditto.
891 * interception/Makefile.in: Ditto.
892 * tsan/Makefile.in: Ditto.
893 * libbacktrace/Makefile.in: Ditto.
894 * ubsan/Makefile.in: Ditto.
895
c5be964a
KS
8962014-11-13 Kostya Serebryany <kcc@google.com>
897
898 * All source files: Merge from upstream r221802.
899 * sanitizer_common/sanitizer_symbolizer_libbacktrace.cc
900 (LibbacktraceSymbolizer::SymbolizeData): Replace 'address'
901 with 'start' to follow the new interface.
902 * asan/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
903 * interception/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
904 * libbacktrace/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
905 * lsan/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
906 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new
907 files.
908 (AM_CXXFLAGS): Added -std=c++11.
909 * tsan/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
910 * ubsan/Makefile.am (AM_CXXFLAGS): Added -std=c++11.
911 * asan/Makefile.in: Regenerate.
912 * interception/Makefile.in: Regenerate.
913 * libbacktrace/Makefile.in: Regenerate.
914 * lsan/Makefile.in: Regenerate.
915 * sanitizer_common/Makefile.in: Regenerate.
916 * tsan/Makefile.in: Regenerate.
917 * ubsan/Makefile.in: Regenerate.
918
ebf6d33b
FXC
9192014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
920
921 PR target/63610
922 * configure: Regenerate.
923
d13fc1ed
ML
9242014-10-16 Martin Liska <mliska@suse.cz>
925
926 * asan/Makefile.am: IPA ICF pass is disabled.
927 * asan/Makefile.in: Likewise.
928
c8473336
DM
9292014-10-14 David S. Miller <davem@davemloft.net>
930
931 * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t):
932 Define at __kernel_time_t, as needed for sparc.
933 (struct __old_kernel_stat): Don't check if __sparc__ is defined.
934 * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
935 (__sanitizer): Define struct___old_kernel_stat_sz,
936 struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc.
937 (__sanitizer_ipc_perm): Adjust for sparc targets.
938 (__sanitizer_shmid_ds): Likewsie.
939 (__sanitizer_sigaction): Likewsie.
940 (IOC_SIZE): Likewsie.
941
694b4cfa
JJ
9422014-10-14 Jakub Jelinek <jakub@redhat.com>
943
944 * ubsan/Makefile.am (DEFS): Add -DPIC.
945 * ubsan/Makefile.in: Regenerated.
946
a3125fc2
CL
9472014-09-26 Christophe Lyon <christophe.lyon@linaro.org>
948
949 * configure.tgt: Enable build on aarch64*-linux.
950
866e32ad
KS
9512014-09-19 Kostya Serebryany <kcc@google.com>
952
953 * All source files: Merge from upstream r218156.
954 * asan/Makefile.am (asan_files): Added new files.
955 * asan/Makefile.in: Regenerate.
956 * ubsan/Makefile.am (ubsan_files): Added new files.
957 * ubsan/Makefile.in: Regenerate.
958 * tsan/Makefile.am (tsan_files): Added new files.
959 * tsan/Makefile.in: Regenerate.
960 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new
961 files.
962 * sanitizer_common/Makefile.in: Regenerate.
963 * asan/libtool-version: Bump the libasan SONAME.
964
126edc3f
JJ
9652014-09-10 Jakub Jelinek <jakub@redhat.com>
966
967 * ubsan/ubsan_handlers.cc, ubsan/ubsan_handlers.h: Cherry pick
968 upstream r215485, r217389, r217391 and r217400.
969
0d807c80
PC
9702014-06-23 Paolo Carlini <paolo.carlini@oracle.com>
971
972 * sanitizer_common/sanitizer_common_interceptors.inc:
973 Cherry pick upstream r211008.
974
4622301b
RB
9752014-06-11 Richard Biener <rguenther@suse.de>
976
977 * asan/asan_linux.cc: Cherry pick upstream r210012.
978
ecd5543f
JJ
9792014-05-30 Jakub Jelinek <jakub@redhat.com>
980
981 * sanitizer_common/sanitizer_stacktrace.cc: Cherry pick upstream
982 r209879.
983 * sanitizer_common/sanitizer_common.h: Likewise.
984 * asan/asan_mapping.h: Likewise.
985 * asan/asan_linux.cc: Likewise.
986 * tsan/tsan_mman.cc: Cherry pick upstream r209744.
987 * sanitizer_common/sanitizer_allocator.h: Likewise.
988
85a16bf8
MP
9892014-05-23 Marek Polacek <polacek@redhat.com>
990
991 * ubsan/ubsan_value.cc (getFloatValue): Handle 96-bit
992 floating-point types.
993
dee5ea7a
KS
9942014-05-22 Kostya Serebryany <kcc@google.com>
995
996 * All source files: Merge from upstream r209283.
997 * asan/Makefile.am (asan_files): Added new files.
998 * asan/Makefile.in: Regenerate.
999 * tsan/Makefile.am (tsan_files): Added new files.
1000 * tsan/Makefile.in: Regenerate.
0d807c80
PC
1001 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new
1002 files.
dee5ea7a
KS
1003 * sanitizer_common/Makefile.in: Regenerate.
1004
2675305b
YG
10052014-05-14 Yury Gribov <y.gribov@samsung.com>
1006
1007 PR sanitizer/61100
1008 * Makefile.am (nodist_saninclude_HEADERS): Install
1009 public headers.
1010 * Makefile.in: Regenerate.
1011
a6c9ab4e
RO
10122014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1013
1014 * libbacktrace/Makefile.am (libsanitizer_libbacktrace_la_SOURCES):
1015 Add ../../libbacktrace/sort.c.
1016 * libbacktrace/Makefile.in: Regenerate.
1017 * libbacktrace/backtrace-rename.h (backtrace_qsort): Define.
1018
a42a7046
BS
10192014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1020
1021 * configure.tgt: Unsupported for little endian PowerPC for now.
1022
5ab39ec3
JJ
10232014-02-04 Jakub Jelinek <jakub@redhat.com>
1024
81c87471
JJ
1025 PR sanitizer/60055
1026 * tsan/tsan_flags.cc (__tsan_default_options): Add
1027 SANITIZER_INTERFACE_ATTRIBUTE. Backport from upstream r200747.
1028 * tsan/tsan_rtl.cc (__tsan::OnFinalize): Likewise.
1029
5ab39ec3
JJ
1030 PR sanitizer/60038
1031 * sanitizer_common/sanitizer_linux_libcdep.cc: Include
1032 sanitizer_atomic.h and unistd.h.
1033 (kThreadDescriptorSize): Made static, remove initializer and const,
1034 change type to atomic_uintptr_t.
1035 (ThreadDescriptorSize): Use confstr(_CS_GNU_LIBC_VERSION, ...) to
1036 query glibc version, compute kThreadDescriptorSize depending on
1037 glibc version minor number.
1038 (GetThreadStackAndTls): Use ThreadDescriptorSize() instead of
1039 kThreadDescriptorSize directly.
1040
4a7eaf5f
YG
10412014-01-23 Yury Gribov <y.gribov@samsung.com>
1042 Jakub Jelinek <jakub@redhat.com>
1043
1044 PR sanitizer/57316
1045 * configure.ac: Check for missing syscalls.
1046 * Makefile.am: Likewise.
1047 * configure: Regenerate.
1048 * Makefile.in: Regenerate.
1049
2613419a
JJ
10502014-01-09 Jakub Jelinek <jakub@redhat.com>
1051
b5f58ba3
JJ
1052 * sanitizer_common/sanitizer_symbolizer_libbacktrace.h
1053 (LibbacktraceSymbolizer::Demangle): New declaration.
1054 * sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc
1055 (POSIXSymbolizer::Demangle): Use libbacktrace_symbolizer_'s Demangle
1056 method if possible.
1057 * sanitizer_common/sanitizer_symbolizer_libbacktrace.cc: Include
1058 "demangle.h" if SANITIZE_CP_DEMANGLE is defined.
1059 (struct CplusV3DemangleData): New type.
1060 (CplusV3DemangleCallback, CplusV3Demangle): New functions.
1061 (SymbolizeCodePCInfoCallback, SymbolizeCodeCallback,
1062 SymbolizeDataCallback): Use CplusV3Demangle.
1063 * sanitizer_common/Makefile.am (AM_CXXFLAGS): Add
1064 -DSANITIZE_CP_DEMANGLE and -I $(top_srcdir)/../include.
1065 * libbacktrace/backtrace-rename.h (cplus_demangle_builtin_types,
1066 cplus_demangle_fill_ctor, cplus_demangle_fill_dtor,
1067 cplus_demangle_fill_extended_operator, cplus_demangle_fill_name,
1068 cplus_demangle_init_info, cplus_demangle_mangled_name,
1069 cplus_demangle_operators, cplus_demangle_print,
1070 cplus_demangle_print_callback, cplus_demangle_type, cplus_demangle_v3,
1071 cplus_demangle_v3_callback, is_gnu_v3_mangled_ctor,
1072 is_gnu_v3_mangled_dtor, java_demangle_v3, java_demangle_v3_callback):
1073 Define.
1074 (__asan_internal_memcmp, __asan_internal_strncmp): New prototypes.
1075 (memcmp, strncmp): Redefine.
1076 * libbacktrace/Makefile.am (libsanitizer_libbacktrace_la_SOURCES): Add
1077 ../../libiberty/cp-demangle.c.
1078 * libbacktrace/bridge.cc (__asan_internal_memcmp,
1079 __asan_internal_strncmp): New functions.
1080 * sanitizer_common/Makefile.in: Regenerated.
1081 * libbacktrace/Makefile.in: Regenerated.
1082 * configure: Regenerated.
1083 * configure.ac: Regenerated.
1084 * config.h.in: Regenerated.
1085
2613419a
JJ
1086 * sanitizer_common/Makefile.am (AM_CPPFLAGS): Add
1087 -isystem $(top_srcdir)/include/system.
1088 * sanitizer_common/Makefile.in: Regenerated.
1089 * include/system/linux/aio_abi.h: New header.
1090 * include/system/linux/mroute.h: New header.
1091 * include/system/linux/mroute6.h: New header.
1092 * include/system/linux/perf_event.h: New header.
1093 * include/system/linux/types.h: New header.
c915a581
JJ
1094
1095 PR sanitizer/59136
1096 * sanitizer_common/Makefile.am (AM_CXXFLAGS): If
1097 LIBBACKTRACE_SUPPORTED add -DSANITIZER_LIBBACKTRACE
1098 and -I/-include flags.
1099 * lsan/Makefile.am (liblsan_la_LIBADD): Add
1100 libsanitizer_libbacktrace.la if LIBBACKTRACE_SUPPORTED.
1101 * tsan/Makefile.am (libtsan_la_LIBADD): Likewise.
1102 * ubsan/Makefile.am (libubsan_la_LIBADD): Likewise.
1103 * asan/Makefile.am (libasan_la_LIBADD): Likewise.
1104 * Makefile.am (SUBDIRS): If LIBBACKTRACE_SUPPORTED add
1105 libbacktrace.
1106 * README.gcc: Document that also lsan and ubsan are
1107 maintained in compiler-rt upstream.
1108 * libbacktrace/Makefile.am: New file.
1109 * libbacktrace/backtrace-rename.h: New file.
1110 * libbacktrace/backtrace-supported.h.in: New file.
1111 * libbacktrace/bridge.cc: New file.
1112 * configure.ac: Add tests needed for libbacktrace build
1113 within libsanitizer.
1114 * sanitizer_common/Makefile.in: Regenerated.
1115 * lsan/Makefile.in: Regenerated.
1116 * tsan/Makefile.in: Regenerated.
1117 * ubsan/Makefile.in: Regenerated.
1118 * libbacktrace/Makefile.in: Generated.
1119 * config.h.in: Regenerated.
1120 * configure: Regenerated.
1121 * Makefile.in: Regenerated.
1122 * interception/Makefile.in: Regenerated.
1123 * asan/Makefile.in: Regenerated.
1124 * aclocal.m4: Regenerated.
1125
409f3b46
KS
11262013-12-19 Kostya Serebryany <kcc@google.com>
1127
92a285c1 1128 * sanitizer_common/sanitizer_platform_limits_posix.cc:
409f3b46
KS
1129 workaround for missing definition of EOWNERDEAD, backport
1130 from upstream r196779.
1131
079db27b
L
11322013-12-06 H.J. Lu <hongjiu.lu@intel.com>
1133
1134 * sanitizer_common/sanitizer_platform_limits_posix.h
1135 (__sanitizer_shmid_ds): Use u64 on time fields for x32.
1136 (__sanitizer_clock_t): Use long long for x32.
1137
7efb96c0
L
11382013-12-06 H.J. Lu <hongjiu.lu@intel.com>
1139
1140 * sanitizer_common/sanitizer_platform_limits_linux.cc: Include
1141 <sys/stat.h>, instead of <asm/stat.h>, if __x86_64__ is defined.
1142 (struct___old_kernel_stat_sz): Don't check if __x86_64__ is defined.
1143
df9d1700
L
11442013-12-05 H.J. Lu <hongjiu.lu@intel.com>
1145
1146 * configure.ac (link_sanitizer_common): Add -lm.
1147 * configure: Regenerated.
1148
c4c16f74
KS
11492013-12-05 Kostya Serebryany <kcc@google.com>
1150
1151 * All source files: Merge from upstream r196489.
1152 * merge.sh: Add *.S to the list of merged files.
1153
666ee4d6
YG
11542013-12-05 Yury Gribov <y.gribov@samsung.com>
1155
1156 PR sanitizer/59368
1157 * Makefile.am (gcc_version): Added gcc_version.
1158 * Makefile.in: Regenerate.
1159
df77f0e4
KS
11602013-12-05 Kostya Serebryany <kcc@google.com>
1161
1162 * All source files: Merge from upstream r196090.
1163 * tsan/Makefile.am (tsan_files): Added new files.
1164 * tsan/Makefile.in: Regenerate.
1165 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new fles.
1166 * sanitizer_common/Makefile.in: Regenerate.
1167 * lsan/Makefile.am (lsan_files): Added new files.
1168 * lsan/Makefile.in: Regenerate.
1169
35814b03
JJ
11702013-11-29 Jakub Jelinek <jakub@redhat.com>
1171 Yury Gribov <y.gribov@samsung.com>
1172
1173 PR sanitizer/59063
1174 * libsanitizer.spec.in: Add spec file to hold link flags for
1175 various sanitizer libs.
1176 * configure.ac: Check whether clock_* routines come from librt.
1177 * asan/Makefile.am (libasan_la_LDFLAGS): Libs now come from
1178 configure.ac.
1179 * tsan/Makefile.am (libtsan_la_LDFLAGS): Likewise.
1180 * ubsan/Makefile.am (libubsan_la_LDFLAGS): Likewise.
1181 * lsan/Makefile.am (liblsan_la_LDFLAGS): Likewise.
1182 * asan/Makefile.in: Regenerate.
1183 * interception/Makefile.in: Regenerate.
1184 * lsan/Makefile.in: Regenerate.
1185 * sanitizer_common/Makefile.in: Regenerate.
1186 * tsan/Makefile.in: Regenerate.
1187 * ubsan/Makefile.in: Regenerate.
1188 * Makefile.in: Regenerate.
1189 * configure: Regenerate.
1190
049558ed
JJ
11912013-11-28 Jakub Jelinek <jakub@redhat.com>
1192 Yury Gribov <y.gribov@samsung.com>
1193
1194 PR sanitizer/59106
1195 * ubsan/Makefile.am (AM_CXXFLAGS): Disable -frtti for files that
1196 don't need it.
1197 * ubsan/Makefile.in: Regenerated.
1198
9065ada9
JJ
11992013-11-22 Jakub Jelinek <jakub@redhat.com>
1200
1201 PR sanitizer/59061
1202 * configure.tgt: Set LSAN_SUPPORTED=yes for x86_64-linux.
1203 * configure.ac (LSAN_SUPPORTED): New AM_CONDITIONAL.
1204 * configure: Regenerated.
1205 * lsan/Makefile.am (toolexeclib_LTLIBRARIES, lsan_files,
1206 liblsan_la_SOURCES, liblsan_la_LIBADD, liblsan_la_LDFLAGS): Add.
1207 * lsan/Makefile.in: Regenerated.
1208
486294d4
MS
12092013-11-22 Mike Stump <mikestump@comcast.net>
1210
1211 * sanitizer_common/sanitizer_linux.cc (__sanitizer): Grab one
1212 change from upstream to fix build.
1213
2621c860
YG
12142013-11-18 Yury Gribov <y.gribov@samsung.com>
1215
1216 PR sanitizer/59106
1217 * asan/Makefile.am (AM_CXXFLAGS): Add -fno-rtti.
1218 * interception/Makefile.am (AM_CXXFLAGS): Likewise.
1219 * lsan/Makefile.am (AM_CXXFLAGS): Likewise.
1220 * sanitizer_common/Makefile.am (AM_CXXFLAGS): Likewise.
1221 * tsan/Makefile.am (AM_CXXFLAGS): Likewise.
1222 * asan/Makefile.in: Regenerate.
1223 * interception/Makefile.in: Regenerate.
1224 * tsan/Makefile.in: Regenerate.
1225 * lsan/Makefile.in: Regenerate.
1226 * sanitizer_common/Makefile.in: Regenerate.
1227
c8e1377b
KS
12282013-11-15 Kostya Serebryany <kcc@google.com>
1229
1230 PR sanitizer/58994
92a285c1
ML
1231 Backport from upstream revision 194573
1232 * asan/asan_interceptors.cc (COMMON_INTERCEPTOR_ENTER): Fall
1233 back to the original functions in the common libsanitizer
1234 interceptors and the __cxa_atexit() interceptor on Darwin.
c8e1377b 1235
c3d77f3a
PB
12362013-11-13 Peter Bergner <bergner@vnet.ibm.com>
1237
1238 PR sanitizer/59009
1239 * sanitizer_common/sanitizer_platform_limits_posix.cc: Temporarily
1240 ifdef out more source.
1241
d00106f4
JJ
12422013-11-12 Jakub Jelinek <jakub@redhat.com>
1243
1244 * sanitizer_common/sanitizer_platform_limits_linux.cc: Temporarily
1245 ifdef out almost the whole source.
1246 * sanitizer_common/sanitizer_common_syscalls.inc: Likewise.
1247
e276866f
L
12482013-11-05 H.J. Lu <hongjiu.lu@intel.com>
1249
1250 PR sanitizer/59018
1251 * sanitizer_common/sanitizer_platform_limits_posix.cc
1252 (struct_user_fpxregs_struct_sz): Initialize to 0 if __x86_64__ is
1253 defined.
1254
f5c36cfc
L
12552013-11-05 H.J. Lu <hongjiu.lu@intel.com>
1256
1257 PR sanitizer/59018
1258 * sanitizer_common/sanitizer_platform_limits_linux.cc
1259 (struct_kernel_stat64_sz): Initialize to 0 if __x86_64__ is
1260 defined.
1261 * sanitizer_common/sanitizer_platform_limits_posix.h
1262 (__sanitizer_dirent): Use 64-bit d_ino/d_off if __x86_64__ is
1263 defined.
1264 (__sanitizer___kernel_uid_t): Typedef as unsigned if __x86_64__
1265 is defined.
1266 (__sanitizer___kernel_gid_t): Likewise.
1267 (__sanitizer___kernel_off_t): Typedef as long long if __x86_64__
1268 is defined.
1269
e45de14e
L
12702013-11-05 H.J. Lu <hongjiu.lu@intel.com>
1271
1272 PR sanitizer/59018
1273 * sanitizer_common/sanitizer_linux.cc (internal_clone): Allocate
1274 2 64-bit integers to save and restore fn and arg. Properly load
1275 newtls/child_tidptr into r8/r10.
1276
38693e39
L
12772013-11-05 H.J. Lu <hongjiu.lu@intel.com>
1278
1279 PR sanitizer/59018
1280 * sanitizer_common/sanitizer_linux.cc (internal_mmap,
1281 internal_munmap, internal_open, internal_read, internal_write,
1282 internal_stat, internal_lstat, internal_fstat, internal_readlink,
1283 internal_unlink, internal_execve, NanoTime, BlockingMutex::Lock,
1284 BlockingMutex::Unlock, internal_ptrace, internal_getdents,
1285 internal_sigaltstack): Cast pointers to uptr for 64-bit syscalls.
1286
ef1b3fda
KS
12872013-11-04 Kostya Serebryany <kcc@google.com>
1288
1289 * All source files: Merge from upstream r191666.
1290 * merge.sh: Added lsan.
1291 * configure.ac (AC_CONFIG_FILES): Added lsan.
1292 * Makefile.am (SUBDIRS): Added lsan.
1293 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new fles.
1294 * asan/Makefile.am (asan_files): Added new files.
1295 (libasan_la_LIBADD): Added a dependency on lsan.
1296 * lsan/Makefile.am: New file.
1297 * asan/Makefile.in: Regenerate.
1298 * lsan/Makefile.in: Regenerate.
1299 * Makefile.in: Regenerate.
1300 * configure: Regenerate.
1301 * sanitizer_common/Makefile.in: Regenerate.
1302
3cbe17f7
AM
13032013-09-20 Alan Modra <amodra@gmail.com>
1304
1305 * configure: Regenerate.
1306
0cea211e
IS
13072013-09-01 Iain Sandoe <iain@codesourcery.com>
1308
1309 * ubsan/Makefile.am (libubsan_la_LIBADD): Revise to omit
1310 libinterception.la for Darwin.
1311 * ubsan/Makefile.in: Regenerate.
1312
de5a5fa1
MP
13132013-08-30 Jakub Jelinek <jakub@redhat.com>
1314
1315 * Makefile.am (SUBDIRS): Add ubsan.
1316 * configure.ac (AC_CONFIG_FILES): Add ubsan/Makefile.
1317 * merge.sh: Merge ubsan.
1318 * sanitizer_common/sanitizer_report_decorator.h: Partial merge from trunk.
1319 * sanitizer_common/sanitizer_printf.cc: Likewise.
1320 * sanitizer_common/sanitizer_common.h: Likewise.
1321 * ubsan: New directory. Import ubsan runtime from llvm.
1322
634cfa2b
CL
13232013-06-03 Christophe Lyon <christophe.lyon@linaro.org>
1324
1325 * sanitizer_common/sanitizer_linux.cc (MemoryMappingLayout::Next):
1326 Cherry pick upstream r182922.
1327
8a5800b8
CL
13282013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
1329
1330 * configure.tgt: Add ARM pattern.
1331
a745e444 13322013-03-22 Jakub Jelinek <jakub@redhat.com>
1868beee
JJ
1333
1334 PR other/43620
1335 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
1336 * Makefile.in: Regenerated.
1337 * asan/Makefile.in: Regenerated.
1338 * interception/Makefile.in: Regenerated.
1339 * sanitizer_common/Makefile.in: Regenerated.
1340 * tsan/Makefile.in: Regenerated.
1341
4c376126
JJ
13422013-02-28 Jakub Jelinek <jakub@redhat.com>
1343
1344 * asan/asan_mapping.h (kMidMemEnd): Increase to 0x4fffffffffULL.
1345 * asan/asan_rtl.cc (__asan_init): Increase kMidMemEnd to
1346 0x4fffffffffULL.
1347
7d613735
JJ
13482013-02-22 Jakub Jelinek <jakub@redhat.com>
1349
1350 PR sanitizer/56393
1351 * asan/Makefile.am (nodist_toolexeclib_HEADERS): Set to
1352 libasan_preinit.o.
1353 (libasan_preinit.o): Depend on asan_preinit.o.
1354 * asan/Makefile.in: Regenerated.
1355 * asan/asan_preinit.cc: New file, synced from upstream.
1356 * asan/asan_rtl.cc: Remove preinit stuff, synced from upstream.
1357
ecdbd01a 13582013-02-21 Jack Howarth <howarth@bromo.med.uc.edu>
304886c5
JH
1359
1360 * asan/Makefile.am (libasan_la_SOURCES): Remove deprecated
1361 dynamic/asan_interceptors_dynamic.cc.
1362 * asan/Makefile.in: Regenerated.
1363 * merge.sh: Remove merge of deprecated lib/asan/dynamic.
1364
4be7da26
JJ
13652013-02-21 Jakub Jelinek <jakub@redhat.com>
1366
1367 * asan/asan_rtl.cc (__asan_preinit): Don't add if PIC macro is
1368 defined. Add used attribute.
1369
7df59255
KS
13702013-02-21 Kostya Serebryany <kcc@google.com>
1371
1372 * All source files: Merge from upstream r175733.
1373 * sanitizer_common/Makefile.am: Added a new file.
1374 * sanitizer_common/Makefile.in: Regenerated.
1375
8afd2ed7
L
13762013-02-14 H.J. Lu <hongjiu.lu@intel.com>
1377
1378 PR bootstrap/56327
1379 * interception/interception.h (OFF_T): Merged from upstream
1380 r175140.
1381
6422242b
JJ
13822013-02-13 Jakub Jelinek <jakub@redhat.com>
1383
1384 * asan/asan_mapping.h (SHADOW_OFFSET): Set to (1ULL << 44) on x86-64.
1385
b4ab7d34
KS
13862013-02-13 Kostya Serebryany <kcc@google.com>
1387
8afd2ed7 1388 PR sanitizer/56128
b4ab7d34
KS
1389 * All source files: Merge from upstream r175049.
1390 * interception/Makefile.am: added include path.
1391 * interception/Makefile.in: Regenerated.
1392
34dc17ed
JH
13932013-02-11 Jack Howarth <howarth@bromo.med.uc.edu>
1394
1395 * configure.tgt: Disable build on darwin9 and earlier.
1396
2660d12d
KS
13972013-01-23 Kostya Serebryany <kcc@google.com>
1398
8afd2ed7 1399 PR sanitizer/55989
2660d12d
KS
1400 * All source files: Merge from upstream r173241.
1401 * merge.sh: Support merging .inc files.
1402
19006c45
JJ
14032013-01-16 Jakub Jelinek <jakub@redhat.com>
1404
1405 * sanitizer_common/Makefile.am (AM_CXXFLAGS): Remove
1406 -Wno-c99-extensions.
1407 * interception/Makefile.am (AM_CXXFLAGS): Likewise.
1408 * asan/Makefile.am (AM_CXXFLAGS): Likewise.
1409 * sanitizer_common/Makefile.in: Regenerated.
1410 * interception/Makefile.in: Regenerated.
1411 * asan/Makefile.in: Regenerated.
1412
edadb734
WM
14132013-01-10 Wei Mi <wmi@google.com>
1414
1415 PR sanitizer/55488
1416 * tsan/Makefile.am: Add tsan_rtl_amd64.S.
1417 * tsan/Makefile.in: Regenerated.
1418 * tsan/tsan_rtl.h: Enable HACKY_CALL.
1419
e9772e16
KS
14202013-01-10 Kostya Serebryany <kcc@google.com>
1421
1422 * All source files: Merge from upstream r171973.
1423 * sanitizer_common/Makefile.am: Added new files.
1424 * asan/Makefile.am: Likewise.
1425 * tsan/Makefile.am: Likewise.
1426 * sanitizer_common/Makefile.in: Regenerated.
1427 * asan/Makefile.in: Likewise.
1428 * tsan/Makefile.in: Likewise.
1429
7f7162cf
L
14302013-01-07 H.J. Lu <hongjiu.lu@intel.com>
1431
1432 * asan/Makefile.am (libasan_la_LIBADD): Replace
1433 LIBSTDCXX_RAW_CXX_LDLAGS with LIBSTDCXX_RAW_CXX_LDFLAGS.
1434 * tsan/Makefile.am (libtsan_la_LIBADD): Likewise.
1435 * Makefile.in: Regenerated.
1436 * configure: Likewise.
1437 * asan/Makefile.in: Likewise.
1438 * interception/Makefile.in: Likewise.
1439 * sanitizer_common/Makefile.in: Likewise.
1440 * tsan/Makefile.in: Likewise.
1441
b488a2c7
L
14422012-12-12 H.J. Lu <hongjiu.lu@intel.com>
1443
1444 * Makefile.am (AM_MAKEFLAGS): Restored.
1445 * interception/Makefile.am: Likewise.
1446 * sanitizer_common/Makefile.am: Likewise.
1447 * tsan/Makefile.am: Likewise.
1448 * Makefile.in: Regenerated.
1449 * asan/Makefile.in: Likewise.
1450 * interception/Makefile.in: Likewise.
1451 * sanitizer_common/Makefile.in: Likewise.
1452 * tsan/Makefile.in: Likewise.
1453
e8adb21b
L
14542012-12-12 H.J. Lu <hongjiu.lu@intel.com>
1455
1456 * Makefile.am (MAKEOVERRIDES): Restored.
1457 * asan/Makefile.am: Likewise.
1458 * interception/Makefile.am: Likewise.
1459 * sanitizer_common/Makefile.am: Likewise.
1460 * tsan/Makefile.am: Likewise.
1461 * Makefile.in: Regenerated.
1462 * asan/Makefile.in: Likewise.
1463 * interception/Makefile.in: Likewise.
1464 * sanitizer_common/Makefile.in: Likewise.
1465 * tsan/Makefile.in: Likewise.
1466
e1e953d9
L
14672012-12-12 H.J. Lu <hongjiu.lu@intel.com>
1468
1469 * asan/Makefile.am (libasan_la_LIBADD): Use $(LIBSTDCXX_RAW_CXX_LDLAGS).
1470 * tsan/Makefile.am (libtsan_la_LIBADD): Likewise.
1471 * Makefile.in: Regenerated.
1472 * configure: Likewise.
1473 * asan/Makefile.in: Likewise.
1474 * interception/Makefile.in: Likewise.
1475 * sanitizer_common/Makefile.in: Likewise.
1476 * tsan/Makefile.in: Likewise.
1477
a62d3903
L
14782012-12-12 H.J. Lu <hongjiu.lu@intel.com>
1479
1480 * Makefile.am (AM_MAKEFLAGS): Removed.
1481 (MAKEOVERRIDES): Likewise.
1482 * asan/Makefile.am: Likewise.
1483 * interception/Makefile.am: Likewise.
1484 * sanitizer_common/Makefile.am: Likewise.
1485 * tsan/Makefile.am: Likewise.
1486 * Makefile.in: Regenerated.
1487 * asan/Makefile.in: Likewise.
1488 * interception/Makefile.in: Likewise.
1489 * sanitizer_common/Makefile.in: Likewise.
1490 * tsan/Makefile.in: Likewise.
1491
d10a2df2
L
14922012-12-11 H.J. Lu <hongjiu.lu@intel.com>
1493
1494 PR sanitizer/55533
1495 * Makefile.am (AM_MAKEFLAGS): Remove CC and CXX.
1496 * configure.ac (GCC_LIBSTDCXX_RAW_CXX_FLAGS): New.
1497 * asan/Makefile.am (AM_CXXFLAGS): Add $(LIBSTDCXX_RAW_CXX_CXXFLAGS).
1498 (AM_MAKEFLAGS): Remove CC and CXX.
1499 * interception/Makefile.am: Likewise.
1500 * sanitizer_common/Makefile.am: Likewise.
1501 * tsan/Makefile.am: Likewise.
1502 * Makefile.in: Regenerated.
1503 * aclocal.m4: Likewise.
1504 * configure: Likewise.
1505 * asan/Makefile.in: Likewise.
1506 * interception/Makefile.in: Likewise.
1507 * sanitizer_common/Makefile.in: Likewise.
1508 * tsan/Makefile.in: Likewise.
1509
957fee09
PB
15102012-12-06 Peter Bergner <bergner@vnet.ibm.com>
1511
1512 * configure.tgt: Enable build on powerpc*-linux.
1513
ecdbd01a 15142012-12-06 Jack Howarth <howarth@bromo.med.uc.edu>
3157880f
JH
1515
1516 PR 55599/sanitizer
d10a2df2
L
1517 * configure.ac: Set enable_static=no on darwin.
1518 * configure: Regenerated.
3157880f 1519
695edbac
KS
15202012-12-06 Kostya Serebryany <kcc@google.com>
1521
1522 * All files: Merge from upstream r169392.
1523
a0408454
KS
15242012-12-05 Kostya Serebryany <kcc@google.com>
1525
1526 * All files: Merge from upstream r169371.
1527
41d37c56 15282012-12-04 Kostya Serebryany <kcc@google.com>
ecdbd01a 1529 Jack Howarth <howarth@bromo.med.uc.edu>
8c4d267c
KS
1530
1531 PR 55521/sanitizer
1532 * configure.ac: Define USING_MAC_INTERPOSE when on darwin.
1533 * Makefile.am: Don't build interception subdir when
1534 USING_MAC_INTERPOSE defined.
1535 * asan/Makefile.am: Pass -DMAC_INTERPOSE_FUNCTIONS and
1536 -DMISSING_BLOCKS_SUPPORT when USING_MAC_INTERPOSE defined.
1537 Compile asan_interceptors_dynamic.cc but not libinterception
1538 when USING_MAC_INTERPOSE defined.
1539 * interception/Makefile.am: Remove usage of USING_MACH_OVERRIDE.
1540 * configure: Regenerated.
1541 * Makefile.in: Likewise.
1542 * asan/Makefile.in: Likewise.
1543 * interception/Makefile.in: Likewise.
1544 * asan/asan_intercepted_functions.h: Use MISSING_BLOCKS_SUPPORT.
1545 * asan/asan_mac.cc: Likewise.
1546 * asan/dynamic/asan_interceptors_dynamic.cc: Migrate from llvm
1547 and use MISSING_BLOCKS_SUPPORT.
1548 * merge.sh: Merge lib/asan/dynamic into asan/dynamic.
1549 * interception/mach_override/LICENSE.txt: Remove unused file.
1550 * interception/mach_override/mach_override.c: Likewise.
1551 * interception/mach_override/mach_override.h: Likewise.
1552 * interception/mach_override: Remove unused directory.
1553
a23ed040
L
15542012-11-28 H.J. Lu <hongjiu.lu@intel.com>
1555
1556 * Makefile.am (AM_MAKEFLAGS): Restore CC and CXX.
1557 * configure.ac (ACX_NONCANONICAL_TARGET): Removed.
1558 * asan/Makefile.am (AM_CXXFLAGS): Remove -I for libstdc++-v3 header
1559 files.
1560 (AM_MAKEFLAGS): Restore CC and CXX.
1561 * interception/Makefile.am: Likewise.
1562 * sanitizer_common/Makefile.am: Likewise.
1563 * tsan/Makefile.am: Likewise.
1564 * Makefile.in: Regenerated.
1565 * aclocal.m4: Likewise.
1566 * configure: Likewise.
1567 * asan/Makefile.in: Likewise.
1568 * interception/Makefile.in: Likewise.
1569 * sanitizer_common/Makefile.in: Likewise.
1570 * tsan/Makefile.in: Likewise.
1571
2ed685b8
L
15722012-11-28 H.J. Lu <hongjiu.lu@intel.com>
1573
1574 * Makefile.am (AM_MAKEFLAGS): Remove CC and CXX.
1575 * configure.ac (ACX_NONCANONICAL_TARGET): New.
1576 * asan/Makefile.am (AM_CXXFLAGS): Add -I for libstdc++-v3 header
1577 files.
1578 (AM_MAKEFLAGS): Remove CC and CXX.
1579 * interception/Makefile.am: Likewise.
1580 * sanitizer_common/Makefile.am: Likewise.
1581 * tsan/Makefile.am: Likewise.
1582 * Makefile.in: Regenerated.
1583 * aclocal.m4: Likewise.
1584 * configure: Likewise.
1585 * asan/Makefile.in: Likewise.
1586 * interception/Makefile.in: Likewise.
1587 * sanitizer_common/Makefile.in: Likewise.
1588 * tsan/Makefile.in: Likewise.
1589
4ba5ca46
KS
15902012-11-27 Kostya Serebryany <kcc@google.com>
1591
1592 * All files: Merge from upstream r168699.
1593
41d37c56 15942012-11-24 Kostya Serebryany <kcc@google.com>
ecdbd01a 1595 Jack Howarth <howarth@bromo.med.uc.edu>
f246eadc
JH
1596
1597 * interception/mach_override/mach_override.c: Migrate from llvm.
1598 * interception/mach_override/mach_override.h: Likewise.
1599 * interception/mach_override/LICENSE.txt: Likewise.
1600 * configure.tgt: Add darwin to supported targets.
1601 * configure.ac: Define USING_MACH_OVERRIDE when on darwin.
1602 * interception/Makefile.am: Compile mach_override.c when
1603 USING_MACH_OVERRIDE defined.
1604 * configure: Regenerated.
1605 * interception/Makefile.in: Likewise.
1606
9cb5411c
L
16072012-11-23 H.J. Lu <hongjiu.lu@intel.com>
1608
1609 PR sanitizer/55450
1610 * tsan/Makefile.am (gcc_version): New.
1611 * tsan/Makefile.in: Regenerated.
1612
3409d40e 16132012-11-23 Kostya Serebryany <kcc@google.com>
9cb5411c 1614
e297eb60
KS
1615 * merge.sh: Support tsan, support added/removed files.
1616 * tsan/Makefile.am: Remove tsan_printf.cc.
1617 * tsan/Makefile.in: Regenerated.
1618 * other files: Merge from upstream r168514.
1619
16202012-11-23 Kostya Serebryany <kcc@google.com>
9cb5411c 1621
e297eb60 1622 * merge.sh: New file.
3409d40e 1623
64548f3b
JJ
16242012-11-23 Jakub Jelinek <jakub@redhat.com>
1625
1626 * tsan/Makefile.am (AM_CXXFLAGS): Remove -Wno-variadic-macros.
1627 * Makefile.am (SUBDIRS): Guard tsan addition with TSAN_SUPPORTED
1628 automake conditional instead of !MULTISUBDIR32.
1629 * configure.tgt: Set TSAN_SUPPORTED=yes for x86_64/i686-linux
1630 for 64-bit multilib.
1631 * configure.ac: Check for void * size, source in configure.tgt,
1632 define TSAN_SUPPORTED conditional instead of MULTILIBDIR32.
1633 * configure: Regenerated.
1634 * Makefile.in: Regenerated.
1635 * tsan/Makefile.in: Regenerated.
1636
cd0be65c
WM
16372012-11-22 Wei Mi <wmi@google.com>
1638
1639 * tsan: New directory. Import tsan runtime from llvm.
1640 * configure.ac: Add 64 bits tsan build.
1641 * Makefile.am: Likewise.
1642 * configure: Regenerated.
1643 * Makefile.in: Likewise.
1644
5cba83a8
KS
16452012-11-21 Kostya Serebryany <kcc@google.com>
1646
9cb5411c 1647 * README.gcc: Extend the README.gcc with mode details.
5cba83a8 1648
b014e124
KS
16492012-11-20 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
1650
1651 * sanitizer_common/sanitizer_linux.cc
1652 (SANITIZER_LINUX_USES_64BIT_SYSCALLS): Define.
1653 (internal_mmap): Use it.
1654 (internal_filesize): Likewise.
1655
2b723e21
TT
16562012-11-16 Tom Tromey <tromey@redhat.com>
1657
1658 * configure.ac: Invoke AM_MAINTAINER_MODE.
1659 * aclocal.m4, configure, Makefile.in, asan/Makefile.in,
1660 interception/Makefile.in, sanitizer_common/Makefile.in: Rebuild.
1661
d1caed14
L
16622012-11-16 H.J. Lu <hongjiu.lu@intel.com>
1663
1664 PR other/55333
1665 * include/sanitizer/common_interface_defs.h (uhwptr): New type
1666 for hardware pointer.
1667 * sanitizer_common/sanitizer_stacktrace.cc (StackTrace::FastUnwindStack):
1668 Replace uptr with uhwptr for stack unwind.
1669
f3754998
DS
16702012-11-16 Dodji Seketeli <dodji@redhat.com>
1671
1672 * configure.tgt: Enable build on sparc linux.
1673
f64bcb29
L
16742012-11-15 H.J. Lu <hongjiu.lu@intel.com>
1675
1676 * configure.ac: Properly set MULTISUBDIR.
1677 * asan/Makefile.am (gcc_version): New.
1678 * interception/Makefile.am (gcc_version): Likewise.
1679 * sanitizer_common/Makefile.am (gcc_version): Likewise.
1680 * configure: Regenerated.
1681 * asan/Makefile.in: Likewise.
1682 * interception/Makefile.in: Likewise.
1683 * sanitizer_common/Makefile.in: Likewise.
1684
2a6346c4
L
16852012-11-14 H.J. Lu <hongjiu.lu@intel.com>
1686
1687 PR other/55291
1688 * configure.ac (--enable-version-specific-runtime-libs): New option.
1689 (AC_CANONICAL_SYSTEM): New.
1690 (AM_ENABLE_MULTILIB): Moved right after AM_INIT_AUTOMAKE.
1691 (toolexecdir): Support multilib.
1692 (toolexeclibdir): Likewise.
1693 (multilib_arg): New.
1694 * Makefile.in: Regenerated.
1695 * aclocal.m4: Likewise.
1696 * configure: Likewise.
1697 * asan/Makefile.in: Likewise.
1698 * interception/Makefile.in: Likewise.
1699 * sanitizer_common/Makefile.in: Likewise.
1700
4a56a7be
L
17012012-11-14 H.J. Lu <hongjiu.lu@intel.com>
1702
1703 PR other/55292
1704 Backport from upstream revision 167883
1705 * sanitizer_common/sanitizer_linux.cc (internal_mmap): Check
1706 __x86_64__ instead of __WORDSIZE.
1707 (internal_filesize): Likwise.
1708
4053ca2c
L
17092012-11-14 H.J. Lu <hongjiu.lu@intel.com>
1710
1711 * configure.ac (AC_CONFIG_AUX_DIR): Removed.
1712 * Makefile.in: Regenerated.
1713 * configure: Likewise.
1714
a2479b3d
L
17152012-11-13 H.J. Lu <hongjiu.lu@intel.com>
1716
1717 PR other/55304
1718 * acinclude.m4: New file.
1719 * Makefile.am (ACLOCAL_AMFLAGS): New.
1720 * configure.ac (AC_PREREQ): Set to 2.64.
1721 (AC_CONFIG_AUX_DIR): Set to "..".
1722 * Makefile.in: Regenerated.
1723 * aclocal.m4: Likewise.
1724 * configure: Likewise.
1725 * asan/Makefile.in: Likewise.
1726 * interception/Makefile.in: Likewise.
1727 * sanitizer_common/Makefile.in: Likewise.
1728
1729 * config.guess: Removed.
1730 * config.sub: Likewise.
1731 * depcomp: Likewise.
1732 * install-sh: Likewise.
1733 * ltmain.sh: Likewise.
1734 * missing: Likewise.
1735
93bf5390
RH
17362012-11-13 Richard Henderson <rth@redhat.com>
1737
1738 * configure.tgt: New file.
1739
d2860e72
DM
17402012-11-12 David S. Miller <davem@davemloft.net>
1741
1742 * asan/asan_linux.cc (GetPcSpBp): Add sparc support.
1743
f35db108
WM
17442012-10-29 Wei Mi <wmi@google.com>
1745
1746 Initial checkin: migrate asan runtime from llvm.