12020-07-23 Release Manager 2 3 * GCC 10.2.0 released. 4 52020-05-07 Release Manager 6 7 * GCC 10.1.0 released. 8 92020-03-01 Iain Sandoe <iain@sandoe.co.uk> 10 11 PR sanitizer/93731 12 * configure.tgt (x86_64-*-darwin*, i?86-*-darwin*): Enable by 13 default only for Darwin versions greater than 12 (macOS 10.8). 14 152020-01-24 Maciej W. Rozycki <macro@wdc.com> 16 17 * configure.ac: Handle `--with-toolexeclibdir='. 18 * Makefile.in: Regenerate. 19 * aclocal.m4: Regenerate. 20 * configure: Regenerate. 21 * asan/Makefile.in: Regenerate. 22 * interception/Makefile.in: Regenerate. 23 * libbacktrace/Makefile.in: Regenerate. 24 * lsan/Makefile.in: Regenerate. 25 * sanitizer_common/Makefile.in: Regenerate. 26 * tsan/Makefile.in: Regenerate. 27 * ubsan/Makefile.in: Regenerate. 28 292019-11-26 Jakub Jelinek <jakub@redhat.com> 30 31 PR sanitizer/92154 32 * sanitizer_common/sanitizer_platform_limits_posix.h: Cherry-pick 33 llvm-project revision 947f9692440836dcb8d88b74b69dd379d85974ce. 34 * sanitizer_common/sanitizer_platform_limits_posix.cpp: Likewise. 35 362019-11-20 Martin Liska <mliska@suse.cz> 37 38 * libtool-version: Remove. 39 * lsan/libtool-version: Upate comment to not mention libmudflap. 40 * tsan/libtool-version: Likewise. 41 * ubsan/libtool-version: Likewise. 42 432019-11-13 Andreas Schwab <schwab@suse.de> 44 45 * configure.tgt (riscv64-*-linux*): Enable build. 46 472019-11-07 Martin Liska <mliska@suse.cz> 48 49 * all source files: Reapply all revisions mentioned in LOCAL_PATCHES. 50 512019-11-07 Martin Liska <mliska@suse.cz> 52 53 * merge.sh: Update to use llvm-project git repository. 54 * all source files: Merge from upstream 55 82588e05cc32bb30807e480abd4e689b0dee132a. 56 572019-11-05 Martin Liska <mliska@suse.cz> 58 59 * ubsan/ubsan_flags.cpp (InitializeFlags): Trunk decided to print 60 summary for all sanitizers, but we want to have UBSAN without it. 61 622019-11-05 Martin Liska <mliska@suse.cz> 63 64 * asan/asan_globals.cpp (CheckODRViolationViaIndicator): Reapply from 65 LOCAL_PATCHES. 66 (CheckODRViolationViaPoisoning): Likewise. 67 (RegisterGlobal): Likewise. 68 * asan/asan_interceptors.h (ASAN_INTERCEPT___CXA_RETHROW_PRIMARY_EXCEPTION): Likewise. 69 (defined): Likewise. 70 * asan/asan_mapping.h: Likewise. 71 * sanitizer_common/sanitizer_linux_libcdep.cpp (defined): Likewise. 72 * sanitizer_common/sanitizer_mac.cpp (defined): Likewise. 73 * sanitizer_common/sanitizer_platform_limits_linux.cpp (defined): Likewise. 74 * sanitizer_common/sanitizer_platform_limits_posix.h: Likewise. 75 * sanitizer_common/sanitizer_stacktrace.cpp (GetCanonicFrame): Likewise. 76 * tsan/tsan_rtl_ppc64.S: Likewise. 77 * ubsan/ubsan_handlers.cpp (__ubsan::__ubsan_handle_cfi_bad_icall): Likewise. 78 (__ubsan::__ubsan_handle_cfi_bad_icall_abort): Likewise. 79 * ubsan/ubsan_handlers.h (struct CFIBadIcallData): Likewise. 80 (struct CFICheckFailData): Likewise. 81 (RECOVERABLE): Likewise. 82 * ubsan/ubsan_platform.h: Likewise. 83 842019-11-05 Martin Liska <mliska@suse.cz> 85 86 * tsan/Makefile.am: Rename tsan_interceptors.cpp to 87 tsan_interceptors_posix. 88 * tsan/Makefile.in: Regenerate. 89 902019-11-05 Martin Liska <mliska@suse.cz> 91 92 * all source files: Merge from upstream r375507. 93 942019-10-22 Tamar Christina <tamar.christina@arm.com> 95 96 PR sanitizer/92154 97 * sanitizer_common/sanitizer_platform_limits_posix.cpp: 98 Cherry-pick compiler-rt revision r375220. 99 1002019-09-27 Maciej W. Rozycki <macro@wdc.com> 101 102 * configure: Regenerate. 103 1042019-09-10 Christophe Lyon <christophe.lyon@st.com> 105 Mickaël Guêné <mickael.guene@st.com> 106 107 * configure.tgt (arm*-*-*fdpiceabi): Sanitizers are 108 unsupported in this configuration. 109 1102019-08-16 Iain Sandoe <iain@sandoe.co.uk> 111 112 * LOCAL_PATCHES: Add r274585. 113 1142019-08-16 Iain Sandoe <iain@sandoe.co.uk> 115 116 * asan/asan_interceptors.h: Reapply r272406. 117 1182019-08-15 Martin Liska <mliska@suse.cz> 119 120 * LOCAL_PATCHES: Add r274540 121 1222019-08-15 Martin Liska <mliska@suse.cz> 123 124 * tsan/tsan_rtl_ppc64.S: Reapply. 125 1262019-08-15 Iain Sandoe <iain@sandoe.co.uk> 127 128 PR bootstrap/91455 129 * Makefile.in: Regenerated. 130 * aclocal.m4: Likewise. 131 * asan/Makefile.in: Likewise. 132 * configure: Likewise. 133 * interception/Makefile.in: Likewise. 134 * libbacktrace/Makefile.in: Likewise. 135 * lsan/Makefile.in: Likewise. 136 * sanitizer_common/Makefile.am: Include top_srcdir unconditionally. 137 * sanitizer_common/Makefile.in: Regenerated. 138 * tsan/Makefile.in: Likewise. 139 * ubsan/Makefile.in: Likewise. 140 1412019-08-14 Martin Liska <mliska@suse.cz> 142 143 * LOCAL_PATCHES: Refresh based on what was committed. 144 1452019-08-14 Martin Liska <mliska@suse.cz> 146 147 * asan/asan_globals.cpp (CheckODRViolationViaIndicator): Reapply 148 patch from trunk. 149 (CheckODRViolationViaPoisoning): Likewise. 150 (RegisterGlobal): Likewise. 151 * asan/asan_mapping.h: Likewise. 152 * sanitizer_common/sanitizer_linux_libcdep.cpp (defined): Likewise. 153 * sanitizer_common/sanitizer_mac.cpp (defined): Likewise. 154 * sanitizer_common/sanitizer_platform_limits_linux.cpp (defined): Likewise. 155 * sanitizer_common/sanitizer_platform_limits_posix.h (defined): Likewise. 156 * sanitizer_common/sanitizer_stacktrace.cpp (GetCanonicFrame): Likewise. 157 * ubsan/ubsan_handlers.cpp (__ubsan::__ubsan_handle_cfi_bad_icall): Likewise. 158 (__ubsan::__ubsan_handle_cfi_bad_icall_abort): Likewise. 159 * ubsan/ubsan_handlers.h (struct CFIBadIcallData): Likewise. 160 (struct CFICheckFailData): Likewise. 161 (RECOVERABLE): Likewise. 162 * ubsan/ubsan_platform.h: Likewise. 163 1642019-08-14 Martin Liska <mliska@suse.cz> 165 166 PR sanitizer/89832 167 PR sanitizer/91325 168 * All source files: Merge from upstream 368656. 169 1702019-06-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 171 172 * sanitizer_common/sanitizer_posix_libcdep.cc: Cherry-pick 173 compiler-rt revision 363778. 174 1752019-06-18 Iain Sandoe <iain@sandoe.co.uk> 176 177 PR libsanitizer/87880 178 * asan/asan_interceptors.h: 179 (ASAN_INTERCEPT___CXA_RETHROW_PRIMARY_EXCEPTION): New. 180 * asan/Makefile.am (DEFS): Add 181 ASAN_HAS_CXA_RETHROW_PRIMARY_EXCEPTION, defined to 0. 182 * asan/Makefile.in: Regenerated. 183 * asan/libtool-version: Bump version. 184 1852019-05-27 Segher Boessenkool <segher@kernel.crashing.org> 186 187 PR target/90639 188 * tsan/tsan_rtl_ppc64.S: Add ".machine altivec". 189 1902019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 191 192 * configure.ac (have_dl_iterate_phdr): Remove *-*-solaris2.10* 193 handling. 194 * configure: Regenerate. 195 1962019-04-08 Martin Liska <mliska@suse.cz> 197 198 * LOCAL_PATCHES: Add revision. 199 2002019-04-08 Martin Liska <mliska@suse.cz> 201 202 PR sanitizer/89941 203 * sanitizer_common/sanitizer_platform_limits_linux.cc (defined): 204 Reapply patch from r259664. 205 * sanitizer_common/sanitizer_platform_limits_posix.h (defined): 206 Likewise. 207 2082019-03-13 Eric Botcazou <ebotcazou@adacore.com> 209 210 PR sanitizer/80953 211 Merge from LLVM revision 355980 212 * asan/asan_allocator.h (kAllocatorSpace): Define for SPARC. 213 (kAllocatorSize): Likewise. 214 (DefaultSizeClassMap): Likewise. 215 * asan/asan_mapping.h (kSPARC64_ShadowOffset64): Define. 216 (SHADOW_OFFSET): Define for SPARC. 217 Include asan_mapping_sparc64.h for SPARC 64-bit. 218 * asan/asan_mapping_sparc64.h: New file. 219 2202019-03-13 Eric Botcazou <ebotcazou@adacore.com> 221 222 PR sanitizer/80953 223 Merge from LLVM revision 355979 224 * asan/asan_globals.c (GetGlobalsForAddress): Use internal_memcpy to 225 copy Global objects for SPARC with GCC. 226 2272019-03-13 Eric Botcazou <ebotcazou@adacore.com> 228 229 PR sanitizer/80953 230 Merge from LLVM revision 355978 231 * sanitizer_common/sanitizer_allocator_primary32.h 232 (class SizeClassAllocator32): Assert that kSpaceSize is power of 2 if 233 SANITIZER_SIGN_EXTENDED_ADDRESSES is set. 234 (PointerIsMine): Deal with SANITIZER_SIGN_EXTENDED_ADDRESSES. 235 (ComputeRegionId): Likewise. 236 * sanitizer_common/sanitizer_linux.cc (GetMaxVirtualAddress): Return 237 appropriate value for SPARC 64-bit. 238 * sanitizer_common/sanitizer_platform.h (SANITIZER_MMAP_RANGE_SIZE): 239 Define for SPARC. 240 (SANITIZER_SIGN_EXTENDED_ADDRESSES): Define to 1 for SPARC 64-bit. 241 2422019-03-13 Eric Botcazou <ebotcazou@adacore.com> 243 244 PR sanitizer/80953 245 Merge from LLVM revision 355965 246 * sanitizer_common/sanitizer_linux.cc (GetWriteFlag): Implement for 247 SPARC/Linux. 248 (GetPcSpBp): Likewise. 249 * sanitizer_common/sanitizer_stacktrace.cc (GetNextInstructionPc): 250 Adjust for SPARC. 251 * sanitizer_common/sanitizer_stacktrace.h (SANITIZER_CAN_FAST_UNWIND): 252 Define to 1 for SPARC. 253 * sanitizer_common/sanitizer_stacktrace_sparc.cc: Rewrite. 254 * sanitizer_common/sanitizer_unwind_linux_libcdep.cc (SlowUnwindStack): 255 Adjust the PC address for SPARC with GCC. 256 2572019-03-06 Martin Liska <mliska@suse.cz> 258 259 PR sanitizer/88684 260 * sanitizer_common/sanitizer_platform.h (defined): Cherry pick. 261 (SANITIZER_NON_UNIQUE_TYPEINFO): Likewise. 262 * ubsan/ubsan_type_hash_itanium.cc (isDerivedFromAtOffset): 263 Likewise. 264 2652019-02-20 H.J. Lu <hongjiu.lu@intel.com> 266 267 PR sanitizer/89409 268 * sanitizer_common/sanitizer_linux.cc (internal_readlink): 269 Cherry-pick compiler-rt r354451. 270 2712019-01-23 Jonny Grant <jg@jguk.org> 272 273 PR sanitizer/89010 274 * libsanitizer/README.gcc: Update to current https URLs. 275 2762018-12-27 Martin Liska <mliska@suse.cz> 277 278 PR sanitizer/86229 279 * asan/asan_errors.cc (ErrorAllocTypeMismatch::Print): Cherry 280 pick rL350085. 281 * asan/asan_errors.h (struct ErrorAllocTypeMismatch): Likewise. 282 2832018-11-09 Martin Liska <mliska@suse.cz> 284 285 * LOCAL_PATCHES: Include one local patch. 286 2872018-11-09 Martin Liska <mliska@suse.cz> 288 289 PR sanitizer/87892 290 * sanitizer_common/sanitizer_linux_libcdep.cc (defined): Return 291 1 when CPU_COUNT macro is not defined. 292 2932018-11-08 Bill Seurer <seurer@linux.vnet.ibm.com> 294 295 * libsanitizer/sanitizer_common/sanitizer_linux.cc (CheckASLR): 296 Disable ASLR for powerpc64 when using sanitizers. 297 2982018-11-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 299 300 PR sanitizer/80953 301 * configure.tgt (sparc*-*-solaris2.11*): Enable. 302 (x86_64-*-solaris2.11* | i?86-*-solaris2.11*): Enable. 303 3042018-11-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 305 306 PR sanitizer/80953 307 * sanitizer_common/sanitizer_internal_defs.h, 308 sanitizer_common/sanitizer_platform_limits_solaris.h, 309 sanitizer_common/sanitizer_procmaps_solaris.cc, 310 sanitizer_common/sanitizer_solaris.cc: Cherry-pick compiler-rt 311 revision 346153. 312 * sanitizer_common/sanitizer_stacktrace.h, 313 sanitizer_common/sanitizer_stacktrace_sparc.cc: Cherry-pick 314 compiler-rt revision 346155. 315 3162018-11-05 Segher Boessenkool <segher@kernel.crashing.org> 317 318 * LOCAL_PATCHES: Add r258525. 319 * sanitizer_common/sanitizer_stacktrace.cc 320 (BufferedStackTrace::FastUnwindStack): Use the correct frame offset 321 for PowerPC SYSV ABI. 322 3232018-11-05 Martin Liska <mliska@suse.cz> 324 325 PR sanitizer/87860 326 * sanitizer_common/sanitizer_linux.cc: Cherry-pick upstream 327 r346129. 328 3292018-10-31 Joseph Myers <joseph@codesourcery.com> 330 331 PR bootstrap/82856 332 * Makefile.am: Include multilib.am. 333 * configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE. 334 * Makefile.in, aclocal.m4, asan/Makefile.in, configure, 335 interception/Makefile.in, libbacktrace/Makefile.in, 336 lsan/Makefile.in, sanitizer_common/Makefile.in, tsan/Makefile.in, 337 ubsan/Makefile.in: Regenerate. 338 3392018-10-31 Martin Liska <mliska@suse.cz> 340 341 * LOCAL_PATCHES: Update to installed revisions. 342 3432018-10-31 Martin Liska <mliska@suse.cz> 344 345 * ubsan/ubsan_platform.h: Add ifndef as we define it with 346 -DCAN_SANITIZE_UB CFLAGS. 347 3482018-10-31 Martin Liska <mliska@suse.cz> 349 350 * asan/asan_mapping.h: Revert shadow memory offset to 1 << 41. 351 3522018-10-31 Martin Liska <mliska@suse.cz> 353 354 * LOCAL_PATCHES: Update patch list. 355 * asan/asan_globals.cc (CheckODRViolationViaIndicator): Apply 356 patches from GCC's trunk. 357 (CheckODRViolationViaPoisoning): Likewise. 358 (RegisterGlobal): Likewise. 359 * sanitizer_common/sanitizer_mac.cc (defined): Likewise. 360 * sanitizer_common/sanitizer_stacktrace.cc (GetCanonicFrame): Likewise. 361 * ubsan/ubsan_handlers.cc (__ubsan::__ubsan_handle_cfi_bad_icall): Likewise. 362 (__ubsan::__ubsan_handle_cfi_bad_icall_abort): Likewise. 363 * ubsan/ubsan_handlers.h (struct CFIBadIcallData): Likewise. 364 (struct CFICheckFailData): Likewise. 365 (RECOVERABLE): Likewise. 366 3672018-10-31 Martin Liska <mliska@suse.cz> 368 369 * config.h.in: Regenerate. 370 * configure: Likewise. 371 * sanitizer_common/Makefile.am: Include new files, remove old 372 files. 373 * sanitizer_common/Makefile.in: Regenerate. 374 * ubsan/Makefile.am: Include new files, remove old 375 files. 376 * ubsan/Makefile.in: Likewise. 377 * asan/Makefile.am: Include new files. 378 * asan/Makefile.in: Regenerate. 379 3802018-10-31 Martin Liska <mliska@suse.cz> 381 382 * All source files: Merge from upstream 345033. 383 3842018-10-31 Martin Liska <mliska@suse.cz> 385 386 * HOWTO_MERGE: Enhance documentation. 387 * merge.sh: Add support for git as well. 388 3892018-08-02 Martin Liska <mliska@suse.cz> 390 391 PR sanitizer/86022 392 * sanitizer_common/sanitizer_linux_libcdep.cc (ThreadDescriptorSize): 393 Cherry-pick compiler-rt revision 338606. 394 3952018-08-01 Marek Polacek <polacek@redhat.com> 396 397 PR sanitizer/86759 398 * tsan/tsan_platform.h: Cherry-pick compiler-rt revision 318044. 399 * tsan/tsan_platform_linux.cc: Cherry-pick compiler-rt revision 400 319180. 401 4022018-07-25 H.J. Lu <hongjiu.lu@intel.com> 403 404 PR target/86560 405 * asan/asan_interceptors.cc (swapcontext) Cherry-pick 406 compiler-rt revision 337603. 407 * sanitizer_common/sanitizer_internal_defs.h (__has_attribute): 408 Likewise. 409 4102018-07-05 Jakub Jelinek <jakub@redhat.com> 411 412 Revert 413 2018-07-04 Maxim Ostapenko <m.ostapenko@samsung.com> 414 415 PR sanitizer/84250 416 * Makefile.am: Reorder libs. 417 * Makefile.in: Regenerate. 418 * asan/Makefile.am: Define DCAN_SANITIZE_UB=1, add dependancy from 419 libsanitizer_ubsan.la. 420 * asan/Makefile.in: Regenerate. 421 * ubsan/Makefile.am: Define new libsanitizer_ubsan.la library. 422 * ubsan/Makefile.in: Regenerate. 423 4242018-07-04 Maxim Ostapenko <m.ostapenko@samsung.com> 425 426 PR sanitizer/84250 427 * Makefile.am: Reorder libs. 428 * Makefile.in: Regenerate. 429 * asan/Makefile.am: Define DCAN_SANITIZE_UB=1, add dependancy from 430 libsanitizer_ubsan.la. 431 * asan/Makefile.in: Regenerate. 432 * ubsan/Makefile.am: Define new libsanitizer_ubsan.la library. 433 * ubsan/Makefile.in: Regenerate. 434 4352018-06-13 Denis Khalikov <d.khalikov@partner.samsung.com> 436 437 PR sanitizer/86090 438 * configure.ac: Check for lstat and readlink. 439 * configure, config.h.in: Rebuild. 440 4412018-05-31 Matthias Klose <doko@ubuntu.com> 442 443 PR sanitizer/86012 444 * sanitizer_common/sanitizer_platform_limits_posix.cc: Define 445 SIZEOF_STRUCT_USTAT for 32bit sparc. 446 4472018-05-24 H.J. Lu <hongjiu.lu@intel.com> 448 449 PR sanitizer/85835 450 * sanitizer_common/sanitizer_platform_limits_posix.cc: Don't 451 include <sys/ustat.h> for Linux. 452 (SIZEOF_STRUCT_USTAT): New. 453 (struct_ustat_sz): Use SIZEOF_STRUCT_USTAT for Linux. 454 4552018-04-26 Hans-Peter Nilsson <hp@axis.com> 456 457 * configure.tgt <mips*-*-linux*>: Enable build, excluding 458 mips*64*-*-linux*. 459 460 * sanitizer_common/sanitizer_platform_limits_linux.cc: Do not 461 take the shortcut to #include <sys/stat.h> for MIPS instead of 462 the kernel <asm/stat.h>. Explain why sys/stat.h is misleading 463 or wrong to get the kernel struct stat. 464 * sanitizer_common/sanitizer_platform_limits_posix.h [__mips__]: 465 Correct the value for 32-bit non-android struct_kernel_stat_sz. 466 467 * sanitizer_common/sanitizer_atomic_clang_other.h [_MIPS_SIM 468 && _MIPS_SIM == _ABIO32] (lock): Add initializer for .pad member. 469 4702018-04-24 H.J. Lu <hongjiu.lu@intel.com> 471 472 * configure: Regenerated. 473 4742018-04-19 Jakub Jelinek <jakub@redhat.com> 475 476 * configure: Regenerated. 477 4782018-04-18 David Malcolm <dmalcolm@redhat.com> 479 480 PR jit/85384 481 * configure: Regenerate. 482 4832018-04-18 Bill Seurer <seurer@linux.vnet.ibm.com> 484 485 PR sanitizer/85389 486 * asan/asan_allocator.h (kAllocatorSpace): For __powerpc64__ change 487 from 0xa0000000000ULL to ~(uptr)0. 488 4892018-03-19 Jakub Jelinek <jakub@redhat.com> 490 491 PR sanitizer/84761 492 * sanitizer_common/sanitizer_linux_libcdep.cc (__GLIBC_PREREQ): 493 Define if not defined. 494 (DL_INTERNAL_FUNCTION): Don't define. 495 (InitTlsSize): For __i386__ if not compiled against glibc 2.27+ 496 determine at runtime whether to use regparm(3), stdcall calling 497 convention for older glibcs or normal calling convention for 498 newer glibcs for call to _dl_get_tls_static_info. 499 5002018-03-14 Segher Boessenkool <segher@kernel.crashing.org> 501 502 * sanitizer_common/sanitizer_stacktrace.cc 503 (BufferedStackTrace::FastUnwindStack): Use the correct frame offset 504 for PowerPC SYSV ABI. 505 5062018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com> 507 508 PR target/84148 509 * configure: Regenerate. 510 5112018-02-05 Martin Liska <mliska@suse.cz> 512 513 * asan/asan_flags.inc: Cherry-pick upstream r323995. 514 * asan/asan_report.cc (CheckForInvalidPointerPair): 515 Cherry-pick upstream r323995. 516 5172018-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 518 519 PR sanitizer/82825 520 * sanitizer_common/sanitizer_internal_defs.h: Cherry-pick upstream 521 r324284. 522 5232018-01-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 524 525 PR sanitizer/82824 526 * lsan/lsan_common_mac.cc: Cherry-pick upstream r322437. 527 5282017-12-05 Martin Liska <mliska@suse.cz> 529 Jakub Jelinek <jakub@redhat.com> 530 531 * asan/asan_descriptions.cc: Cherry-pick upstream r319668. 532 * asan/asan_descriptions.h: Likewise. 533 * asan/asan_report.cc: Likewise. 534 * asan/asan_thread.cc: Likewise. 535 * asan/asan_thread.h: Likewise. 536 5372017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com> 538 539 * acinclude.m4: Add enable.m4 and cet.m4. 540 * Makefile.in: Regenerate. 541 * asan/Makefile.am: Update AM_CXXFLAGS. 542 * asan/Makefile.in: Regenerate. 543 * configure: Likewise. 544 * configure.ac: Set CET_FLAGS. Update EXTRA_CFLAGS, 545 EXTRA_CXXFLAGS, EXTRA_ASFLAGS. 546 * interception/Makefile.am: Update AM_CXXFLAGS. 547 * interception/Makefile.in: Regenerate. 548 * libbacktrace/Makefile.am: Update AM_CFLAGS, AM_CXXFLAGS. 549 * libbacktrace/Makefile.in: Regenerate. 550 * lsan/Makefile.am: Update AM_CXXFLAGS. 551 * lsan/Makefile.in: Regenerate. 552 * sanitizer_common/Makefile.am: Update AM_CXXFLAGS, 553 AM_CCASFLAGS. 554 * sanitizer_common/sanitizer_linux_x86_64.S: Include cet.h. 555 Add _CET_ENDBR macro. 556 * sanitizer_common/Makefile.in: Regenerate. 557 * tsan/Makefile.am: Update AM_CXXFLAGS. 558 * tsan/Makefile.in: Regenerate. 559 * tsan/tsan_rtl_amd64.S Include cet.h. Add _CET_ENDBR macro. 560 * ubsan/Makefile.am: Update AM_CXXFLAGS. 561 * ubsan/Makefile.in: Regenerate. 562 5632017-11-08 Jakub Jelinek <jakub@redhat.com> 564 565 PR bootstrap/82670 566 * ubsan/Makefile.am (ubsan_files): Remove ubsan_init_standalone.cc 567 and ubsan_signals_standalone.cc. 568 * ubsan/Makefile.in: Regenerated. 569 5702017-11-05 Tom de Vries <tom@codesourcery.com> 571 572 PR other/82784 573 * asan/asan_poisoning.cc (CHECK_SMALL_REGION): Remove semicolon after 574 "do {} while (0)". 575 * lsan/lsan_common.cc (LOG_POINTERS, LOG_THREADS): Same. 576 5772017-10-20 Jakub Jelinek <jakub@redhat.com> 578 579 PR sanitizer/82595 580 * lsan/lsan.h (__lsan_init): Add SANITIZER_INTERFACE_ATTRIBUTE. 581 * lsan/Makefile.am (nodist_toolexeclib_HEADERS): Add 582 liblsan_preinit.o. 583 (lsan_files): Remove lsan_preinit.cc. 584 (liblsan_preinit.o): New rule. 585 * lsan/Makefile.in: Regenerated. 586 5872017-10-19 Jakub Jelinek <jakub@redhat.com> 588 589 * All source files: Merge from upstream 315899. 590 * asan/Makefile.am (nodist_saninclude_HEADERS): Add 591 include/sanitizer/tsan_interface.h. 592 * asan/libtool-version: Bump the libasan SONAME. 593 * lsan/Makefile.am (sanitizer_lsan_files): Add lsan_common_mac.cc. 594 (lsan_files): Add lsan_linux.cc, lsan_mac.cc and lsan_malloc_mac.cc. 595 * sanitizer_common/Makefile.am (sanitizer_common_files): Add 596 sancov_flags.cc, sanitizer_allocator_checks.cc, 597 sanitizer_coverage_libcdep_new.cc, sanitizer_errno.cc, 598 sanitizer_file.cc, sanitizer_mac_libcdep.cc and 599 sanitizer_stoptheworld_mac.cc. Remove sanitizer_coverage_libcdep.cc 600 and sanitizer_coverage_mapping_libcdep.cc. 601 * tsan/Makefile.am (tsan_files): Add tsan_external.cc. 602 * ubsan/Makefile.am (DEFS): Add -DUBSAN_CAN_USE_CXXABI=1. 603 (ubsan_files): Add ubsan_init_standalone.cc and 604 ubsan_signals_standalone.cc. 605 * ubsan/libtool-version: Bump the libubsan SONAME. 606 * asan/Makefile.in: Regenerate. 607 * lsan/Makefile.in: Regenerate. 608 * sanitizer_common/Makefile.in: Regenerate. 609 * tsan/Makefile.in: Regenerate. 610 * ubsan/Makefile.in: Regenerate. 611 6122017-10-05 H.J. Lu <hongjiu.lu@intel.com> 613 614 PR sanitizer/82379 615 * configure.tgt (SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS): Set 616 to sanitizer_linux_x86_64.lo if __x86_64__ is defined by $CC. 617 6182017-10-02 Jakub Jelinek <jakub@redhat.com> 619 620 * libbacktrace/backtrace-rename.h (backtrace_uncompress_zdebug): 621 Define. 622 6232017-08-07 Jakub Jelinek <jakub@redhat.com> 624 625 * include/system/sys/ptrace.h: New file. 626 6272017-07-28 Jakub Jelinek <jakub@redhat.com> 628 629 PR sanitizer/80998 630 * ubsan/ubsan_handlers.cc: Cherry-pick upstream r304461. 631 * ubsan/ubsan_checks.inc: Likewise. 632 * ubsan/ubsan_handlers.h: Likewise. 633 6342017-07-14 Jakub Jelinek <jakub@redhat.com> 635 636 PR sanitizer/81066 637 * sanitizer_common/sanitizer_linux.h: Cherry-pick upstream r307969. 638 * sanitizer_common/sanitizer_linux.cc: Likewise. 639 * sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc: Likewise. 640 * tsan/tsan_platform_linux.cc: Likewise. 641 6422017-04-06 Martin Liska <mliska@suse.cz> 643 644 PR sanitizer/80166 645 * sanitizer_common/sanitizer_common_interceptors.inc (INTERCEPTOR): 646 Cherry-pick upstream r299036. 647 6482017-03-22 Jakub Jelinek <jakub@redhat.com> 649 650 PR sanitizer/78158 651 * tsan/tsan_interface_atomic.cc: Cherry-pick upstream r298378. 652 6532017-02-16 Andreas Tobler <andreast@gcc.gnu.org> 654 655 PR sanitizer/79562 656 * sanitizer_common/sanitizer_platform_limits_posix.cc: Cherry-pick 657 upstream r294806. 658 6592017-02-11 Jakub Jelinek <jakub@redhat.com> 660 661 PR sanitizer/79341 662 * configure.tgt (s390*-*-linux*): Don't disable libsanitizer on 663 s390-linux 31-bit. 664 * sanitizer_common/sanitizer_internal_defs.h: Cherry-pick upstream 665 r294793. 666 * sanitizer_common/sanitizer_common_interceptors.inc: Cherry-pick 667 upstream r294790. 668 * sanitizer_common/sanitizer_linux_s390.cc: Cherry-pick upstream 669 r294799. 670 6712017-02-03 Maxim Ostapenko <m.ostapenko@samsung.com> 672 673 PR sanitizer/78663 674 * sanitizer_common/sanitizer_mac.cc: Cherry-pick upstream r293992. 675 * sanitizer_common/sanitizer_platform_interceptors.h: Likewise. 676 6772017-01-31 Jakub Jelinek <jakub@redhat.com> 678 679 * configure.tgt: Enable asan and ubsan on 64-bit s390*-*-linux*. 680 6812017-01-24 Jakub Jelinek <jakub@redhat.com> 682 683 * configure.tgt: Enable tsan and lsan on powerpc64{,le}-*-linux*. 684 685 PR sanitizer/79168 686 * merge.sh (change_comment_headers): Don't remove 2nd and 3rd line 687 if the 3rd line doesn't contain 'The LLVM Compiler Infrastructure' 688 text. 689 * sanitizer_common/sanitizer_linux_mips64.S: Regenerated. 690 * sanitizer_common/sanitizer_linux_x86_64.S: Likewise. 691 * tsan/tsan_ppc_regs.h: Likewise. 692 * tsan/tsan_rtl_aarch64.S: Likewise. 693 * tsan/tsan_rtl_mips64.S: Likewise. 694 * tsan/tsan_rtl_ppc64.S: Likewise. 695 6962017-01-21 Jakub Jelinek <jakub@redhat.com> 697 698 PR other/79046 699 * interception/Makefile.am (gcc_version): Use @get_gcc_base_ver@ 700 instead of cat to get version from BASE-VER file. 701 * asan/Makefile.am (gcc_version): Likewise. 702 * ubsan/Makefile.am (gcc_version): Likewise. 703 * sanitizer_common/Makefile.am (gcc_version): Likewise. 704 * lsan/Makefile.am (gcc_version): Likewise. 705 * tsan/Makefile.am (gcc_version): Likewise. 706 * interception/Makefile.in: Regenerated. 707 * asan/Makefile.in: Regenerated. 708 * ubsan/Makefile.in: Regenerated. 709 * sanitizer_common/Makefile.in: Regenerated. 710 * lsan/Makefile.in: Regenerated. 711 * tsan/Makefile.in: Regenerated. 712 7132017-01-17 Jakub Jelinek <jakub@redhat.com> 714 715 PR other/79046 716 * configure.ac: Add GCC_BASE_VER. 717 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to 718 get version from BASE-VER file. 719 * libbacktrace/Makefile.in: Regenerated. 720 * interception/Makefile.in: Regenerated. 721 * asan/Makefile.in: Regenerated. 722 * ubsan/Makefile.in: Regenerated. 723 * configure: Regenerated. 724 * sanitizer_common/Makefile.in: Regenerated. 725 * lsan/Makefile.in: Regenerated. 726 * Makefile.in: Regenerated. 727 * tsan/Makefile.in: Regenerated. 728 7292017-01-10 James Clarke <jrtc27@jrtc27.com> 730 731 PR sanitizer/78992 732 * sanitizer_common/sanitizer_platform_limits_posix.h 733 (struct __sanitizer_sigaction): Cherry-pick upstream r291561. 734 7352016-11-30 Maxim Ostapenko <m.ostapenko@samsung.com> 736 737 * LOCAL_PATCHES: Add revision. 738 7392016-11-30 Maxim Ostapenko <m.ostapenko@samsung.com> 740 741 PR sanitizer/78532 742 * sanitizer_common/sanitizer_platform_limits_posix.h 743 (__sanitizer_sigaction): Adjust for sparc targets and various Glibc 744 versions. 745 7462016-11-29 Markus Trippelsdorf <markus@trippelsdorf.de> 747 748 * LOCAL_PATCHES: Remove r242480. 749 7502016-11-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 751 752 * LOCAL_PATCHES: Add revision. 753 7542016-11-20 Jack Howarth <howarth.at.gcc@gmail.com> 755 756 PR sanitizer/78267 757 * sanitizer_common/sanitizer_mac.cc: Include <os/trace.h> only if 758 compiler supports blocks extension. 759 7602016-11-16 Markus Trippelsdorf <markus@trippelsdorf.de> 761 762 * LOCAL_PATCHES: Add revision. 763 7642016-11-16 Markus Trippelsdorf <markus@trippelsdorf.de> 765 766 PR sanitizer/78294 767 * tsan/tsan_rtl.cc: Add missing attribute. 768 7692016-11-16 Maxim Ostapenko <m.ostapenko@samsung.com> 770 771 * LOCAL_PATCHES: New file. 772 7732016-11-16 Maxim Ostapenko <m.ostapenko@samsung.com> 774 775 PR sanitizer/78307 776 * ubsan/ubsan_handlers.cc (__ubsan_handle_cfi_bad_icall): New function. 777 ( __ubsan_handle_cfi_bad_icall_abort): Likewise. 778 * ubsan/ubsan_handlers.h (struct CFIBadIcallData): New type. 779 * ubsan/ubsan_handlers_cxx.cc (__ubsan_handle_cfi_bad_type): New 780 function. 781 (__ubsan_handle_cfi_bad_type_abort): Likewise. 782 * ubsan/ubsan_handlers_cxx.h (struct CFIBadTypeData): New type. 783 (__ubsan_handle_cfi_bad_type): Export function. 784 (__ubsan_handle_cfi_bad_type_abort): Likewise. 785 * HOWTO_MERGE: Update documentation. 786 7872016-11-15 Matthias Klose <doko@ubuntu.com> 788 789 * configure: Regenerate. 790 7912016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com> 792 793 * asan/asan_globals.cc (RegisterGlobal): Do not call 794 CheckODRViolationViaPoisoning. 795 (CheckODRViolationViaPoisoning): Remove. 796 7972016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com> 798 799 * sanitizer_common/sanitizer_stacktrace.cc (GetCanonicFrame): Assume we 800 compiled code with GCC when extracting the caller PC for ARM if no 801 valid frame pointer is available. 802 8032016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com> 804 805 PR sanitizer/63958 806 Reapply: 807 2014-10-14 David S. Miller <davem@davemloft.net> 808 809 * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t): 810 Define at __kernel_time_t, as needed for sparc. 811 (struct __old_kernel_stat): Don't check if __sparc__ is defined. 812 * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h 813 (__sanitizer): Define struct___old_kernel_stat_sz, 814 struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc. 815 (__sanitizer_ipc_perm): Adjust for sparc targets. 816 (__sanitizer_shmid_ds): Likewsie. 817 (__sanitizer_sigaction): Likewise. 818 (IOC_SIZE): Likewsie. 819 8202016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com> 821 822 * All source files: Merge from upstream 285547. 823 * configure.tgt (SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS): New 824 variable. 825 * configure.ac (SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS): Handle it. 826 * asan/Makefile.am (asan_files): Add new files. 827 * asan/Makefile.in: Regenerate. 828 * ubsan/Makefile.in: Likewise. 829 * lsan/Makefile.in: Likewise. 830 * tsan/Makefile.am (tsan_files): Add new files. 831 * tsan/Makefile.in: Regenerate. 832 * sanitizer_common/Makefile.am (sanitizer_common_files): Add new files. 833 (EXTRA_libsanitizer_common_la_SOURCES): Define. 834 (libsanitizer_common_la_LIBADD): Likewise. 835 (libsanitizer_common_la_DEPENDENCIES): Likewise. 836 * sanitizer_common/Makefile.in: Regenerate. 837 * interception/Makefile.in: Likewise. 838 * libbacktace/Makefile.in: Likewise. 839 * Makefile.in: Likewise. 840 * configure: Likewise. 841 * merge.sh: Handle builtins/assembly.h merging. 842 * builtins/assembly.h: New file. 843 * asan/libtool-version: Bump the libasan SONAME. 844 8452016-09-21 Jakub Jelinek <jakub@redhat.com> 846 847 PR sanitizer/77567 848 * asan/asan_new_delete.cc: Cherry-pick upstream r282019. 849 8502016-09-05 Jakub Jelinek <jakub@redhat.com> 851 852 PR sanitizer/77396 853 * asan/asan_globals.cc: Cherry-pick upstream r280657. 854 8552016-08-12 Jakub Jelinek <jakub@redhat.com> 856 857 PR sanitizer/71042 858 * tsan/tsan_platform_linux.cc: Cherry-pick upstream r278292. 859 * tsan/tsan_rtl_aarch64.S: Likewise. 860 8612016-07-23 Alan Modra <amodra@gmail.com> 862 863 Revert 2015-11-09 Alan Modra <amodra@gmail.com> 864 * configure.ac: Don't substitute OBSTACK_DEFS. 865 * asan/Makefile.am: Remove OBSTACK_DEFS from DEFS. 866 * tsan/Makefile.am: Likewise. 867 * configure: Regenerate. 868 * Makefile.in: Regenerate. 869 * asan/Makefile.in: Regenerate. 870 * interception/Makefile.in: Regenerate. 871 * libbacktrace/Makefile.in: Regenerate. 872 * lsan/Makefile.in: Regenerate. 873 * sanitizer_common/Makefile.in: Regenerate. 874 * tsan/Makefile.in: Regenerate. 875 * ubsan/Makefile.in: Regenerate. 876 8772016-05-17 Jakub Jelinek <jakub@redhat.com> 878 879 PR sanitizer/71160 880 * asan/asan_malloc_linux.cc: Cherry pick upstream r254395 881 and r269633. 882 8832016-04-21 Maxim Ostapenko <m.ostapenko@samsung.com> 884 885 PR sanitizer/70624 886 * asan/asan_mac.cc: Cherry pick upstream r266868. 887 8882016-01-19 Jakub Jelinek <jakub@redhat.com> 889 890 PR sanitizer/68824 891 * tsan/tsan_interceptors.cc (NEED_TLS_GET_ADDR, __tls_get_addr, 892 InitializeInterceptors): Cherry pick upstream r258119. 893 8942016-01-14 Andreas Tobler <andreast@gcc.gnu.org> 895 896 * configure.ac: Replace the hard-coded -ldl requirement for 897 link_sanitizer_common with a configure time check for -ldl. 898 * configure: Regenerate. 899 9002015-11-24 Maxim Ostapenko <m.ostapenko@partner.samsung.com> 901 902 * include/system/linux/asm/ptrace.h: Move to ... 903 * include/system/asm/ptrace.h: ... this. 904 9052015-11-24 Maxim Ostapenko <m.ostapenko@partner.samsung.com> 906 907 * include/system/linux/asm/ptrace.h: New header. 908 9092015-11-23 Maxim Ostapenko <m.ostapenko@partner.samsung.com> 910 911 * All source files: Merge from upstream r253555. 912 * configure.tgt: Enable LSan on aarch64-*-linux* targets. Add new 913 dependences for TSan for aarch64-*-linux* targets. 914 * tsan/Makefile.am: Add new source files. 915 * configure: Regenerate. 916 * tsan/Makefile.in: Likewise. 917 9182015-11-09 Alan Modra <amodra@gmail.com> 919 920 * sanitizer_common/sanitizer_common_interceptors.inc: Update size 921 params for _obstack_begin_1, _obstack_begin, _obstack_newchunk 922 interceptors. 923 * configure.ac: Substitute OBSTACK_DEFS. 924 * asan/Makefile.am: Add OBSTACK_DEFS to DEFS. 925 * tsan/Makefile.am: Likewise. 926 * configure: Regenerate. 927 * Makefile.in: Regenerate. 928 * asan/Makefile.in: Regenerate. 929 * interception/Makefile.in: Regenerate. 930 * libbacktrace/Makefile.in: Regenerate. 931 * lsan/Makefile.in: Regenerate. 932 * sanitizer_common/Makefile.in: Regenerate. 933 * tsan/Makefile.in: Regenerate. 934 * ubsan/Makefile.in: Regenerate. 935 9362015-10-22 Maxim Ostapenko <m.ostapenko@partner.samsung.com> 937 938 PR bootstrap/68041 939 * configure.ac (link_sanitizer_common): Link against librt only if it 940 contains shm_open, required by sanitizers. 941 (CXX_ABI_NEEDED): Remove variable. 942 * configure: Regenerate. 943 * ubsan/Makefile.am (libubsan_la_LIBADD): Do not add -lc++abi anymore. 944 * ubsan/Makefile.in: Regenerate. 945 9462015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com> 947 948 * HOWTO_MERGE: New file. 949 9502015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com> 951 952 * sanitizer_common/sanitizer_stacktrace.cc (GetCanonicFrame): Assume we 953 compiled code with GCC when extracting the caller PC for ARM if no 954 valid frame pointer is available. 955 9562015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com> 957 958 PR bootstrap/63888 959 Reapply: 960 2015-02-20 Jakub Jelinek <jakub@redhat.com> 961 962 * asan/asan_globals.cc (RegisterGlobal): Disable detect_odr_violation 963 support until it is rewritten upstream. 964 965 * c-c++-common/asan/pr63888.c: New test. 966 9672015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com> 968 969 PR sanitizer/63958 970 Reapply: 971 2014-10-14 David S. Miller <davem@davemloft.net> 972 973 * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t): 974 Define at __kernel_time_t, as needed for sparc. 975 (struct __old_kernel_stat): Don't check if __sparc__ is defined. 976 * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h 977 (__sanitizer): Define struct___old_kernel_stat_sz, 978 struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc. 979 (__sanitizer_ipc_perm): Adjust for sparc targets. 980 (__sanitizer_shmid_ds): Likewsie. 981 (__sanitizer_sigaction): Likewise. 982 (IOC_SIZE): Likewsie. 983 9842015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com> 985 986 * All source files: Merge from upstream r250806. 987 * configure.ac (link_sanitizer_common): Add -lrt flag. 988 * configure.tgt: Enable TSAN and LSAN for aarch64-linux targets. 989 Set USE_CXX_ABI_FLAG=true for darwin. 990 * asan/Makefile.am (asan_files): Add new files. 991 (DEFS): Add DCAN_SANITIZE_UB=0 and remove unused and legacy 992 DASAN_FLEXIBLE_MAPPING_AND_OFFSET=0. 993 * asan/Makefile.in: Regenerate. 994 * ubsan/Makefile.am (ubsan_files): Add new files. 995 (DEFS): Add DCAN_SANITIZE_UB=1. 996 (libubsan_la_LIBADD): Add -lc++abi if USE_CXX_ABI_FLAG is true. 997 * ubsan/Makefile.in: Regenerate. 998 * tsan/Makefile.am (tsan_files): Add new files. 999 (DEFS): Add DCAN_SANITIZE_UB=0. 1000 * tsan/Makefile.in: Regenerate. 1001 * sanitizer_common/Makefile.am (sanitizer_common_files): Add new files. 1002 * sanitizer_common/Makefile.in: Regenerate. 1003 * asan/libtool-version: Bump the libasan SONAME. 1004 10052015-09-09 Markus Trippelsdorf <markus@trippelsdorf.de> 1006 1007 PR sanitizer/67258 1008 * ubsan/ubsan_type_hash.cc: Cherry pick upstream r244101. 1009 10102015-07-29 Markus Trippelsdorf <markus@trippelsdorf.de> 1011 1012 PR sanitizer/63927 1013 * sanitizer_common/sanitizer_stacktrace.h: Use fast unwinder 1014 for PowerPC. 1015 10162015-07-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com> 1017 1018 PR sanitizer/63927 1019 * sanitizer_common/sanitizer_stacktrace.cc 1020 (BufferedStackTrace::FastUnwindStack): Fix code for PowerPC to 1021 find the link register at an offset of 16 from the base of the 1022 caller's stack frame. 1023 10242015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com> 1025 1026 * Makefile.in: Regenerated with automake-1.11.6. 1027 * aclocal.m4: Likewise. 1028 * asan/Makefile.in: Likewise. 1029 * configure: Likewise. 1030 * interception/Makefile.in: Likewise. 1031 * libbacktrace/Makefile.in: Likewise. 1032 * lsan/Makefile.in: Likewise. 1033 * sanitizer_common/Makefile.in: Likewise. 1034 * tsan/Makefile.in: Likewise. 1035 * ubsan/Makefile.in: Likewise. 1036 10372015-04-13 Yury Gribov <y.gribov@samsung.com> 1038 1039 PR sanitizer/64839 1040 * sanitizer_common/sanitizer_platform.h: Cherry pick 1041 upstream r234470. 1042 * sanitizer_common/sanitizer_platform_limits_posix.cc: Ditto. 1043 * configure.ac (RPC_DEFS): Check for precense of RPC headers. 1044 * sanitizer_common/Makefile.am (DEFS): Pass info to compiler. 1045 * Makefile.in: Regenerate. 1046 * asan/Makefile.in: Regenerate. 1047 * config.h.in: Regenerate. 1048 * configure: Regenerate. 1049 * interception/Makefile.in: Regenerate. 1050 * libbacktrace/Makefile.in: Regenerate. 1051 * lsan/Makefile.in: Regenerate. 1052 * sanitizer_common/Makefile.in: Regenerate. 1053 * tsan/Makefile.in: Regenerate. 1054 * ubsan/Makefile.in: Regenerate. 1055 1056 10572015-03-23 Christophe Lyon <christophe.lyon@linaro.org> 1058 1059 PR sanitizer/59009 1060 * sanitizer_common/sanitizer_platform_limits_posix.cc: Cherry pick 1061 upstream r230324. 1062 * sanitizer_common/sanitizer_platform.h: Likewise. 1063 * sanitizer_common/sanitizer_common_syscalls.inc: Likewise. 1064 10652015-03-11 Bernd Edlinger <bernd.edlinger@hotmail.de> 1066 1067 * tsan/tsan_rtl_report.cc (ScopedReport::AddThread): Cherry pick 1068 upstream 224508 and 224755. 1069 10702015-03-09 Jakub Jelinek <jakub@redhat.com> 1071 1072 PR sanitizer/63958 1073 Reapply: 1074 2014-10-14 David S. Miller <davem@davemloft.net> 1075 1076 * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t): 1077 Define at __kernel_time_t, as needed for sparc. 1078 (struct __old_kernel_stat): Don't check if __sparc__ is defined. 1079 * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h 1080 (__sanitizer): Define struct___old_kernel_stat_sz, 1081 struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc. 1082 (__sanitizer_ipc_perm): Adjust for sparc targets. 1083 (__sanitizer_shmid_ds): Likewsie. 1084 (__sanitizer_sigaction): Likewise. 1085 (IOC_SIZE): Likewsie. 1086 10872015-02-27 Peter Bergner <bergner@vnet.ibm.com> 1088 1089 * configure.tgt: Enable build on powerpc*le-*-linux. 1090 10912015-02-23 Jakub Jelinek <jakub@redhat.com> 1092 1093 PR bootstrap/63888 1094 * asan/asan_globals.cc (RegisterGlobal): Disable detect_odr_violation 1095 support until it is rewritten upstream. 1096 10972015-01-26 Matthias Klose <doko@ubuntu.com> 1098 1099 * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC. 1100 * configure: Regenerate. 1101 11022015-01-25 Venkataramanan Kumar <venkataramanan.kumar@linaro.org> 1103 1104 * configure.ac (TSAN_TARGET_DEPENDENT_OBJECTS): Undefine. 1105 * configure: Regenerate. 1106 * configure.tgt (TSAN_TARGET_DEPENDENT_OBJECTS): Define. 1107 11082015-01-25 Venkataramanan Kumar <venkataramanan.kumar@linaro.org> 1109 1110 * configure.ac (TSAN_TARGET_DEPENDENT_OBJECTS): Define. 1111 * configure: Regenerate. 1112 * tsan/Makefile.am (EXTRA_libtsan_la_SOURCES): Define. 1113 (libtsan_la_DEPENDENCIES): Likewise. 1114 * Makefile.in: Regenerate. 1115 * asan/Makefile.in: Regenerate. 1116 * interception/Makefile.in: Regenerate. 1117 * libbacktrace/Makefile.in: Regenerate. 1118 * lsan/Makefile.in: Regenerate. 1119 * sanitizer_common/Makefile.in: Regenerate. 1120 * tsan/Makefile.in: Regenerate. 1121 * ubsan/Makefile.in: Regenerate. 1122 11232015-01-22 Jakub Jelinek <jakub@redhat.com> 1124 1125 * tsan/tsan_rtl.h: Cherry pick upstream r226829. 1126 11272015-01-21 Jakub Jelinek <jakub@redhat.com> 1128 1129 PR sanitizer/64435 1130 * sanitizer_common/sanitizer_platform_limits_posix.h: Cherry pick 1131 upstream r226637. 1132 * sanitizer_common/sanitizer_platform_limits_posix.cc: Likewise. 1133 * sanitizer_common/sanitizer_posix.cc: Cherry pick upstream r226639. 1134 11352015-01-20 Jakub Jelinek <jakub@redhat.com> 1136 1137 PR sanitizer/64632 1138 * ubsan/ubsan_type_hash.cc: Cherry pick upstream r224972. 1139 11402015-01-19 Jakub Jelinek <jakub@redhat.com> 1141 1142 PR sanitizer/64435 1143 * sanitizer_common/sanitizer_platform_limits_posix.cc: Cherry pick 1144 upstream r223925. 1145 11462015-01-13 Jakub Jelinek <jakub@redhat.com> 1147 1148 * sanitizer_common/sanitizer_deadlock_detector.h: Cherry pick 1149 upstream r224518 and r224519. 1150 * tsan/tsan_rtl_thread.cc: Cherry pick upstream r224702 and 1151 r224834. 1152 11532014-12-16 Jakub Jelinek <jakub@redhat.com> 1154 1155 * sanitizer_common/sanitizer_symbolizer_libbacktrace.cc, 1156 sanitizer_common/sanitizer_symbolizer_libbacktrace.h, 1157 sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc: Cherry pick 1158 upstream r224308. 1159 11602014-11-21 H.J. Lu <hongjiu.lu@intel.com> 1161 1162 PR bootstrap/63784 1163 * configure: Regenerated. 1164 11652014-11-21 Jakub Jelinek <jakub@redhat.com> 1166 1167 PR target/61137 1168 * config/ia64/ia64.c (ia64_attribute_takes_identifier_p): New function. 1169 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Redefine to it. 1170 11712014-11-14 Uros Bizjak <ubizjak@gmail.com> 1172 1173 * sanitizer_common/Makefile.am (AM_CXXFLAGS): Use -std=gnu++11. 1174 * asan/Makefile.am (AM_CXXFLAGS): Ditto. 1175 * lsan/Makefile.am (AM_CXXFLAGS): Ditto. 1176 * interception/Makefile.am (AM_CXXFLAGS): Ditto. 1177 * tsan/Makefile.am (AM_CXXFLAGS): Ditto. 1178 * libbacktrace/Makefile.am (AM_CXXFLAGS): Ditto. 1179 * ubsan/Makefile.am (AM_CXXFLAGS): Ditto. 1180 * sanitizer_common/Makefile.in: Regenerate. 1181 * asan/Makefile.in: Ditto. 1182 * lsan/Makefile.in: Ditto. 1183 * interception/Makefile.in: Ditto. 1184 * tsan/Makefile.in: Ditto. 1185 * libbacktrace/Makefile.in: Ditto. 1186 * ubsan/Makefile.in: Ditto. 1187 11882014-11-13 Kostya Serebryany <kcc@google.com> 1189 1190 * All source files: Merge from upstream r221802. 1191 * sanitizer_common/sanitizer_symbolizer_libbacktrace.cc 1192 (LibbacktraceSymbolizer::SymbolizeData): Replace 'address' 1193 with 'start' to follow the new interface. 1194 * asan/Makefile.am (AM_CXXFLAGS): Added -std=c++11. 1195 * interception/Makefile.am (AM_CXXFLAGS): Added -std=c++11. 1196 * libbacktrace/Makefile.am (AM_CXXFLAGS): Added -std=c++11. 1197 * lsan/Makefile.am (AM_CXXFLAGS): Added -std=c++11. 1198 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new 1199 files. 1200 (AM_CXXFLAGS): Added -std=c++11. 1201 * tsan/Makefile.am (AM_CXXFLAGS): Added -std=c++11. 1202 * ubsan/Makefile.am (AM_CXXFLAGS): Added -std=c++11. 1203 * asan/Makefile.in: Regenerate. 1204 * interception/Makefile.in: Regenerate. 1205 * libbacktrace/Makefile.in: Regenerate. 1206 * lsan/Makefile.in: Regenerate. 1207 * sanitizer_common/Makefile.in: Regenerate. 1208 * tsan/Makefile.in: Regenerate. 1209 * ubsan/Makefile.in: Regenerate. 1210 12112014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> 1212 1213 PR target/63610 1214 * configure: Regenerate. 1215 12162014-10-16 Martin Liska <mliska@suse.cz> 1217 1218 * asan/Makefile.am: IPA ICF pass is disabled. 1219 * asan/Makefile.in: Likewise. 1220 12212014-10-14 David S. Miller <davem@davemloft.net> 1222 1223 * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t): 1224 Define at __kernel_time_t, as needed for sparc. 1225 (struct __old_kernel_stat): Don't check if __sparc__ is defined. 1226 * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h 1227 (__sanitizer): Define struct___old_kernel_stat_sz, 1228 struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc. 1229 (__sanitizer_ipc_perm): Adjust for sparc targets. 1230 (__sanitizer_shmid_ds): Likewsie. 1231 (__sanitizer_sigaction): Likewsie. 1232 (IOC_SIZE): Likewsie. 1233 12342014-10-14 Jakub Jelinek <jakub@redhat.com> 1235 1236 * ubsan/Makefile.am (DEFS): Add -DPIC. 1237 * ubsan/Makefile.in: Regenerated. 1238 12392014-09-26 Christophe Lyon <christophe.lyon@linaro.org> 1240 1241 * configure.tgt: Enable build on aarch64*-linux. 1242 12432014-09-19 Kostya Serebryany <kcc@google.com> 1244 1245 * All source files: Merge from upstream r218156. 1246 * asan/Makefile.am (asan_files): Added new files. 1247 * asan/Makefile.in: Regenerate. 1248 * ubsan/Makefile.am (ubsan_files): Added new files. 1249 * ubsan/Makefile.in: Regenerate. 1250 * tsan/Makefile.am (tsan_files): Added new files. 1251 * tsan/Makefile.in: Regenerate. 1252 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new 1253 files. 1254 * sanitizer_common/Makefile.in: Regenerate. 1255 * asan/libtool-version: Bump the libasan SONAME. 1256 12572014-09-10 Jakub Jelinek <jakub@redhat.com> 1258 1259 * ubsan/ubsan_handlers.cc, ubsan/ubsan_handlers.h: Cherry pick 1260 upstream r215485, r217389, r217391 and r217400. 1261 12622014-06-23 Paolo Carlini <paolo.carlini@oracle.com> 1263 1264 * sanitizer_common/sanitizer_common_interceptors.inc: 1265 Cherry pick upstream r211008. 1266 12672014-06-11 Richard Biener <rguenther@suse.de> 1268 1269 * asan/asan_linux.cc: Cherry pick upstream r210012. 1270 12712014-05-30 Jakub Jelinek <jakub@redhat.com> 1272 1273 * sanitizer_common/sanitizer_stacktrace.cc: Cherry pick upstream 1274 r209879. 1275 * sanitizer_common/sanitizer_common.h: Likewise. 1276 * asan/asan_mapping.h: Likewise. 1277 * asan/asan_linux.cc: Likewise. 1278 * tsan/tsan_mman.cc: Cherry pick upstream r209744. 1279 * sanitizer_common/sanitizer_allocator.h: Likewise. 1280 12812014-05-23 Marek Polacek <polacek@redhat.com> 1282 1283 * ubsan/ubsan_value.cc (getFloatValue): Handle 96-bit 1284 floating-point types. 1285 12862014-05-22 Kostya Serebryany <kcc@google.com> 1287 1288 * All source files: Merge from upstream r209283. 1289 * asan/Makefile.am (asan_files): Added new files. 1290 * asan/Makefile.in: Regenerate. 1291 * tsan/Makefile.am (tsan_files): Added new files. 1292 * tsan/Makefile.in: Regenerate. 1293 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new 1294 files. 1295 * sanitizer_common/Makefile.in: Regenerate. 1296 12972014-05-14 Yury Gribov <y.gribov@samsung.com> 1298 1299 PR sanitizer/61100 1300 * Makefile.am (nodist_saninclude_HEADERS): Install 1301 public headers. 1302 * Makefile.in: Regenerate. 1303 13042014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 1305 1306 * libbacktrace/Makefile.am (libsanitizer_libbacktrace_la_SOURCES): 1307 Add ../../libbacktrace/sort.c. 1308 * libbacktrace/Makefile.in: Regenerate. 1309 * libbacktrace/backtrace-rename.h (backtrace_qsort): Define. 1310 13112014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com> 1312 1313 * configure.tgt: Unsupported for little endian PowerPC for now. 1314 13152014-02-04 Jakub Jelinek <jakub@redhat.com> 1316 1317 PR sanitizer/60055 1318 * tsan/tsan_flags.cc (__tsan_default_options): Add 1319 SANITIZER_INTERFACE_ATTRIBUTE. Backport from upstream r200747. 1320 * tsan/tsan_rtl.cc (__tsan::OnFinalize): Likewise. 1321 1322 PR sanitizer/60038 1323 * sanitizer_common/sanitizer_linux_libcdep.cc: Include 1324 sanitizer_atomic.h and unistd.h. 1325 (kThreadDescriptorSize): Made static, remove initializer and const, 1326 change type to atomic_uintptr_t. 1327 (ThreadDescriptorSize): Use confstr(_CS_GNU_LIBC_VERSION, ...) to 1328 query glibc version, compute kThreadDescriptorSize depending on 1329 glibc version minor number. 1330 (GetThreadStackAndTls): Use ThreadDescriptorSize() instead of 1331 kThreadDescriptorSize directly. 1332 13332014-01-23 Yury Gribov <y.gribov@samsung.com> 1334 Jakub Jelinek <jakub@redhat.com> 1335 1336 PR sanitizer/57316 1337 * configure.ac: Check for missing syscalls. 1338 * Makefile.am: Likewise. 1339 * configure: Regenerate. 1340 * Makefile.in: Regenerate. 1341 13422014-01-09 Jakub Jelinek <jakub@redhat.com> 1343 1344 * sanitizer_common/sanitizer_symbolizer_libbacktrace.h 1345 (LibbacktraceSymbolizer::Demangle): New declaration. 1346 * sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc 1347 (POSIXSymbolizer::Demangle): Use libbacktrace_symbolizer_'s Demangle 1348 method if possible. 1349 * sanitizer_common/sanitizer_symbolizer_libbacktrace.cc: Include 1350 "demangle.h" if SANITIZE_CP_DEMANGLE is defined. 1351 (struct CplusV3DemangleData): New type. 1352 (CplusV3DemangleCallback, CplusV3Demangle): New functions. 1353 (SymbolizeCodePCInfoCallback, SymbolizeCodeCallback, 1354 SymbolizeDataCallback): Use CplusV3Demangle. 1355 * sanitizer_common/Makefile.am (AM_CXXFLAGS): Add 1356 -DSANITIZE_CP_DEMANGLE and -I $(top_srcdir)/../include. 1357 * libbacktrace/backtrace-rename.h (cplus_demangle_builtin_types, 1358 cplus_demangle_fill_ctor, cplus_demangle_fill_dtor, 1359 cplus_demangle_fill_extended_operator, cplus_demangle_fill_name, 1360 cplus_demangle_init_info, cplus_demangle_mangled_name, 1361 cplus_demangle_operators, cplus_demangle_print, 1362 cplus_demangle_print_callback, cplus_demangle_type, cplus_demangle_v3, 1363 cplus_demangle_v3_callback, is_gnu_v3_mangled_ctor, 1364 is_gnu_v3_mangled_dtor, java_demangle_v3, java_demangle_v3_callback): 1365 Define. 1366 (__asan_internal_memcmp, __asan_internal_strncmp): New prototypes. 1367 (memcmp, strncmp): Redefine. 1368 * libbacktrace/Makefile.am (libsanitizer_libbacktrace_la_SOURCES): Add 1369 ../../libiberty/cp-demangle.c. 1370 * libbacktrace/bridge.cc (__asan_internal_memcmp, 1371 __asan_internal_strncmp): New functions. 1372 * sanitizer_common/Makefile.in: Regenerated. 1373 * libbacktrace/Makefile.in: Regenerated. 1374 * configure: Regenerated. 1375 * configure.ac: Regenerated. 1376 * config.h.in: Regenerated. 1377 1378 * sanitizer_common/Makefile.am (AM_CPPFLAGS): Add 1379 -isystem $(top_srcdir)/include/system. 1380 * sanitizer_common/Makefile.in: Regenerated. 1381 * include/system/linux/aio_abi.h: New header. 1382 * include/system/linux/mroute.h: New header. 1383 * include/system/linux/mroute6.h: New header. 1384 * include/system/linux/perf_event.h: New header. 1385 * include/system/linux/types.h: New header. 1386 1387 PR sanitizer/59136 1388 * sanitizer_common/Makefile.am (AM_CXXFLAGS): If 1389 LIBBACKTRACE_SUPPORTED add -DSANITIZER_LIBBACKTRACE 1390 and -I/-include flags. 1391 * lsan/Makefile.am (liblsan_la_LIBADD): Add 1392 libsanitizer_libbacktrace.la if LIBBACKTRACE_SUPPORTED. 1393 * tsan/Makefile.am (libtsan_la_LIBADD): Likewise. 1394 * ubsan/Makefile.am (libubsan_la_LIBADD): Likewise. 1395 * asan/Makefile.am (libasan_la_LIBADD): Likewise. 1396 * Makefile.am (SUBDIRS): If LIBBACKTRACE_SUPPORTED add 1397 libbacktrace. 1398 * README.gcc: Document that also lsan and ubsan are 1399 maintained in compiler-rt upstream. 1400 * libbacktrace/Makefile.am: New file. 1401 * libbacktrace/backtrace-rename.h: New file. 1402 * libbacktrace/backtrace-supported.h.in: New file. 1403 * libbacktrace/bridge.cc: New file. 1404 * configure.ac: Add tests needed for libbacktrace build 1405 within libsanitizer. 1406 * sanitizer_common/Makefile.in: Regenerated. 1407 * lsan/Makefile.in: Regenerated. 1408 * tsan/Makefile.in: Regenerated. 1409 * ubsan/Makefile.in: Regenerated. 1410 * libbacktrace/Makefile.in: Generated. 1411 * config.h.in: Regenerated. 1412 * configure: Regenerated. 1413 * Makefile.in: Regenerated. 1414 * interception/Makefile.in: Regenerated. 1415 * asan/Makefile.in: Regenerated. 1416 * aclocal.m4: Regenerated. 1417 14182013-12-19 Kostya Serebryany <kcc@google.com> 1419 1420 * sanitizer_common/sanitizer_platform_limits_posix.cc: 1421 workaround for missing definition of EOWNERDEAD, backport 1422 from upstream r196779. 1423 14242013-12-06 H.J. Lu <hongjiu.lu@intel.com> 1425 1426 * sanitizer_common/sanitizer_platform_limits_posix.h 1427 (__sanitizer_shmid_ds): Use u64 on time fields for x32. 1428 (__sanitizer_clock_t): Use long long for x32. 1429 14302013-12-06 H.J. Lu <hongjiu.lu@intel.com> 1431 1432 * sanitizer_common/sanitizer_platform_limits_linux.cc: Include 1433 <sys/stat.h>, instead of <asm/stat.h>, if __x86_64__ is defined. 1434 (struct___old_kernel_stat_sz): Don't check if __x86_64__ is defined. 1435 14362013-12-05 H.J. Lu <hongjiu.lu@intel.com> 1437 1438 * configure.ac (link_sanitizer_common): Add -lm. 1439 * configure: Regenerated. 1440 14412013-12-05 Kostya Serebryany <kcc@google.com> 1442 1443 * All source files: Merge from upstream r196489. 1444 * merge.sh: Add *.S to the list of merged files. 1445 14462013-12-05 Yury Gribov <y.gribov@samsung.com> 1447 1448 PR sanitizer/59368 1449 * Makefile.am (gcc_version): Added gcc_version. 1450 * Makefile.in: Regenerate. 1451 14522013-12-05 Kostya Serebryany <kcc@google.com> 1453 1454 * All source files: Merge from upstream r196090. 1455 * tsan/Makefile.am (tsan_files): Added new files. 1456 * tsan/Makefile.in: Regenerate. 1457 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new fles. 1458 * sanitizer_common/Makefile.in: Regenerate. 1459 * lsan/Makefile.am (lsan_files): Added new files. 1460 * lsan/Makefile.in: Regenerate. 1461 14622013-11-29 Jakub Jelinek <jakub@redhat.com> 1463 Yury Gribov <y.gribov@samsung.com> 1464 1465 PR sanitizer/59063 1466 * libsanitizer.spec.in: Add spec file to hold link flags for 1467 various sanitizer libs. 1468 * configure.ac: Check whether clock_* routines come from librt. 1469 * asan/Makefile.am (libasan_la_LDFLAGS): Libs now come from 1470 configure.ac. 1471 * tsan/Makefile.am (libtsan_la_LDFLAGS): Likewise. 1472 * ubsan/Makefile.am (libubsan_la_LDFLAGS): Likewise. 1473 * lsan/Makefile.am (liblsan_la_LDFLAGS): Likewise. 1474 * asan/Makefile.in: Regenerate. 1475 * interception/Makefile.in: Regenerate. 1476 * lsan/Makefile.in: Regenerate. 1477 * sanitizer_common/Makefile.in: Regenerate. 1478 * tsan/Makefile.in: Regenerate. 1479 * ubsan/Makefile.in: Regenerate. 1480 * Makefile.in: Regenerate. 1481 * configure: Regenerate. 1482 14832013-11-28 Jakub Jelinek <jakub@redhat.com> 1484 Yury Gribov <y.gribov@samsung.com> 1485 1486 PR sanitizer/59106 1487 * ubsan/Makefile.am (AM_CXXFLAGS): Disable -frtti for files that 1488 don't need it. 1489 * ubsan/Makefile.in: Regenerated. 1490 14912013-11-22 Jakub Jelinek <jakub@redhat.com> 1492 1493 PR sanitizer/59061 1494 * configure.tgt: Set LSAN_SUPPORTED=yes for x86_64-linux. 1495 * configure.ac (LSAN_SUPPORTED): New AM_CONDITIONAL. 1496 * configure: Regenerated. 1497 * lsan/Makefile.am (toolexeclib_LTLIBRARIES, lsan_files, 1498 liblsan_la_SOURCES, liblsan_la_LIBADD, liblsan_la_LDFLAGS): Add. 1499 * lsan/Makefile.in: Regenerated. 1500 15012013-11-22 Mike Stump <mikestump@comcast.net> 1502 1503 * sanitizer_common/sanitizer_linux.cc (__sanitizer): Grab one 1504 change from upstream to fix build. 1505 15062013-11-18 Yury Gribov <y.gribov@samsung.com> 1507 1508 PR sanitizer/59106 1509 * asan/Makefile.am (AM_CXXFLAGS): Add -fno-rtti. 1510 * interception/Makefile.am (AM_CXXFLAGS): Likewise. 1511 * lsan/Makefile.am (AM_CXXFLAGS): Likewise. 1512 * sanitizer_common/Makefile.am (AM_CXXFLAGS): Likewise. 1513 * tsan/Makefile.am (AM_CXXFLAGS): Likewise. 1514 * asan/Makefile.in: Regenerate. 1515 * interception/Makefile.in: Regenerate. 1516 * tsan/Makefile.in: Regenerate. 1517 * lsan/Makefile.in: Regenerate. 1518 * sanitizer_common/Makefile.in: Regenerate. 1519 15202013-11-15 Kostya Serebryany <kcc@google.com> 1521 1522 PR sanitizer/58994 1523 Backport from upstream revision 194573 1524 * asan/asan_interceptors.cc (COMMON_INTERCEPTOR_ENTER): Fall 1525 back to the original functions in the common libsanitizer 1526 interceptors and the __cxa_atexit() interceptor on Darwin. 1527 15282013-11-13 Peter Bergner <bergner@vnet.ibm.com> 1529 1530 PR sanitizer/59009 1531 * sanitizer_common/sanitizer_platform_limits_posix.cc: Temporarily 1532 ifdef out more source. 1533 15342013-11-12 Jakub Jelinek <jakub@redhat.com> 1535 1536 * sanitizer_common/sanitizer_platform_limits_linux.cc: Temporarily 1537 ifdef out almost the whole source. 1538 * sanitizer_common/sanitizer_common_syscalls.inc: Likewise. 1539 15402013-11-05 H.J. Lu <hongjiu.lu@intel.com> 1541 1542 PR sanitizer/59018 1543 * sanitizer_common/sanitizer_platform_limits_posix.cc 1544 (struct_user_fpxregs_struct_sz): Initialize to 0 if __x86_64__ is 1545 defined. 1546 15472013-11-05 H.J. Lu <hongjiu.lu@intel.com> 1548 1549 PR sanitizer/59018 1550 * sanitizer_common/sanitizer_platform_limits_linux.cc 1551 (struct_kernel_stat64_sz): Initialize to 0 if __x86_64__ is 1552 defined. 1553 * sanitizer_common/sanitizer_platform_limits_posix.h 1554 (__sanitizer_dirent): Use 64-bit d_ino/d_off if __x86_64__ is 1555 defined. 1556 (__sanitizer___kernel_uid_t): Typedef as unsigned if __x86_64__ 1557 is defined. 1558 (__sanitizer___kernel_gid_t): Likewise. 1559 (__sanitizer___kernel_off_t): Typedef as long long if __x86_64__ 1560 is defined. 1561 15622013-11-05 H.J. Lu <hongjiu.lu@intel.com> 1563 1564 PR sanitizer/59018 1565 * sanitizer_common/sanitizer_linux.cc (internal_clone): Allocate 1566 2 64-bit integers to save and restore fn and arg. Properly load 1567 newtls/child_tidptr into r8/r10. 1568 15692013-11-05 H.J. Lu <hongjiu.lu@intel.com> 1570 1571 PR sanitizer/59018 1572 * sanitizer_common/sanitizer_linux.cc (internal_mmap, 1573 internal_munmap, internal_open, internal_read, internal_write, 1574 internal_stat, internal_lstat, internal_fstat, internal_readlink, 1575 internal_unlink, internal_execve, NanoTime, BlockingMutex::Lock, 1576 BlockingMutex::Unlock, internal_ptrace, internal_getdents, 1577 internal_sigaltstack): Cast pointers to uptr for 64-bit syscalls. 1578 15792013-11-04 Kostya Serebryany <kcc@google.com> 1580 1581 * All source files: Merge from upstream r191666. 1582 * merge.sh: Added lsan. 1583 * configure.ac (AC_CONFIG_FILES): Added lsan. 1584 * Makefile.am (SUBDIRS): Added lsan. 1585 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new fles. 1586 * asan/Makefile.am (asan_files): Added new files. 1587 (libasan_la_LIBADD): Added a dependency on lsan. 1588 * lsan/Makefile.am: New file. 1589 * asan/Makefile.in: Regenerate. 1590 * lsan/Makefile.in: Regenerate. 1591 * Makefile.in: Regenerate. 1592 * configure: Regenerate. 1593 * sanitizer_common/Makefile.in: Regenerate. 1594 15952013-09-20 Alan Modra <amodra@gmail.com> 1596 1597 * configure: Regenerate. 1598 15992013-09-01 Iain Sandoe <iain@codesourcery.com> 1600 1601 * ubsan/Makefile.am (libubsan_la_LIBADD): Revise to omit 1602 libinterception.la for Darwin. 1603 * ubsan/Makefile.in: Regenerate. 1604 16052013-08-30 Jakub Jelinek <jakub@redhat.com> 1606 1607 * Makefile.am (SUBDIRS): Add ubsan. 1608 * configure.ac (AC_CONFIG_FILES): Add ubsan/Makefile. 1609 * merge.sh: Merge ubsan. 1610 * sanitizer_common/sanitizer_report_decorator.h: Partial merge from trunk. 1611 * sanitizer_common/sanitizer_printf.cc: Likewise. 1612 * sanitizer_common/sanitizer_common.h: Likewise. 1613 * ubsan: New directory. Import ubsan runtime from llvm. 1614 16152013-06-03 Christophe Lyon <christophe.lyon@linaro.org> 1616 1617 * sanitizer_common/sanitizer_linux.cc (MemoryMappingLayout::Next): 1618 Cherry pick upstream r182922. 1619 16202013-05-07 Christophe Lyon <christophe.lyon@linaro.org> 1621 1622 * configure.tgt: Add ARM pattern. 1623 16242013-03-22 Jakub Jelinek <jakub@redhat.com> 1625 1626 PR other/43620 1627 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist. 1628 * Makefile.in: Regenerated. 1629 * asan/Makefile.in: Regenerated. 1630 * interception/Makefile.in: Regenerated. 1631 * sanitizer_common/Makefile.in: Regenerated. 1632 * tsan/Makefile.in: Regenerated. 1633 16342013-02-28 Jakub Jelinek <jakub@redhat.com> 1635 1636 * asan/asan_mapping.h (kMidMemEnd): Increase to 0x4fffffffffULL. 1637 * asan/asan_rtl.cc (__asan_init): Increase kMidMemEnd to 1638 0x4fffffffffULL. 1639 16402013-02-22 Jakub Jelinek <jakub@redhat.com> 1641 1642 PR sanitizer/56393 1643 * asan/Makefile.am (nodist_toolexeclib_HEADERS): Set to 1644 libasan_preinit.o. 1645 (libasan_preinit.o): Depend on asan_preinit.o. 1646 * asan/Makefile.in: Regenerated. 1647 * asan/asan_preinit.cc: New file, synced from upstream. 1648 * asan/asan_rtl.cc: Remove preinit stuff, synced from upstream. 1649 16502013-02-21 Jack Howarth <howarth@bromo.med.uc.edu> 1651 1652 * asan/Makefile.am (libasan_la_SOURCES): Remove deprecated 1653 dynamic/asan_interceptors_dynamic.cc. 1654 * asan/Makefile.in: Regenerated. 1655 * merge.sh: Remove merge of deprecated lib/asan/dynamic. 1656 16572013-02-21 Jakub Jelinek <jakub@redhat.com> 1658 1659 * asan/asan_rtl.cc (__asan_preinit): Don't add if PIC macro is 1660 defined. Add used attribute. 1661 16622013-02-21 Kostya Serebryany <kcc@google.com> 1663 1664 * All source files: Merge from upstream r175733. 1665 * sanitizer_common/Makefile.am: Added a new file. 1666 * sanitizer_common/Makefile.in: Regenerated. 1667 16682013-02-14 H.J. Lu <hongjiu.lu@intel.com> 1669 1670 PR bootstrap/56327 1671 * interception/interception.h (OFF_T): Merged from upstream 1672 r175140. 1673 16742013-02-13 Jakub Jelinek <jakub@redhat.com> 1675 1676 * asan/asan_mapping.h (SHADOW_OFFSET): Set to (1ULL << 44) on x86-64. 1677 16782013-02-13 Kostya Serebryany <kcc@google.com> 1679 1680 PR sanitizer/56128 1681 * All source files: Merge from upstream r175049. 1682 * interception/Makefile.am: added include path. 1683 * interception/Makefile.in: Regenerated. 1684 16852013-02-11 Jack Howarth <howarth@bromo.med.uc.edu> 1686 1687 * configure.tgt: Disable build on darwin9 and earlier. 1688 16892013-01-23 Kostya Serebryany <kcc@google.com> 1690 1691 PR sanitizer/55989 1692 * All source files: Merge from upstream r173241. 1693 * merge.sh: Support merging .inc files. 1694 16952013-01-16 Jakub Jelinek <jakub@redhat.com> 1696 1697 * sanitizer_common/Makefile.am (AM_CXXFLAGS): Remove 1698 -Wno-c99-extensions. 1699 * interception/Makefile.am (AM_CXXFLAGS): Likewise. 1700 * asan/Makefile.am (AM_CXXFLAGS): Likewise. 1701 * sanitizer_common/Makefile.in: Regenerated. 1702 * interception/Makefile.in: Regenerated. 1703 * asan/Makefile.in: Regenerated. 1704 17052013-01-10 Wei Mi <wmi@google.com> 1706 1707 PR sanitizer/55488 1708 * tsan/Makefile.am: Add tsan_rtl_amd64.S. 1709 * tsan/Makefile.in: Regenerated. 1710 * tsan/tsan_rtl.h: Enable HACKY_CALL. 1711 17122013-01-10 Kostya Serebryany <kcc@google.com> 1713 1714 * All source files: Merge from upstream r171973. 1715 * sanitizer_common/Makefile.am: Added new files. 1716 * asan/Makefile.am: Likewise. 1717 * tsan/Makefile.am: Likewise. 1718 * sanitizer_common/Makefile.in: Regenerated. 1719 * asan/Makefile.in: Likewise. 1720 * tsan/Makefile.in: Likewise. 1721 17222013-01-07 H.J. Lu <hongjiu.lu@intel.com> 1723 1724 * asan/Makefile.am (libasan_la_LIBADD): Replace 1725 LIBSTDCXX_RAW_CXX_LDLAGS with LIBSTDCXX_RAW_CXX_LDFLAGS. 1726 * tsan/Makefile.am (libtsan_la_LIBADD): Likewise. 1727 * Makefile.in: Regenerated. 1728 * configure: Likewise. 1729 * asan/Makefile.in: Likewise. 1730 * interception/Makefile.in: Likewise. 1731 * sanitizer_common/Makefile.in: Likewise. 1732 * tsan/Makefile.in: Likewise. 1733 17342012-12-12 H.J. Lu <hongjiu.lu@intel.com> 1735 1736 * Makefile.am (AM_MAKEFLAGS): Restored. 1737 * interception/Makefile.am: Likewise. 1738 * sanitizer_common/Makefile.am: Likewise. 1739 * tsan/Makefile.am: Likewise. 1740 * Makefile.in: Regenerated. 1741 * asan/Makefile.in: Likewise. 1742 * interception/Makefile.in: Likewise. 1743 * sanitizer_common/Makefile.in: Likewise. 1744 * tsan/Makefile.in: Likewise. 1745 17462012-12-12 H.J. Lu <hongjiu.lu@intel.com> 1747 1748 * Makefile.am (MAKEOVERRIDES): Restored. 1749 * asan/Makefile.am: Likewise. 1750 * interception/Makefile.am: Likewise. 1751 * sanitizer_common/Makefile.am: Likewise. 1752 * tsan/Makefile.am: Likewise. 1753 * Makefile.in: Regenerated. 1754 * asan/Makefile.in: Likewise. 1755 * interception/Makefile.in: Likewise. 1756 * sanitizer_common/Makefile.in: Likewise. 1757 * tsan/Makefile.in: Likewise. 1758 17592012-12-12 H.J. Lu <hongjiu.lu@intel.com> 1760 1761 * asan/Makefile.am (libasan_la_LIBADD): Use $(LIBSTDCXX_RAW_CXX_LDLAGS). 1762 * tsan/Makefile.am (libtsan_la_LIBADD): Likewise. 1763 * Makefile.in: Regenerated. 1764 * configure: Likewise. 1765 * asan/Makefile.in: Likewise. 1766 * interception/Makefile.in: Likewise. 1767 * sanitizer_common/Makefile.in: Likewise. 1768 * tsan/Makefile.in: Likewise. 1769 17702012-12-12 H.J. Lu <hongjiu.lu@intel.com> 1771 1772 * Makefile.am (AM_MAKEFLAGS): Removed. 1773 (MAKEOVERRIDES): Likewise. 1774 * asan/Makefile.am: Likewise. 1775 * interception/Makefile.am: Likewise. 1776 * sanitizer_common/Makefile.am: Likewise. 1777 * tsan/Makefile.am: Likewise. 1778 * Makefile.in: Regenerated. 1779 * asan/Makefile.in: Likewise. 1780 * interception/Makefile.in: Likewise. 1781 * sanitizer_common/Makefile.in: Likewise. 1782 * tsan/Makefile.in: Likewise. 1783 17842012-12-11 H.J. Lu <hongjiu.lu@intel.com> 1785 1786 PR sanitizer/55533 1787 * Makefile.am (AM_MAKEFLAGS): Remove CC and CXX. 1788 * configure.ac (GCC_LIBSTDCXX_RAW_CXX_FLAGS): New. 1789 * asan/Makefile.am (AM_CXXFLAGS): Add $(LIBSTDCXX_RAW_CXX_CXXFLAGS). 1790 (AM_MAKEFLAGS): Remove CC and CXX. 1791 * interception/Makefile.am: Likewise. 1792 * sanitizer_common/Makefile.am: Likewise. 1793 * tsan/Makefile.am: Likewise. 1794 * Makefile.in: Regenerated. 1795 * aclocal.m4: Likewise. 1796 * configure: Likewise. 1797 * asan/Makefile.in: Likewise. 1798 * interception/Makefile.in: Likewise. 1799 * sanitizer_common/Makefile.in: Likewise. 1800 * tsan/Makefile.in: Likewise. 1801 18022012-12-06 Peter Bergner <bergner@vnet.ibm.com> 1803 1804 * configure.tgt: Enable build on powerpc*-linux. 1805 18062012-12-06 Jack Howarth <howarth@bromo.med.uc.edu> 1807 1808 PR 55599/sanitizer 1809 * configure.ac: Set enable_static=no on darwin. 1810 * configure: Regenerated. 1811 18122012-12-06 Kostya Serebryany <kcc@google.com> 1813 1814 * All files: Merge from upstream r169392. 1815 18162012-12-05 Kostya Serebryany <kcc@google.com> 1817 1818 * All files: Merge from upstream r169371. 1819 18202012-12-04 Kostya Serebryany <kcc@google.com> 1821 Jack Howarth <howarth@bromo.med.uc.edu> 1822 1823 PR 55521/sanitizer 1824 * configure.ac: Define USING_MAC_INTERPOSE when on darwin. 1825 * Makefile.am: Don't build interception subdir when 1826 USING_MAC_INTERPOSE defined. 1827 * asan/Makefile.am: Pass -DMAC_INTERPOSE_FUNCTIONS and 1828 -DMISSING_BLOCKS_SUPPORT when USING_MAC_INTERPOSE defined. 1829 Compile asan_interceptors_dynamic.cc but not libinterception 1830 when USING_MAC_INTERPOSE defined. 1831 * interception/Makefile.am: Remove usage of USING_MACH_OVERRIDE. 1832 * configure: Regenerated. 1833 * Makefile.in: Likewise. 1834 * asan/Makefile.in: Likewise. 1835 * interception/Makefile.in: Likewise. 1836 * asan/asan_intercepted_functions.h: Use MISSING_BLOCKS_SUPPORT. 1837 * asan/asan_mac.cc: Likewise. 1838 * asan/dynamic/asan_interceptors_dynamic.cc: Migrate from llvm 1839 and use MISSING_BLOCKS_SUPPORT. 1840 * merge.sh: Merge lib/asan/dynamic into asan/dynamic. 1841 * interception/mach_override/LICENSE.txt: Remove unused file. 1842 * interception/mach_override/mach_override.c: Likewise. 1843 * interception/mach_override/mach_override.h: Likewise. 1844 * interception/mach_override: Remove unused directory. 1845 18462012-11-28 H.J. Lu <hongjiu.lu@intel.com> 1847 1848 * Makefile.am (AM_MAKEFLAGS): Restore CC and CXX. 1849 * configure.ac (ACX_NONCANONICAL_TARGET): Removed. 1850 * asan/Makefile.am (AM_CXXFLAGS): Remove -I for libstdc++-v3 header 1851 files. 1852 (AM_MAKEFLAGS): Restore CC and CXX. 1853 * interception/Makefile.am: Likewise. 1854 * sanitizer_common/Makefile.am: Likewise. 1855 * tsan/Makefile.am: Likewise. 1856 * Makefile.in: Regenerated. 1857 * aclocal.m4: Likewise. 1858 * configure: Likewise. 1859 * asan/Makefile.in: Likewise. 1860 * interception/Makefile.in: Likewise. 1861 * sanitizer_common/Makefile.in: Likewise. 1862 * tsan/Makefile.in: Likewise. 1863 18642012-11-28 H.J. Lu <hongjiu.lu@intel.com> 1865 1866 * Makefile.am (AM_MAKEFLAGS): Remove CC and CXX. 1867 * configure.ac (ACX_NONCANONICAL_TARGET): New. 1868 * asan/Makefile.am (AM_CXXFLAGS): Add -I for libstdc++-v3 header 1869 files. 1870 (AM_MAKEFLAGS): Remove CC and CXX. 1871 * interception/Makefile.am: Likewise. 1872 * sanitizer_common/Makefile.am: Likewise. 1873 * tsan/Makefile.am: Likewise. 1874 * Makefile.in: Regenerated. 1875 * aclocal.m4: Likewise. 1876 * configure: Likewise. 1877 * asan/Makefile.in: Likewise. 1878 * interception/Makefile.in: Likewise. 1879 * sanitizer_common/Makefile.in: Likewise. 1880 * tsan/Makefile.in: Likewise. 1881 18822012-11-27 Kostya Serebryany <kcc@google.com> 1883 1884 * All files: Merge from upstream r168699. 1885 18862012-11-24 Kostya Serebryany <kcc@google.com> 1887 Jack Howarth <howarth@bromo.med.uc.edu> 1888 1889 * interception/mach_override/mach_override.c: Migrate from llvm. 1890 * interception/mach_override/mach_override.h: Likewise. 1891 * interception/mach_override/LICENSE.txt: Likewise. 1892 * configure.tgt: Add darwin to supported targets. 1893 * configure.ac: Define USING_MACH_OVERRIDE when on darwin. 1894 * interception/Makefile.am: Compile mach_override.c when 1895 USING_MACH_OVERRIDE defined. 1896 * configure: Regenerated. 1897 * interception/Makefile.in: Likewise. 1898 18992012-11-23 H.J. Lu <hongjiu.lu@intel.com> 1900 1901 PR sanitizer/55450 1902 * tsan/Makefile.am (gcc_version): New. 1903 * tsan/Makefile.in: Regenerated. 1904 19052012-11-23 Kostya Serebryany <kcc@google.com> 1906 1907 * merge.sh: Support tsan, support added/removed files. 1908 * tsan/Makefile.am: Remove tsan_printf.cc. 1909 * tsan/Makefile.in: Regenerated. 1910 * other files: Merge from upstream r168514. 1911 19122012-11-23 Kostya Serebryany <kcc@google.com> 1913 1914 * merge.sh: New file. 1915 19162012-11-23 Jakub Jelinek <jakub@redhat.com> 1917 1918 * tsan/Makefile.am (AM_CXXFLAGS): Remove -Wno-variadic-macros. 1919 * Makefile.am (SUBDIRS): Guard tsan addition with TSAN_SUPPORTED 1920 automake conditional instead of !MULTISUBDIR32. 1921 * configure.tgt: Set TSAN_SUPPORTED=yes for x86_64/i686-linux 1922 for 64-bit multilib. 1923 * configure.ac: Check for void * size, source in configure.tgt, 1924 define TSAN_SUPPORTED conditional instead of MULTILIBDIR32. 1925 * configure: Regenerated. 1926 * Makefile.in: Regenerated. 1927 * tsan/Makefile.in: Regenerated. 1928 19292012-11-22 Wei Mi <wmi@google.com> 1930 1931 * tsan: New directory. Import tsan runtime from llvm. 1932 * configure.ac: Add 64 bits tsan build. 1933 * Makefile.am: Likewise. 1934 * configure: Regenerated. 1935 * Makefile.in: Likewise. 1936 19372012-11-21 Kostya Serebryany <kcc@google.com> 1938 1939 * README.gcc: Extend the README.gcc with mode details. 1940 19412012-11-20 Konstantin Serebryany <konstantin.s.serebryany@gmail.com> 1942 1943 * sanitizer_common/sanitizer_linux.cc 1944 (SANITIZER_LINUX_USES_64BIT_SYSCALLS): Define. 1945 (internal_mmap): Use it. 1946 (internal_filesize): Likewise. 1947 19482012-11-16 Tom Tromey <tromey@redhat.com> 1949 1950 * configure.ac: Invoke AM_MAINTAINER_MODE. 1951 * aclocal.m4, configure, Makefile.in, asan/Makefile.in, 1952 interception/Makefile.in, sanitizer_common/Makefile.in: Rebuild. 1953 19542012-11-16 H.J. Lu <hongjiu.lu@intel.com> 1955 1956 PR other/55333 1957 * include/sanitizer/common_interface_defs.h (uhwptr): New type 1958 for hardware pointer. 1959 * sanitizer_common/sanitizer_stacktrace.cc (StackTrace::FastUnwindStack): 1960 Replace uptr with uhwptr for stack unwind. 1961 19622012-11-16 Dodji Seketeli <dodji@redhat.com> 1963 1964 * configure.tgt: Enable build on sparc linux. 1965 19662012-11-15 H.J. Lu <hongjiu.lu@intel.com> 1967 1968 * configure.ac: Properly set MULTISUBDIR. 1969 * asan/Makefile.am (gcc_version): New. 1970 * interception/Makefile.am (gcc_version): Likewise. 1971 * sanitizer_common/Makefile.am (gcc_version): Likewise. 1972 * configure: Regenerated. 1973 * asan/Makefile.in: Likewise. 1974 * interception/Makefile.in: Likewise. 1975 * sanitizer_common/Makefile.in: Likewise. 1976 19772012-11-14 H.J. Lu <hongjiu.lu@intel.com> 1978 1979 PR other/55291 1980 * configure.ac (--enable-version-specific-runtime-libs): New option. 1981 (AC_CANONICAL_SYSTEM): New. 1982 (AM_ENABLE_MULTILIB): Moved right after AM_INIT_AUTOMAKE. 1983 (toolexecdir): Support multilib. 1984 (toolexeclibdir): Likewise. 1985 (multilib_arg): New. 1986 * Makefile.in: Regenerated. 1987 * aclocal.m4: Likewise. 1988 * configure: Likewise. 1989 * asan/Makefile.in: Likewise. 1990 * interception/Makefile.in: Likewise. 1991 * sanitizer_common/Makefile.in: Likewise. 1992 19932012-11-14 H.J. Lu <hongjiu.lu@intel.com> 1994 1995 PR other/55292 1996 Backport from upstream revision 167883 1997 * sanitizer_common/sanitizer_linux.cc (internal_mmap): Check 1998 __x86_64__ instead of __WORDSIZE. 1999 (internal_filesize): Likwise. 2000 20012012-11-14 H.J. Lu <hongjiu.lu@intel.com> 2002 2003 * configure.ac (AC_CONFIG_AUX_DIR): Removed. 2004 * Makefile.in: Regenerated. 2005 * configure: Likewise. 2006 20072012-11-13 H.J. Lu <hongjiu.lu@intel.com> 2008 2009 PR other/55304 2010 * acinclude.m4: New file. 2011 * Makefile.am (ACLOCAL_AMFLAGS): New. 2012 * configure.ac (AC_PREREQ): Set to 2.64. 2013 (AC_CONFIG_AUX_DIR): Set to "..". 2014 * Makefile.in: Regenerated. 2015 * aclocal.m4: Likewise. 2016 * configure: Likewise. 2017 * asan/Makefile.in: Likewise. 2018 * interception/Makefile.in: Likewise. 2019 * sanitizer_common/Makefile.in: Likewise. 2020 2021 * config.guess: Removed. 2022 * config.sub: Likewise. 2023 * depcomp: Likewise. 2024 * install-sh: Likewise. 2025 * ltmain.sh: Likewise. 2026 * missing: Likewise. 2027 20282012-11-13 Richard Henderson <rth@redhat.com> 2029 2030 * configure.tgt: New file. 2031 20322012-11-12 David S. Miller <davem@davemloft.net> 2033 2034 * asan/asan_linux.cc (GetPcSpBp): Add sparc support. 2035 20362012-10-29 Wei Mi <wmi@google.com> 2037 2038 Initial checkin: migrate asan runtime from llvm. 2039