12021-04-08 Release Manager 2 3 * GCC 10.3.0 released. 4 52021-01-03 Iain Sandoe <iain@sandoe.co.uk> 6 Jakub Jelinek <jakub@redhat.com> 7 8 PR target/97865 9 * configure.tgt: Add dynamic_lookup to EXTRA_CXXFLAGS for 10 Darwin. 11 * configure: Regenerate. 12 132021-01-01 Iain Sandoe <iain@sandoe.co.uk> 14 15 Backported from master: 16 2020-11-21 Iain Sandoe <iain@sandoe.co.uk> 17 18 * configure.tgt: Allow x86_64 Darwin2x. 19 202020-08-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 21 22 * sanitizer_common/sanitizer_linux.cpp: Cherry-pick llvm-project 23 revision f0e9b76c3500496f8f3ea7abe6f4bf801e3b41e7. 24 252020-07-23 Release Manager 26 27 * GCC 10.2.0 released. 28 292020-05-07 Release Manager 30 31 * GCC 10.1.0 released. 32 332020-03-01 Iain Sandoe <iain@sandoe.co.uk> 34 35 PR sanitizer/93731 36 * configure.tgt (x86_64-*-darwin*, i?86-*-darwin*): Enable by 37 default only for Darwin versions greater than 12 (macOS 10.8). 38 392020-01-24 Maciej W. Rozycki <macro@wdc.com> 40 41 * configure.ac: Handle `--with-toolexeclibdir='. 42 * Makefile.in: Regenerate. 43 * aclocal.m4: Regenerate. 44 * configure: Regenerate. 45 * asan/Makefile.in: Regenerate. 46 * interception/Makefile.in: Regenerate. 47 * libbacktrace/Makefile.in: Regenerate. 48 * lsan/Makefile.in: Regenerate. 49 * sanitizer_common/Makefile.in: Regenerate. 50 * tsan/Makefile.in: Regenerate. 51 * ubsan/Makefile.in: Regenerate. 52 532019-11-26 Jakub Jelinek <jakub@redhat.com> 54 55 PR sanitizer/92154 56 * sanitizer_common/sanitizer_platform_limits_posix.h: Cherry-pick 57 llvm-project revision 947f9692440836dcb8d88b74b69dd379d85974ce. 58 * sanitizer_common/sanitizer_platform_limits_posix.cpp: Likewise. 59 602019-11-20 Martin Liska <mliska@suse.cz> 61 62 * libtool-version: Remove. 63 * lsan/libtool-version: Upate comment to not mention libmudflap. 64 * tsan/libtool-version: Likewise. 65 * ubsan/libtool-version: Likewise. 66 672019-11-13 Andreas Schwab <schwab@suse.de> 68 69 * configure.tgt (riscv64-*-linux*): Enable build. 70 712019-11-07 Martin Liska <mliska@suse.cz> 72 73 * all source files: Reapply all revisions mentioned in LOCAL_PATCHES. 74 752019-11-07 Martin Liska <mliska@suse.cz> 76 77 * merge.sh: Update to use llvm-project git repository. 78 * all source files: Merge from upstream 79 82588e05cc32bb30807e480abd4e689b0dee132a. 80 812019-11-05 Martin Liska <mliska@suse.cz> 82 83 * ubsan/ubsan_flags.cpp (InitializeFlags): Trunk decided to print 84 summary for all sanitizers, but we want to have UBSAN without it. 85 862019-11-05 Martin Liska <mliska@suse.cz> 87 88 * asan/asan_globals.cpp (CheckODRViolationViaIndicator): Reapply from 89 LOCAL_PATCHES. 90 (CheckODRViolationViaPoisoning): Likewise. 91 (RegisterGlobal): Likewise. 92 * asan/asan_interceptors.h (ASAN_INTERCEPT___CXA_RETHROW_PRIMARY_EXCEPTION): Likewise. 93 (defined): Likewise. 94 * asan/asan_mapping.h: Likewise. 95 * sanitizer_common/sanitizer_linux_libcdep.cpp (defined): Likewise. 96 * sanitizer_common/sanitizer_mac.cpp (defined): Likewise. 97 * sanitizer_common/sanitizer_platform_limits_linux.cpp (defined): Likewise. 98 * sanitizer_common/sanitizer_platform_limits_posix.h: Likewise. 99 * sanitizer_common/sanitizer_stacktrace.cpp (GetCanonicFrame): Likewise. 100 * tsan/tsan_rtl_ppc64.S: Likewise. 101 * ubsan/ubsan_handlers.cpp (__ubsan::__ubsan_handle_cfi_bad_icall): Likewise. 102 (__ubsan::__ubsan_handle_cfi_bad_icall_abort): Likewise. 103 * ubsan/ubsan_handlers.h (struct CFIBadIcallData): Likewise. 104 (struct CFICheckFailData): Likewise. 105 (RECOVERABLE): Likewise. 106 * ubsan/ubsan_platform.h: Likewise. 107 1082019-11-05 Martin Liska <mliska@suse.cz> 109 110 * tsan/Makefile.am: Rename tsan_interceptors.cpp to 111 tsan_interceptors_posix. 112 * tsan/Makefile.in: Regenerate. 113 1142019-11-05 Martin Liska <mliska@suse.cz> 115 116 * all source files: Merge from upstream r375507. 117 1182019-10-22 Tamar Christina <tamar.christina@arm.com> 119 120 PR sanitizer/92154 121 * sanitizer_common/sanitizer_platform_limits_posix.cpp: 122 Cherry-pick compiler-rt revision r375220. 123 1242019-09-27 Maciej W. Rozycki <macro@wdc.com> 125 126 * configure: Regenerate. 127 1282019-09-10 Christophe Lyon <christophe.lyon@st.com> 129 Mickaël Guêné <mickael.guene@st.com> 130 131 * configure.tgt (arm*-*-*fdpiceabi): Sanitizers are 132 unsupported in this configuration. 133 1342019-08-16 Iain Sandoe <iain@sandoe.co.uk> 135 136 * LOCAL_PATCHES: Add r274585. 137 1382019-08-16 Iain Sandoe <iain@sandoe.co.uk> 139 140 * asan/asan_interceptors.h: Reapply r272406. 141 1422019-08-15 Martin Liska <mliska@suse.cz> 143 144 * LOCAL_PATCHES: Add r274540 145 1462019-08-15 Martin Liska <mliska@suse.cz> 147 148 * tsan/tsan_rtl_ppc64.S: Reapply. 149 1502019-08-15 Iain Sandoe <iain@sandoe.co.uk> 151 152 PR bootstrap/91455 153 * Makefile.in: Regenerated. 154 * aclocal.m4: Likewise. 155 * asan/Makefile.in: Likewise. 156 * configure: Likewise. 157 * interception/Makefile.in: Likewise. 158 * libbacktrace/Makefile.in: Likewise. 159 * lsan/Makefile.in: Likewise. 160 * sanitizer_common/Makefile.am: Include top_srcdir unconditionally. 161 * sanitizer_common/Makefile.in: Regenerated. 162 * tsan/Makefile.in: Likewise. 163 * ubsan/Makefile.in: Likewise. 164 1652019-08-14 Martin Liska <mliska@suse.cz> 166 167 * LOCAL_PATCHES: Refresh based on what was committed. 168 1692019-08-14 Martin Liska <mliska@suse.cz> 170 171 * asan/asan_globals.cpp (CheckODRViolationViaIndicator): Reapply 172 patch from trunk. 173 (CheckODRViolationViaPoisoning): Likewise. 174 (RegisterGlobal): Likewise. 175 * asan/asan_mapping.h: Likewise. 176 * sanitizer_common/sanitizer_linux_libcdep.cpp (defined): Likewise. 177 * sanitizer_common/sanitizer_mac.cpp (defined): Likewise. 178 * sanitizer_common/sanitizer_platform_limits_linux.cpp (defined): Likewise. 179 * sanitizer_common/sanitizer_platform_limits_posix.h (defined): Likewise. 180 * sanitizer_common/sanitizer_stacktrace.cpp (GetCanonicFrame): Likewise. 181 * ubsan/ubsan_handlers.cpp (__ubsan::__ubsan_handle_cfi_bad_icall): Likewise. 182 (__ubsan::__ubsan_handle_cfi_bad_icall_abort): Likewise. 183 * ubsan/ubsan_handlers.h (struct CFIBadIcallData): Likewise. 184 (struct CFICheckFailData): Likewise. 185 (RECOVERABLE): Likewise. 186 * ubsan/ubsan_platform.h: Likewise. 187 1882019-08-14 Martin Liska <mliska@suse.cz> 189 190 PR sanitizer/89832 191 PR sanitizer/91325 192 * All source files: Merge from upstream 368656. 193 1942019-06-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 195 196 * sanitizer_common/sanitizer_posix_libcdep.cc: Cherry-pick 197 compiler-rt revision 363778. 198 1992019-06-18 Iain Sandoe <iain@sandoe.co.uk> 200 201 PR libsanitizer/87880 202 * asan/asan_interceptors.h: 203 (ASAN_INTERCEPT___CXA_RETHROW_PRIMARY_EXCEPTION): New. 204 * asan/Makefile.am (DEFS): Add 205 ASAN_HAS_CXA_RETHROW_PRIMARY_EXCEPTION, defined to 0. 206 * asan/Makefile.in: Regenerated. 207 * asan/libtool-version: Bump version. 208 2092019-05-27 Segher Boessenkool <segher@kernel.crashing.org> 210 211 PR target/90639 212 * tsan/tsan_rtl_ppc64.S: Add ".machine altivec". 213 2142019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 215 216 * configure.ac (have_dl_iterate_phdr): Remove *-*-solaris2.10* 217 handling. 218 * configure: Regenerate. 219 2202019-04-08 Martin Liska <mliska@suse.cz> 221 222 * LOCAL_PATCHES: Add revision. 223 2242019-04-08 Martin Liska <mliska@suse.cz> 225 226 PR sanitizer/89941 227 * sanitizer_common/sanitizer_platform_limits_linux.cc (defined): 228 Reapply patch from r259664. 229 * sanitizer_common/sanitizer_platform_limits_posix.h (defined): 230 Likewise. 231 2322019-03-13 Eric Botcazou <ebotcazou@adacore.com> 233 234 PR sanitizer/80953 235 Merge from LLVM revision 355980 236 * asan/asan_allocator.h (kAllocatorSpace): Define for SPARC. 237 (kAllocatorSize): Likewise. 238 (DefaultSizeClassMap): Likewise. 239 * asan/asan_mapping.h (kSPARC64_ShadowOffset64): Define. 240 (SHADOW_OFFSET): Define for SPARC. 241 Include asan_mapping_sparc64.h for SPARC 64-bit. 242 * asan/asan_mapping_sparc64.h: New file. 243 2442019-03-13 Eric Botcazou <ebotcazou@adacore.com> 245 246 PR sanitizer/80953 247 Merge from LLVM revision 355979 248 * asan/asan_globals.c (GetGlobalsForAddress): Use internal_memcpy to 249 copy Global objects for SPARC with GCC. 250 2512019-03-13 Eric Botcazou <ebotcazou@adacore.com> 252 253 PR sanitizer/80953 254 Merge from LLVM revision 355978 255 * sanitizer_common/sanitizer_allocator_primary32.h 256 (class SizeClassAllocator32): Assert that kSpaceSize is power of 2 if 257 SANITIZER_SIGN_EXTENDED_ADDRESSES is set. 258 (PointerIsMine): Deal with SANITIZER_SIGN_EXTENDED_ADDRESSES. 259 (ComputeRegionId): Likewise. 260 * sanitizer_common/sanitizer_linux.cc (GetMaxVirtualAddress): Return 261 appropriate value for SPARC 64-bit. 262 * sanitizer_common/sanitizer_platform.h (SANITIZER_MMAP_RANGE_SIZE): 263 Define for SPARC. 264 (SANITIZER_SIGN_EXTENDED_ADDRESSES): Define to 1 for SPARC 64-bit. 265 2662019-03-13 Eric Botcazou <ebotcazou@adacore.com> 267 268 PR sanitizer/80953 269 Merge from LLVM revision 355965 270 * sanitizer_common/sanitizer_linux.cc (GetWriteFlag): Implement for 271 SPARC/Linux. 272 (GetPcSpBp): Likewise. 273 * sanitizer_common/sanitizer_stacktrace.cc (GetNextInstructionPc): 274 Adjust for SPARC. 275 * sanitizer_common/sanitizer_stacktrace.h (SANITIZER_CAN_FAST_UNWIND): 276 Define to 1 for SPARC. 277 * sanitizer_common/sanitizer_stacktrace_sparc.cc: Rewrite. 278 * sanitizer_common/sanitizer_unwind_linux_libcdep.cc (SlowUnwindStack): 279 Adjust the PC address for SPARC with GCC. 280 2812019-03-06 Martin Liska <mliska@suse.cz> 282 283 PR sanitizer/88684 284 * sanitizer_common/sanitizer_platform.h (defined): Cherry pick. 285 (SANITIZER_NON_UNIQUE_TYPEINFO): Likewise. 286 * ubsan/ubsan_type_hash_itanium.cc (isDerivedFromAtOffset): 287 Likewise. 288 2892019-02-20 H.J. Lu <hongjiu.lu@intel.com> 290 291 PR sanitizer/89409 292 * sanitizer_common/sanitizer_linux.cc (internal_readlink): 293 Cherry-pick compiler-rt r354451. 294 2952019-01-23 Jonny Grant <jg@jguk.org> 296 297 PR sanitizer/89010 298 * libsanitizer/README.gcc: Update to current https URLs. 299 3002018-12-27 Martin Liska <mliska@suse.cz> 301 302 PR sanitizer/86229 303 * asan/asan_errors.cc (ErrorAllocTypeMismatch::Print): Cherry 304 pick rL350085. 305 * asan/asan_errors.h (struct ErrorAllocTypeMismatch): Likewise. 306 3072018-11-09 Martin Liska <mliska@suse.cz> 308 309 * LOCAL_PATCHES: Include one local patch. 310 3112018-11-09 Martin Liska <mliska@suse.cz> 312 313 PR sanitizer/87892 314 * sanitizer_common/sanitizer_linux_libcdep.cc (defined): Return 315 1 when CPU_COUNT macro is not defined. 316 3172018-11-08 Bill Seurer <seurer@linux.vnet.ibm.com> 318 319 * libsanitizer/sanitizer_common/sanitizer_linux.cc (CheckASLR): 320 Disable ASLR for powerpc64 when using sanitizers. 321 3222018-11-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 323 324 PR sanitizer/80953 325 * configure.tgt (sparc*-*-solaris2.11*): Enable. 326 (x86_64-*-solaris2.11* | i?86-*-solaris2.11*): Enable. 327 3282018-11-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 329 330 PR sanitizer/80953 331 * sanitizer_common/sanitizer_internal_defs.h, 332 sanitizer_common/sanitizer_platform_limits_solaris.h, 333 sanitizer_common/sanitizer_procmaps_solaris.cc, 334 sanitizer_common/sanitizer_solaris.cc: Cherry-pick compiler-rt 335 revision 346153. 336 * sanitizer_common/sanitizer_stacktrace.h, 337 sanitizer_common/sanitizer_stacktrace_sparc.cc: Cherry-pick 338 compiler-rt revision 346155. 339 3402018-11-05 Segher Boessenkool <segher@kernel.crashing.org> 341 342 * LOCAL_PATCHES: Add r258525. 343 * sanitizer_common/sanitizer_stacktrace.cc 344 (BufferedStackTrace::FastUnwindStack): Use the correct frame offset 345 for PowerPC SYSV ABI. 346 3472018-11-05 Martin Liska <mliska@suse.cz> 348 349 PR sanitizer/87860 350 * sanitizer_common/sanitizer_linux.cc: Cherry-pick upstream 351 r346129. 352 3532018-10-31 Joseph Myers <joseph@codesourcery.com> 354 355 PR bootstrap/82856 356 * Makefile.am: Include multilib.am. 357 * configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE. 358 * Makefile.in, aclocal.m4, asan/Makefile.in, configure, 359 interception/Makefile.in, libbacktrace/Makefile.in, 360 lsan/Makefile.in, sanitizer_common/Makefile.in, tsan/Makefile.in, 361 ubsan/Makefile.in: Regenerate. 362 3632018-10-31 Martin Liska <mliska@suse.cz> 364 365 * LOCAL_PATCHES: Update to installed revisions. 366 3672018-10-31 Martin Liska <mliska@suse.cz> 368 369 * ubsan/ubsan_platform.h: Add ifndef as we define it with 370 -DCAN_SANITIZE_UB CFLAGS. 371 3722018-10-31 Martin Liska <mliska@suse.cz> 373 374 * asan/asan_mapping.h: Revert shadow memory offset to 1 << 41. 375 3762018-10-31 Martin Liska <mliska@suse.cz> 377 378 * LOCAL_PATCHES: Update patch list. 379 * asan/asan_globals.cc (CheckODRViolationViaIndicator): Apply 380 patches from GCC's trunk. 381 (CheckODRViolationViaPoisoning): Likewise. 382 (RegisterGlobal): Likewise. 383 * sanitizer_common/sanitizer_mac.cc (defined): Likewise. 384 * sanitizer_common/sanitizer_stacktrace.cc (GetCanonicFrame): Likewise. 385 * ubsan/ubsan_handlers.cc (__ubsan::__ubsan_handle_cfi_bad_icall): Likewise. 386 (__ubsan::__ubsan_handle_cfi_bad_icall_abort): Likewise. 387 * ubsan/ubsan_handlers.h (struct CFIBadIcallData): Likewise. 388 (struct CFICheckFailData): Likewise. 389 (RECOVERABLE): Likewise. 390 3912018-10-31 Martin Liska <mliska@suse.cz> 392 393 * config.h.in: Regenerate. 394 * configure: Likewise. 395 * sanitizer_common/Makefile.am: Include new files, remove old 396 files. 397 * sanitizer_common/Makefile.in: Regenerate. 398 * ubsan/Makefile.am: Include new files, remove old 399 files. 400 * ubsan/Makefile.in: Likewise. 401 * asan/Makefile.am: Include new files. 402 * asan/Makefile.in: Regenerate. 403 4042018-10-31 Martin Liska <mliska@suse.cz> 405 406 * All source files: Merge from upstream 345033. 407 4082018-10-31 Martin Liska <mliska@suse.cz> 409 410 * HOWTO_MERGE: Enhance documentation. 411 * merge.sh: Add support for git as well. 412 4132018-08-02 Martin Liska <mliska@suse.cz> 414 415 PR sanitizer/86022 416 * sanitizer_common/sanitizer_linux_libcdep.cc (ThreadDescriptorSize): 417 Cherry-pick compiler-rt revision 338606. 418 4192018-08-01 Marek Polacek <polacek@redhat.com> 420 421 PR sanitizer/86759 422 * tsan/tsan_platform.h: Cherry-pick compiler-rt revision 318044. 423 * tsan/tsan_platform_linux.cc: Cherry-pick compiler-rt revision 424 319180. 425 4262018-07-25 H.J. Lu <hongjiu.lu@intel.com> 427 428 PR target/86560 429 * asan/asan_interceptors.cc (swapcontext) Cherry-pick 430 compiler-rt revision 337603. 431 * sanitizer_common/sanitizer_internal_defs.h (__has_attribute): 432 Likewise. 433 4342018-07-05 Jakub Jelinek <jakub@redhat.com> 435 436 Revert 437 2018-07-04 Maxim Ostapenko <m.ostapenko@samsung.com> 438 439 PR sanitizer/84250 440 * Makefile.am: Reorder libs. 441 * Makefile.in: Regenerate. 442 * asan/Makefile.am: Define DCAN_SANITIZE_UB=1, add dependancy from 443 libsanitizer_ubsan.la. 444 * asan/Makefile.in: Regenerate. 445 * ubsan/Makefile.am: Define new libsanitizer_ubsan.la library. 446 * ubsan/Makefile.in: Regenerate. 447 4482018-07-04 Maxim Ostapenko <m.ostapenko@samsung.com> 449 450 PR sanitizer/84250 451 * Makefile.am: Reorder libs. 452 * Makefile.in: Regenerate. 453 * asan/Makefile.am: Define DCAN_SANITIZE_UB=1, add dependancy from 454 libsanitizer_ubsan.la. 455 * asan/Makefile.in: Regenerate. 456 * ubsan/Makefile.am: Define new libsanitizer_ubsan.la library. 457 * ubsan/Makefile.in: Regenerate. 458 4592018-06-13 Denis Khalikov <d.khalikov@partner.samsung.com> 460 461 PR sanitizer/86090 462 * configure.ac: Check for lstat and readlink. 463 * configure, config.h.in: Rebuild. 464 4652018-05-31 Matthias Klose <doko@ubuntu.com> 466 467 PR sanitizer/86012 468 * sanitizer_common/sanitizer_platform_limits_posix.cc: Define 469 SIZEOF_STRUCT_USTAT for 32bit sparc. 470 4712018-05-24 H.J. Lu <hongjiu.lu@intel.com> 472 473 PR sanitizer/85835 474 * sanitizer_common/sanitizer_platform_limits_posix.cc: Don't 475 include <sys/ustat.h> for Linux. 476 (SIZEOF_STRUCT_USTAT): New. 477 (struct_ustat_sz): Use SIZEOF_STRUCT_USTAT for Linux. 478 4792018-04-26 Hans-Peter Nilsson <hp@axis.com> 480 481 * configure.tgt <mips*-*-linux*>: Enable build, excluding 482 mips*64*-*-linux*. 483 484 * sanitizer_common/sanitizer_platform_limits_linux.cc: Do not 485 take the shortcut to #include <sys/stat.h> for MIPS instead of 486 the kernel <asm/stat.h>. Explain why sys/stat.h is misleading 487 or wrong to get the kernel struct stat. 488 * sanitizer_common/sanitizer_platform_limits_posix.h [__mips__]: 489 Correct the value for 32-bit non-android struct_kernel_stat_sz. 490 491 * sanitizer_common/sanitizer_atomic_clang_other.h [_MIPS_SIM 492 && _MIPS_SIM == _ABIO32] (lock): Add initializer for .pad member. 493 4942018-04-24 H.J. Lu <hongjiu.lu@intel.com> 495 496 * configure: Regenerated. 497 4982018-04-19 Jakub Jelinek <jakub@redhat.com> 499 500 * configure: Regenerated. 501 5022018-04-18 David Malcolm <dmalcolm@redhat.com> 503 504 PR jit/85384 505 * configure: Regenerate. 506 5072018-04-18 Bill Seurer <seurer@linux.vnet.ibm.com> 508 509 PR sanitizer/85389 510 * asan/asan_allocator.h (kAllocatorSpace): For __powerpc64__ change 511 from 0xa0000000000ULL to ~(uptr)0. 512 5132018-03-19 Jakub Jelinek <jakub@redhat.com> 514 515 PR sanitizer/84761 516 * sanitizer_common/sanitizer_linux_libcdep.cc (__GLIBC_PREREQ): 517 Define if not defined. 518 (DL_INTERNAL_FUNCTION): Don't define. 519 (InitTlsSize): For __i386__ if not compiled against glibc 2.27+ 520 determine at runtime whether to use regparm(3), stdcall calling 521 convention for older glibcs or normal calling convention for 522 newer glibcs for call to _dl_get_tls_static_info. 523 5242018-03-14 Segher Boessenkool <segher@kernel.crashing.org> 525 526 * sanitizer_common/sanitizer_stacktrace.cc 527 (BufferedStackTrace::FastUnwindStack): Use the correct frame offset 528 for PowerPC SYSV ABI. 529 5302018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com> 531 532 PR target/84148 533 * configure: Regenerate. 534 5352018-02-05 Martin Liska <mliska@suse.cz> 536 537 * asan/asan_flags.inc: Cherry-pick upstream r323995. 538 * asan/asan_report.cc (CheckForInvalidPointerPair): 539 Cherry-pick upstream r323995. 540 5412018-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 542 543 PR sanitizer/82825 544 * sanitizer_common/sanitizer_internal_defs.h: Cherry-pick upstream 545 r324284. 546 5472018-01-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 548 549 PR sanitizer/82824 550 * lsan/lsan_common_mac.cc: Cherry-pick upstream r322437. 551 5522017-12-05 Martin Liska <mliska@suse.cz> 553 Jakub Jelinek <jakub@redhat.com> 554 555 * asan/asan_descriptions.cc: Cherry-pick upstream r319668. 556 * asan/asan_descriptions.h: Likewise. 557 * asan/asan_report.cc: Likewise. 558 * asan/asan_thread.cc: Likewise. 559 * asan/asan_thread.h: Likewise. 560 5612017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com> 562 563 * acinclude.m4: Add enable.m4 and cet.m4. 564 * Makefile.in: Regenerate. 565 * asan/Makefile.am: Update AM_CXXFLAGS. 566 * asan/Makefile.in: Regenerate. 567 * configure: Likewise. 568 * configure.ac: Set CET_FLAGS. Update EXTRA_CFLAGS, 569 EXTRA_CXXFLAGS, EXTRA_ASFLAGS. 570 * interception/Makefile.am: Update AM_CXXFLAGS. 571 * interception/Makefile.in: Regenerate. 572 * libbacktrace/Makefile.am: Update AM_CFLAGS, AM_CXXFLAGS. 573 * libbacktrace/Makefile.in: Regenerate. 574 * lsan/Makefile.am: Update AM_CXXFLAGS. 575 * lsan/Makefile.in: Regenerate. 576 * sanitizer_common/Makefile.am: Update AM_CXXFLAGS, 577 AM_CCASFLAGS. 578 * sanitizer_common/sanitizer_linux_x86_64.S: Include cet.h. 579 Add _CET_ENDBR macro. 580 * sanitizer_common/Makefile.in: Regenerate. 581 * tsan/Makefile.am: Update AM_CXXFLAGS. 582 * tsan/Makefile.in: Regenerate. 583 * tsan/tsan_rtl_amd64.S Include cet.h. Add _CET_ENDBR macro. 584 * ubsan/Makefile.am: Update AM_CXXFLAGS. 585 * ubsan/Makefile.in: Regenerate. 586 5872017-11-08 Jakub Jelinek <jakub@redhat.com> 588 589 PR bootstrap/82670 590 * ubsan/Makefile.am (ubsan_files): Remove ubsan_init_standalone.cc 591 and ubsan_signals_standalone.cc. 592 * ubsan/Makefile.in: Regenerated. 593 5942017-11-05 Tom de Vries <tom@codesourcery.com> 595 596 PR other/82784 597 * asan/asan_poisoning.cc (CHECK_SMALL_REGION): Remove semicolon after 598 "do {} while (0)". 599 * lsan/lsan_common.cc (LOG_POINTERS, LOG_THREADS): Same. 600 6012017-10-20 Jakub Jelinek <jakub@redhat.com> 602 603 PR sanitizer/82595 604 * lsan/lsan.h (__lsan_init): Add SANITIZER_INTERFACE_ATTRIBUTE. 605 * lsan/Makefile.am (nodist_toolexeclib_HEADERS): Add 606 liblsan_preinit.o. 607 (lsan_files): Remove lsan_preinit.cc. 608 (liblsan_preinit.o): New rule. 609 * lsan/Makefile.in: Regenerated. 610 6112017-10-19 Jakub Jelinek <jakub@redhat.com> 612 613 * All source files: Merge from upstream 315899. 614 * asan/Makefile.am (nodist_saninclude_HEADERS): Add 615 include/sanitizer/tsan_interface.h. 616 * asan/libtool-version: Bump the libasan SONAME. 617 * lsan/Makefile.am (sanitizer_lsan_files): Add lsan_common_mac.cc. 618 (lsan_files): Add lsan_linux.cc, lsan_mac.cc and lsan_malloc_mac.cc. 619 * sanitizer_common/Makefile.am (sanitizer_common_files): Add 620 sancov_flags.cc, sanitizer_allocator_checks.cc, 621 sanitizer_coverage_libcdep_new.cc, sanitizer_errno.cc, 622 sanitizer_file.cc, sanitizer_mac_libcdep.cc and 623 sanitizer_stoptheworld_mac.cc. Remove sanitizer_coverage_libcdep.cc 624 and sanitizer_coverage_mapping_libcdep.cc. 625 * tsan/Makefile.am (tsan_files): Add tsan_external.cc. 626 * ubsan/Makefile.am (DEFS): Add -DUBSAN_CAN_USE_CXXABI=1. 627 (ubsan_files): Add ubsan_init_standalone.cc and 628 ubsan_signals_standalone.cc. 629 * ubsan/libtool-version: Bump the libubsan SONAME. 630 * asan/Makefile.in: Regenerate. 631 * lsan/Makefile.in: Regenerate. 632 * sanitizer_common/Makefile.in: Regenerate. 633 * tsan/Makefile.in: Regenerate. 634 * ubsan/Makefile.in: Regenerate. 635 6362017-10-05 H.J. Lu <hongjiu.lu@intel.com> 637 638 PR sanitizer/82379 639 * configure.tgt (SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS): Set 640 to sanitizer_linux_x86_64.lo if __x86_64__ is defined by $CC. 641 6422017-10-02 Jakub Jelinek <jakub@redhat.com> 643 644 * libbacktrace/backtrace-rename.h (backtrace_uncompress_zdebug): 645 Define. 646 6472017-08-07 Jakub Jelinek <jakub@redhat.com> 648 649 * include/system/sys/ptrace.h: New file. 650 6512017-07-28 Jakub Jelinek <jakub@redhat.com> 652 653 PR sanitizer/80998 654 * ubsan/ubsan_handlers.cc: Cherry-pick upstream r304461. 655 * ubsan/ubsan_checks.inc: Likewise. 656 * ubsan/ubsan_handlers.h: Likewise. 657 6582017-07-14 Jakub Jelinek <jakub@redhat.com> 659 660 PR sanitizer/81066 661 * sanitizer_common/sanitizer_linux.h: Cherry-pick upstream r307969. 662 * sanitizer_common/sanitizer_linux.cc: Likewise. 663 * sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc: Likewise. 664 * tsan/tsan_platform_linux.cc: Likewise. 665 6662017-04-06 Martin Liska <mliska@suse.cz> 667 668 PR sanitizer/80166 669 * sanitizer_common/sanitizer_common_interceptors.inc (INTERCEPTOR): 670 Cherry-pick upstream r299036. 671 6722017-03-22 Jakub Jelinek <jakub@redhat.com> 673 674 PR sanitizer/78158 675 * tsan/tsan_interface_atomic.cc: Cherry-pick upstream r298378. 676 6772017-02-16 Andreas Tobler <andreast@gcc.gnu.org> 678 679 PR sanitizer/79562 680 * sanitizer_common/sanitizer_platform_limits_posix.cc: Cherry-pick 681 upstream r294806. 682 6832017-02-11 Jakub Jelinek <jakub@redhat.com> 684 685 PR sanitizer/79341 686 * configure.tgt (s390*-*-linux*): Don't disable libsanitizer on 687 s390-linux 31-bit. 688 * sanitizer_common/sanitizer_internal_defs.h: Cherry-pick upstream 689 r294793. 690 * sanitizer_common/sanitizer_common_interceptors.inc: Cherry-pick 691 upstream r294790. 692 * sanitizer_common/sanitizer_linux_s390.cc: Cherry-pick upstream 693 r294799. 694 6952017-02-03 Maxim Ostapenko <m.ostapenko@samsung.com> 696 697 PR sanitizer/78663 698 * sanitizer_common/sanitizer_mac.cc: Cherry-pick upstream r293992. 699 * sanitizer_common/sanitizer_platform_interceptors.h: Likewise. 700 7012017-01-31 Jakub Jelinek <jakub@redhat.com> 702 703 * configure.tgt: Enable asan and ubsan on 64-bit s390*-*-linux*. 704 7052017-01-24 Jakub Jelinek <jakub@redhat.com> 706 707 * configure.tgt: Enable tsan and lsan on powerpc64{,le}-*-linux*. 708 709 PR sanitizer/79168 710 * merge.sh (change_comment_headers): Don't remove 2nd and 3rd line 711 if the 3rd line doesn't contain 'The LLVM Compiler Infrastructure' 712 text. 713 * sanitizer_common/sanitizer_linux_mips64.S: Regenerated. 714 * sanitizer_common/sanitizer_linux_x86_64.S: Likewise. 715 * tsan/tsan_ppc_regs.h: Likewise. 716 * tsan/tsan_rtl_aarch64.S: Likewise. 717 * tsan/tsan_rtl_mips64.S: Likewise. 718 * tsan/tsan_rtl_ppc64.S: Likewise. 719 7202017-01-21 Jakub Jelinek <jakub@redhat.com> 721 722 PR other/79046 723 * interception/Makefile.am (gcc_version): Use @get_gcc_base_ver@ 724 instead of cat to get version from BASE-VER file. 725 * asan/Makefile.am (gcc_version): Likewise. 726 * ubsan/Makefile.am (gcc_version): Likewise. 727 * sanitizer_common/Makefile.am (gcc_version): Likewise. 728 * lsan/Makefile.am (gcc_version): Likewise. 729 * tsan/Makefile.am (gcc_version): Likewise. 730 * interception/Makefile.in: Regenerated. 731 * asan/Makefile.in: Regenerated. 732 * ubsan/Makefile.in: Regenerated. 733 * sanitizer_common/Makefile.in: Regenerated. 734 * lsan/Makefile.in: Regenerated. 735 * tsan/Makefile.in: Regenerated. 736 7372017-01-17 Jakub Jelinek <jakub@redhat.com> 738 739 PR other/79046 740 * configure.ac: Add GCC_BASE_VER. 741 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to 742 get version from BASE-VER file. 743 * libbacktrace/Makefile.in: Regenerated. 744 * interception/Makefile.in: Regenerated. 745 * asan/Makefile.in: Regenerated. 746 * ubsan/Makefile.in: Regenerated. 747 * configure: Regenerated. 748 * sanitizer_common/Makefile.in: Regenerated. 749 * lsan/Makefile.in: Regenerated. 750 * Makefile.in: Regenerated. 751 * tsan/Makefile.in: Regenerated. 752 7532017-01-10 James Clarke <jrtc27@jrtc27.com> 754 755 PR sanitizer/78992 756 * sanitizer_common/sanitizer_platform_limits_posix.h 757 (struct __sanitizer_sigaction): Cherry-pick upstream r291561. 758 7592016-11-30 Maxim Ostapenko <m.ostapenko@samsung.com> 760 761 * LOCAL_PATCHES: Add revision. 762 7632016-11-30 Maxim Ostapenko <m.ostapenko@samsung.com> 764 765 PR sanitizer/78532 766 * sanitizer_common/sanitizer_platform_limits_posix.h 767 (__sanitizer_sigaction): Adjust for sparc targets and various Glibc 768 versions. 769 7702016-11-29 Markus Trippelsdorf <markus@trippelsdorf.de> 771 772 * LOCAL_PATCHES: Remove r242480. 773 7742016-11-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 775 776 * LOCAL_PATCHES: Add revision. 777 7782016-11-20 Jack Howarth <howarth.at.gcc@gmail.com> 779 780 PR sanitizer/78267 781 * sanitizer_common/sanitizer_mac.cc: Include <os/trace.h> only if 782 compiler supports blocks extension. 783 7842016-11-16 Markus Trippelsdorf <markus@trippelsdorf.de> 785 786 * LOCAL_PATCHES: Add revision. 787 7882016-11-16 Markus Trippelsdorf <markus@trippelsdorf.de> 789 790 PR sanitizer/78294 791 * tsan/tsan_rtl.cc: Add missing attribute. 792 7932016-11-16 Maxim Ostapenko <m.ostapenko@samsung.com> 794 795 * LOCAL_PATCHES: New file. 796 7972016-11-16 Maxim Ostapenko <m.ostapenko@samsung.com> 798 799 PR sanitizer/78307 800 * ubsan/ubsan_handlers.cc (__ubsan_handle_cfi_bad_icall): New function. 801 ( __ubsan_handle_cfi_bad_icall_abort): Likewise. 802 * ubsan/ubsan_handlers.h (struct CFIBadIcallData): New type. 803 * ubsan/ubsan_handlers_cxx.cc (__ubsan_handle_cfi_bad_type): New 804 function. 805 (__ubsan_handle_cfi_bad_type_abort): Likewise. 806 * ubsan/ubsan_handlers_cxx.h (struct CFIBadTypeData): New type. 807 (__ubsan_handle_cfi_bad_type): Export function. 808 (__ubsan_handle_cfi_bad_type_abort): Likewise. 809 * HOWTO_MERGE: Update documentation. 810 8112016-11-15 Matthias Klose <doko@ubuntu.com> 812 813 * configure: Regenerate. 814 8152016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com> 816 817 * asan/asan_globals.cc (RegisterGlobal): Do not call 818 CheckODRViolationViaPoisoning. 819 (CheckODRViolationViaPoisoning): Remove. 820 8212016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com> 822 823 * sanitizer_common/sanitizer_stacktrace.cc (GetCanonicFrame): Assume we 824 compiled code with GCC when extracting the caller PC for ARM if no 825 valid frame pointer is available. 826 8272016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com> 828 829 PR sanitizer/63958 830 Reapply: 831 2014-10-14 David S. Miller <davem@davemloft.net> 832 833 * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t): 834 Define at __kernel_time_t, as needed for sparc. 835 (struct __old_kernel_stat): Don't check if __sparc__ is defined. 836 * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h 837 (__sanitizer): Define struct___old_kernel_stat_sz, 838 struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc. 839 (__sanitizer_ipc_perm): Adjust for sparc targets. 840 (__sanitizer_shmid_ds): Likewsie. 841 (__sanitizer_sigaction): Likewise. 842 (IOC_SIZE): Likewsie. 843 8442016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com> 845 846 * All source files: Merge from upstream 285547. 847 * configure.tgt (SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS): New 848 variable. 849 * configure.ac (SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS): Handle it. 850 * asan/Makefile.am (asan_files): Add new files. 851 * asan/Makefile.in: Regenerate. 852 * ubsan/Makefile.in: Likewise. 853 * lsan/Makefile.in: Likewise. 854 * tsan/Makefile.am (tsan_files): Add new files. 855 * tsan/Makefile.in: Regenerate. 856 * sanitizer_common/Makefile.am (sanitizer_common_files): Add new files. 857 (EXTRA_libsanitizer_common_la_SOURCES): Define. 858 (libsanitizer_common_la_LIBADD): Likewise. 859 (libsanitizer_common_la_DEPENDENCIES): Likewise. 860 * sanitizer_common/Makefile.in: Regenerate. 861 * interception/Makefile.in: Likewise. 862 * libbacktace/Makefile.in: Likewise. 863 * Makefile.in: Likewise. 864 * configure: Likewise. 865 * merge.sh: Handle builtins/assembly.h merging. 866 * builtins/assembly.h: New file. 867 * asan/libtool-version: Bump the libasan SONAME. 868 8692016-09-21 Jakub Jelinek <jakub@redhat.com> 870 871 PR sanitizer/77567 872 * asan/asan_new_delete.cc: Cherry-pick upstream r282019. 873 8742016-09-05 Jakub Jelinek <jakub@redhat.com> 875 876 PR sanitizer/77396 877 * asan/asan_globals.cc: Cherry-pick upstream r280657. 878 8792016-08-12 Jakub Jelinek <jakub@redhat.com> 880 881 PR sanitizer/71042 882 * tsan/tsan_platform_linux.cc: Cherry-pick upstream r278292. 883 * tsan/tsan_rtl_aarch64.S: Likewise. 884 8852016-07-23 Alan Modra <amodra@gmail.com> 886 887 Revert 2015-11-09 Alan Modra <amodra@gmail.com> 888 * configure.ac: Don't substitute OBSTACK_DEFS. 889 * asan/Makefile.am: Remove OBSTACK_DEFS from DEFS. 890 * tsan/Makefile.am: Likewise. 891 * configure: Regenerate. 892 * Makefile.in: Regenerate. 893 * asan/Makefile.in: Regenerate. 894 * interception/Makefile.in: Regenerate. 895 * libbacktrace/Makefile.in: Regenerate. 896 * lsan/Makefile.in: Regenerate. 897 * sanitizer_common/Makefile.in: Regenerate. 898 * tsan/Makefile.in: Regenerate. 899 * ubsan/Makefile.in: Regenerate. 900 9012016-05-17 Jakub Jelinek <jakub@redhat.com> 902 903 PR sanitizer/71160 904 * asan/asan_malloc_linux.cc: Cherry pick upstream r254395 905 and r269633. 906 9072016-04-21 Maxim Ostapenko <m.ostapenko@samsung.com> 908 909 PR sanitizer/70624 910 * asan/asan_mac.cc: Cherry pick upstream r266868. 911 9122016-01-19 Jakub Jelinek <jakub@redhat.com> 913 914 PR sanitizer/68824 915 * tsan/tsan_interceptors.cc (NEED_TLS_GET_ADDR, __tls_get_addr, 916 InitializeInterceptors): Cherry pick upstream r258119. 917 9182016-01-14 Andreas Tobler <andreast@gcc.gnu.org> 919 920 * configure.ac: Replace the hard-coded -ldl requirement for 921 link_sanitizer_common with a configure time check for -ldl. 922 * configure: Regenerate. 923 9242015-11-24 Maxim Ostapenko <m.ostapenko@partner.samsung.com> 925 926 * include/system/linux/asm/ptrace.h: Move to ... 927 * include/system/asm/ptrace.h: ... this. 928 9292015-11-24 Maxim Ostapenko <m.ostapenko@partner.samsung.com> 930 931 * include/system/linux/asm/ptrace.h: New header. 932 9332015-11-23 Maxim Ostapenko <m.ostapenko@partner.samsung.com> 934 935 * All source files: Merge from upstream r253555. 936 * configure.tgt: Enable LSan on aarch64-*-linux* targets. Add new 937 dependences for TSan for aarch64-*-linux* targets. 938 * tsan/Makefile.am: Add new source files. 939 * configure: Regenerate. 940 * tsan/Makefile.in: Likewise. 941 9422015-11-09 Alan Modra <amodra@gmail.com> 943 944 * sanitizer_common/sanitizer_common_interceptors.inc: Update size 945 params for _obstack_begin_1, _obstack_begin, _obstack_newchunk 946 interceptors. 947 * configure.ac: Substitute OBSTACK_DEFS. 948 * asan/Makefile.am: Add OBSTACK_DEFS to DEFS. 949 * tsan/Makefile.am: Likewise. 950 * configure: Regenerate. 951 * Makefile.in: Regenerate. 952 * asan/Makefile.in: Regenerate. 953 * interception/Makefile.in: Regenerate. 954 * libbacktrace/Makefile.in: Regenerate. 955 * lsan/Makefile.in: Regenerate. 956 * sanitizer_common/Makefile.in: Regenerate. 957 * tsan/Makefile.in: Regenerate. 958 * ubsan/Makefile.in: Regenerate. 959 9602015-10-22 Maxim Ostapenko <m.ostapenko@partner.samsung.com> 961 962 PR bootstrap/68041 963 * configure.ac (link_sanitizer_common): Link against librt only if it 964 contains shm_open, required by sanitizers. 965 (CXX_ABI_NEEDED): Remove variable. 966 * configure: Regenerate. 967 * ubsan/Makefile.am (libubsan_la_LIBADD): Do not add -lc++abi anymore. 968 * ubsan/Makefile.in: Regenerate. 969 9702015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com> 971 972 * HOWTO_MERGE: New file. 973 9742015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com> 975 976 * sanitizer_common/sanitizer_stacktrace.cc (GetCanonicFrame): Assume we 977 compiled code with GCC when extracting the caller PC for ARM if no 978 valid frame pointer is available. 979 9802015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com> 981 982 PR bootstrap/63888 983 Reapply: 984 2015-02-20 Jakub Jelinek <jakub@redhat.com> 985 986 * asan/asan_globals.cc (RegisterGlobal): Disable detect_odr_violation 987 support until it is rewritten upstream. 988 989 * c-c++-common/asan/pr63888.c: New test. 990 9912015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com> 992 993 PR sanitizer/63958 994 Reapply: 995 2014-10-14 David S. Miller <davem@davemloft.net> 996 997 * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t): 998 Define at __kernel_time_t, as needed for sparc. 999 (struct __old_kernel_stat): Don't check if __sparc__ is defined. 1000 * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h 1001 (__sanitizer): Define struct___old_kernel_stat_sz, 1002 struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc. 1003 (__sanitizer_ipc_perm): Adjust for sparc targets. 1004 (__sanitizer_shmid_ds): Likewsie. 1005 (__sanitizer_sigaction): Likewise. 1006 (IOC_SIZE): Likewsie. 1007 10082015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com> 1009 1010 * All source files: Merge from upstream r250806. 1011 * configure.ac (link_sanitizer_common): Add -lrt flag. 1012 * configure.tgt: Enable TSAN and LSAN for aarch64-linux targets. 1013 Set USE_CXX_ABI_FLAG=true for darwin. 1014 * asan/Makefile.am (asan_files): Add new files. 1015 (DEFS): Add DCAN_SANITIZE_UB=0 and remove unused and legacy 1016 DASAN_FLEXIBLE_MAPPING_AND_OFFSET=0. 1017 * asan/Makefile.in: Regenerate. 1018 * ubsan/Makefile.am (ubsan_files): Add new files. 1019 (DEFS): Add DCAN_SANITIZE_UB=1. 1020 (libubsan_la_LIBADD): Add -lc++abi if USE_CXX_ABI_FLAG is true. 1021 * ubsan/Makefile.in: Regenerate. 1022 * tsan/Makefile.am (tsan_files): Add new files. 1023 (DEFS): Add DCAN_SANITIZE_UB=0. 1024 * tsan/Makefile.in: Regenerate. 1025 * sanitizer_common/Makefile.am (sanitizer_common_files): Add new files. 1026 * sanitizer_common/Makefile.in: Regenerate. 1027 * asan/libtool-version: Bump the libasan SONAME. 1028 10292015-09-09 Markus Trippelsdorf <markus@trippelsdorf.de> 1030 1031 PR sanitizer/67258 1032 * ubsan/ubsan_type_hash.cc: Cherry pick upstream r244101. 1033 10342015-07-29 Markus Trippelsdorf <markus@trippelsdorf.de> 1035 1036 PR sanitizer/63927 1037 * sanitizer_common/sanitizer_stacktrace.h: Use fast unwinder 1038 for PowerPC. 1039 10402015-07-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com> 1041 1042 PR sanitizer/63927 1043 * sanitizer_common/sanitizer_stacktrace.cc 1044 (BufferedStackTrace::FastUnwindStack): Fix code for PowerPC to 1045 find the link register at an offset of 16 from the base of the 1046 caller's stack frame. 1047 10482015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com> 1049 1050 * Makefile.in: Regenerated with automake-1.11.6. 1051 * aclocal.m4: Likewise. 1052 * asan/Makefile.in: Likewise. 1053 * configure: Likewise. 1054 * interception/Makefile.in: Likewise. 1055 * libbacktrace/Makefile.in: Likewise. 1056 * lsan/Makefile.in: Likewise. 1057 * sanitizer_common/Makefile.in: Likewise. 1058 * tsan/Makefile.in: Likewise. 1059 * ubsan/Makefile.in: Likewise. 1060 10612015-04-13 Yury Gribov <y.gribov@samsung.com> 1062 1063 PR sanitizer/64839 1064 * sanitizer_common/sanitizer_platform.h: Cherry pick 1065 upstream r234470. 1066 * sanitizer_common/sanitizer_platform_limits_posix.cc: Ditto. 1067 * configure.ac (RPC_DEFS): Check for precense of RPC headers. 1068 * sanitizer_common/Makefile.am (DEFS): Pass info to compiler. 1069 * Makefile.in: Regenerate. 1070 * asan/Makefile.in: Regenerate. 1071 * config.h.in: Regenerate. 1072 * configure: Regenerate. 1073 * interception/Makefile.in: Regenerate. 1074 * libbacktrace/Makefile.in: Regenerate. 1075 * lsan/Makefile.in: Regenerate. 1076 * sanitizer_common/Makefile.in: Regenerate. 1077 * tsan/Makefile.in: Regenerate. 1078 * ubsan/Makefile.in: Regenerate. 1079 1080 10812015-03-23 Christophe Lyon <christophe.lyon@linaro.org> 1082 1083 PR sanitizer/59009 1084 * sanitizer_common/sanitizer_platform_limits_posix.cc: Cherry pick 1085 upstream r230324. 1086 * sanitizer_common/sanitizer_platform.h: Likewise. 1087 * sanitizer_common/sanitizer_common_syscalls.inc: Likewise. 1088 10892015-03-11 Bernd Edlinger <bernd.edlinger@hotmail.de> 1090 1091 * tsan/tsan_rtl_report.cc (ScopedReport::AddThread): Cherry pick 1092 upstream 224508 and 224755. 1093 10942015-03-09 Jakub Jelinek <jakub@redhat.com> 1095 1096 PR sanitizer/63958 1097 Reapply: 1098 2014-10-14 David S. Miller <davem@davemloft.net> 1099 1100 * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t): 1101 Define at __kernel_time_t, as needed for sparc. 1102 (struct __old_kernel_stat): Don't check if __sparc__ is defined. 1103 * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h 1104 (__sanitizer): Define struct___old_kernel_stat_sz, 1105 struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc. 1106 (__sanitizer_ipc_perm): Adjust for sparc targets. 1107 (__sanitizer_shmid_ds): Likewsie. 1108 (__sanitizer_sigaction): Likewise. 1109 (IOC_SIZE): Likewsie. 1110 11112015-02-27 Peter Bergner <bergner@vnet.ibm.com> 1112 1113 * configure.tgt: Enable build on powerpc*le-*-linux. 1114 11152015-02-23 Jakub Jelinek <jakub@redhat.com> 1116 1117 PR bootstrap/63888 1118 * asan/asan_globals.cc (RegisterGlobal): Disable detect_odr_violation 1119 support until it is rewritten upstream. 1120 11212015-01-26 Matthias Klose <doko@ubuntu.com> 1122 1123 * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC. 1124 * configure: Regenerate. 1125 11262015-01-25 Venkataramanan Kumar <venkataramanan.kumar@linaro.org> 1127 1128 * configure.ac (TSAN_TARGET_DEPENDENT_OBJECTS): Undefine. 1129 * configure: Regenerate. 1130 * configure.tgt (TSAN_TARGET_DEPENDENT_OBJECTS): Define. 1131 11322015-01-25 Venkataramanan Kumar <venkataramanan.kumar@linaro.org> 1133 1134 * configure.ac (TSAN_TARGET_DEPENDENT_OBJECTS): Define. 1135 * configure: Regenerate. 1136 * tsan/Makefile.am (EXTRA_libtsan_la_SOURCES): Define. 1137 (libtsan_la_DEPENDENCIES): Likewise. 1138 * Makefile.in: Regenerate. 1139 * asan/Makefile.in: Regenerate. 1140 * interception/Makefile.in: Regenerate. 1141 * libbacktrace/Makefile.in: Regenerate. 1142 * lsan/Makefile.in: Regenerate. 1143 * sanitizer_common/Makefile.in: Regenerate. 1144 * tsan/Makefile.in: Regenerate. 1145 * ubsan/Makefile.in: Regenerate. 1146 11472015-01-22 Jakub Jelinek <jakub@redhat.com> 1148 1149 * tsan/tsan_rtl.h: Cherry pick upstream r226829. 1150 11512015-01-21 Jakub Jelinek <jakub@redhat.com> 1152 1153 PR sanitizer/64435 1154 * sanitizer_common/sanitizer_platform_limits_posix.h: Cherry pick 1155 upstream r226637. 1156 * sanitizer_common/sanitizer_platform_limits_posix.cc: Likewise. 1157 * sanitizer_common/sanitizer_posix.cc: Cherry pick upstream r226639. 1158 11592015-01-20 Jakub Jelinek <jakub@redhat.com> 1160 1161 PR sanitizer/64632 1162 * ubsan/ubsan_type_hash.cc: Cherry pick upstream r224972. 1163 11642015-01-19 Jakub Jelinek <jakub@redhat.com> 1165 1166 PR sanitizer/64435 1167 * sanitizer_common/sanitizer_platform_limits_posix.cc: Cherry pick 1168 upstream r223925. 1169 11702015-01-13 Jakub Jelinek <jakub@redhat.com> 1171 1172 * sanitizer_common/sanitizer_deadlock_detector.h: Cherry pick 1173 upstream r224518 and r224519. 1174 * tsan/tsan_rtl_thread.cc: Cherry pick upstream r224702 and 1175 r224834. 1176 11772014-12-16 Jakub Jelinek <jakub@redhat.com> 1178 1179 * sanitizer_common/sanitizer_symbolizer_libbacktrace.cc, 1180 sanitizer_common/sanitizer_symbolizer_libbacktrace.h, 1181 sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc: Cherry pick 1182 upstream r224308. 1183 11842014-11-21 H.J. Lu <hongjiu.lu@intel.com> 1185 1186 PR bootstrap/63784 1187 * configure: Regenerated. 1188 11892014-11-21 Jakub Jelinek <jakub@redhat.com> 1190 1191 PR target/61137 1192 * config/ia64/ia64.c (ia64_attribute_takes_identifier_p): New function. 1193 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Redefine to it. 1194 11952014-11-14 Uros Bizjak <ubizjak@gmail.com> 1196 1197 * sanitizer_common/Makefile.am (AM_CXXFLAGS): Use -std=gnu++11. 1198 * asan/Makefile.am (AM_CXXFLAGS): Ditto. 1199 * lsan/Makefile.am (AM_CXXFLAGS): Ditto. 1200 * interception/Makefile.am (AM_CXXFLAGS): Ditto. 1201 * tsan/Makefile.am (AM_CXXFLAGS): Ditto. 1202 * libbacktrace/Makefile.am (AM_CXXFLAGS): Ditto. 1203 * ubsan/Makefile.am (AM_CXXFLAGS): Ditto. 1204 * sanitizer_common/Makefile.in: Regenerate. 1205 * asan/Makefile.in: Ditto. 1206 * lsan/Makefile.in: Ditto. 1207 * interception/Makefile.in: Ditto. 1208 * tsan/Makefile.in: Ditto. 1209 * libbacktrace/Makefile.in: Ditto. 1210 * ubsan/Makefile.in: Ditto. 1211 12122014-11-13 Kostya Serebryany <kcc@google.com> 1213 1214 * All source files: Merge from upstream r221802. 1215 * sanitizer_common/sanitizer_symbolizer_libbacktrace.cc 1216 (LibbacktraceSymbolizer::SymbolizeData): Replace 'address' 1217 with 'start' to follow the new interface. 1218 * asan/Makefile.am (AM_CXXFLAGS): Added -std=c++11. 1219 * interception/Makefile.am (AM_CXXFLAGS): Added -std=c++11. 1220 * libbacktrace/Makefile.am (AM_CXXFLAGS): Added -std=c++11. 1221 * lsan/Makefile.am (AM_CXXFLAGS): Added -std=c++11. 1222 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new 1223 files. 1224 (AM_CXXFLAGS): Added -std=c++11. 1225 * tsan/Makefile.am (AM_CXXFLAGS): Added -std=c++11. 1226 * ubsan/Makefile.am (AM_CXXFLAGS): Added -std=c++11. 1227 * asan/Makefile.in: Regenerate. 1228 * interception/Makefile.in: Regenerate. 1229 * libbacktrace/Makefile.in: Regenerate. 1230 * lsan/Makefile.in: Regenerate. 1231 * sanitizer_common/Makefile.in: Regenerate. 1232 * tsan/Makefile.in: Regenerate. 1233 * ubsan/Makefile.in: Regenerate. 1234 12352014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> 1236 1237 PR target/63610 1238 * configure: Regenerate. 1239 12402014-10-16 Martin Liska <mliska@suse.cz> 1241 1242 * asan/Makefile.am: IPA ICF pass is disabled. 1243 * asan/Makefile.in: Likewise. 1244 12452014-10-14 David S. Miller <davem@davemloft.net> 1246 1247 * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t): 1248 Define at __kernel_time_t, as needed for sparc. 1249 (struct __old_kernel_stat): Don't check if __sparc__ is defined. 1250 * libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h 1251 (__sanitizer): Define struct___old_kernel_stat_sz, 1252 struct_kernel_stat_sz, and struct_kernel_stat64_sz for sparc. 1253 (__sanitizer_ipc_perm): Adjust for sparc targets. 1254 (__sanitizer_shmid_ds): Likewsie. 1255 (__sanitizer_sigaction): Likewsie. 1256 (IOC_SIZE): Likewsie. 1257 12582014-10-14 Jakub Jelinek <jakub@redhat.com> 1259 1260 * ubsan/Makefile.am (DEFS): Add -DPIC. 1261 * ubsan/Makefile.in: Regenerated. 1262 12632014-09-26 Christophe Lyon <christophe.lyon@linaro.org> 1264 1265 * configure.tgt: Enable build on aarch64*-linux. 1266 12672014-09-19 Kostya Serebryany <kcc@google.com> 1268 1269 * All source files: Merge from upstream r218156. 1270 * asan/Makefile.am (asan_files): Added new files. 1271 * asan/Makefile.in: Regenerate. 1272 * ubsan/Makefile.am (ubsan_files): Added new files. 1273 * ubsan/Makefile.in: Regenerate. 1274 * tsan/Makefile.am (tsan_files): Added new files. 1275 * tsan/Makefile.in: Regenerate. 1276 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new 1277 files. 1278 * sanitizer_common/Makefile.in: Regenerate. 1279 * asan/libtool-version: Bump the libasan SONAME. 1280 12812014-09-10 Jakub Jelinek <jakub@redhat.com> 1282 1283 * ubsan/ubsan_handlers.cc, ubsan/ubsan_handlers.h: Cherry pick 1284 upstream r215485, r217389, r217391 and r217400. 1285 12862014-06-23 Paolo Carlini <paolo.carlini@oracle.com> 1287 1288 * sanitizer_common/sanitizer_common_interceptors.inc: 1289 Cherry pick upstream r211008. 1290 12912014-06-11 Richard Biener <rguenther@suse.de> 1292 1293 * asan/asan_linux.cc: Cherry pick upstream r210012. 1294 12952014-05-30 Jakub Jelinek <jakub@redhat.com> 1296 1297 * sanitizer_common/sanitizer_stacktrace.cc: Cherry pick upstream 1298 r209879. 1299 * sanitizer_common/sanitizer_common.h: Likewise. 1300 * asan/asan_mapping.h: Likewise. 1301 * asan/asan_linux.cc: Likewise. 1302 * tsan/tsan_mman.cc: Cherry pick upstream r209744. 1303 * sanitizer_common/sanitizer_allocator.h: Likewise. 1304 13052014-05-23 Marek Polacek <polacek@redhat.com> 1306 1307 * ubsan/ubsan_value.cc (getFloatValue): Handle 96-bit 1308 floating-point types. 1309 13102014-05-22 Kostya Serebryany <kcc@google.com> 1311 1312 * All source files: Merge from upstream r209283. 1313 * asan/Makefile.am (asan_files): Added new files. 1314 * asan/Makefile.in: Regenerate. 1315 * tsan/Makefile.am (tsan_files): Added new files. 1316 * tsan/Makefile.in: Regenerate. 1317 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new 1318 files. 1319 * sanitizer_common/Makefile.in: Regenerate. 1320 13212014-05-14 Yury Gribov <y.gribov@samsung.com> 1322 1323 PR sanitizer/61100 1324 * Makefile.am (nodist_saninclude_HEADERS): Install 1325 public headers. 1326 * Makefile.in: Regenerate. 1327 13282014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 1329 1330 * libbacktrace/Makefile.am (libsanitizer_libbacktrace_la_SOURCES): 1331 Add ../../libbacktrace/sort.c. 1332 * libbacktrace/Makefile.in: Regenerate. 1333 * libbacktrace/backtrace-rename.h (backtrace_qsort): Define. 1334 13352014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com> 1336 1337 * configure.tgt: Unsupported for little endian PowerPC for now. 1338 13392014-02-04 Jakub Jelinek <jakub@redhat.com> 1340 1341 PR sanitizer/60055 1342 * tsan/tsan_flags.cc (__tsan_default_options): Add 1343 SANITIZER_INTERFACE_ATTRIBUTE. Backport from upstream r200747. 1344 * tsan/tsan_rtl.cc (__tsan::OnFinalize): Likewise. 1345 1346 PR sanitizer/60038 1347 * sanitizer_common/sanitizer_linux_libcdep.cc: Include 1348 sanitizer_atomic.h and unistd.h. 1349 (kThreadDescriptorSize): Made static, remove initializer and const, 1350 change type to atomic_uintptr_t. 1351 (ThreadDescriptorSize): Use confstr(_CS_GNU_LIBC_VERSION, ...) to 1352 query glibc version, compute kThreadDescriptorSize depending on 1353 glibc version minor number. 1354 (GetThreadStackAndTls): Use ThreadDescriptorSize() instead of 1355 kThreadDescriptorSize directly. 1356 13572014-01-23 Yury Gribov <y.gribov@samsung.com> 1358 Jakub Jelinek <jakub@redhat.com> 1359 1360 PR sanitizer/57316 1361 * configure.ac: Check for missing syscalls. 1362 * Makefile.am: Likewise. 1363 * configure: Regenerate. 1364 * Makefile.in: Regenerate. 1365 13662014-01-09 Jakub Jelinek <jakub@redhat.com> 1367 1368 * sanitizer_common/sanitizer_symbolizer_libbacktrace.h 1369 (LibbacktraceSymbolizer::Demangle): New declaration. 1370 * sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc 1371 (POSIXSymbolizer::Demangle): Use libbacktrace_symbolizer_'s Demangle 1372 method if possible. 1373 * sanitizer_common/sanitizer_symbolizer_libbacktrace.cc: Include 1374 "demangle.h" if SANITIZE_CP_DEMANGLE is defined. 1375 (struct CplusV3DemangleData): New type. 1376 (CplusV3DemangleCallback, CplusV3Demangle): New functions. 1377 (SymbolizeCodePCInfoCallback, SymbolizeCodeCallback, 1378 SymbolizeDataCallback): Use CplusV3Demangle. 1379 * sanitizer_common/Makefile.am (AM_CXXFLAGS): Add 1380 -DSANITIZE_CP_DEMANGLE and -I $(top_srcdir)/../include. 1381 * libbacktrace/backtrace-rename.h (cplus_demangle_builtin_types, 1382 cplus_demangle_fill_ctor, cplus_demangle_fill_dtor, 1383 cplus_demangle_fill_extended_operator, cplus_demangle_fill_name, 1384 cplus_demangle_init_info, cplus_demangle_mangled_name, 1385 cplus_demangle_operators, cplus_demangle_print, 1386 cplus_demangle_print_callback, cplus_demangle_type, cplus_demangle_v3, 1387 cplus_demangle_v3_callback, is_gnu_v3_mangled_ctor, 1388 is_gnu_v3_mangled_dtor, java_demangle_v3, java_demangle_v3_callback): 1389 Define. 1390 (__asan_internal_memcmp, __asan_internal_strncmp): New prototypes. 1391 (memcmp, strncmp): Redefine. 1392 * libbacktrace/Makefile.am (libsanitizer_libbacktrace_la_SOURCES): Add 1393 ../../libiberty/cp-demangle.c. 1394 * libbacktrace/bridge.cc (__asan_internal_memcmp, 1395 __asan_internal_strncmp): New functions. 1396 * sanitizer_common/Makefile.in: Regenerated. 1397 * libbacktrace/Makefile.in: Regenerated. 1398 * configure: Regenerated. 1399 * configure.ac: Regenerated. 1400 * config.h.in: Regenerated. 1401 1402 * sanitizer_common/Makefile.am (AM_CPPFLAGS): Add 1403 -isystem $(top_srcdir)/include/system. 1404 * sanitizer_common/Makefile.in: Regenerated. 1405 * include/system/linux/aio_abi.h: New header. 1406 * include/system/linux/mroute.h: New header. 1407 * include/system/linux/mroute6.h: New header. 1408 * include/system/linux/perf_event.h: New header. 1409 * include/system/linux/types.h: New header. 1410 1411 PR sanitizer/59136 1412 * sanitizer_common/Makefile.am (AM_CXXFLAGS): If 1413 LIBBACKTRACE_SUPPORTED add -DSANITIZER_LIBBACKTRACE 1414 and -I/-include flags. 1415 * lsan/Makefile.am (liblsan_la_LIBADD): Add 1416 libsanitizer_libbacktrace.la if LIBBACKTRACE_SUPPORTED. 1417 * tsan/Makefile.am (libtsan_la_LIBADD): Likewise. 1418 * ubsan/Makefile.am (libubsan_la_LIBADD): Likewise. 1419 * asan/Makefile.am (libasan_la_LIBADD): Likewise. 1420 * Makefile.am (SUBDIRS): If LIBBACKTRACE_SUPPORTED add 1421 libbacktrace. 1422 * README.gcc: Document that also lsan and ubsan are 1423 maintained in compiler-rt upstream. 1424 * libbacktrace/Makefile.am: New file. 1425 * libbacktrace/backtrace-rename.h: New file. 1426 * libbacktrace/backtrace-supported.h.in: New file. 1427 * libbacktrace/bridge.cc: New file. 1428 * configure.ac: Add tests needed for libbacktrace build 1429 within libsanitizer. 1430 * sanitizer_common/Makefile.in: Regenerated. 1431 * lsan/Makefile.in: Regenerated. 1432 * tsan/Makefile.in: Regenerated. 1433 * ubsan/Makefile.in: Regenerated. 1434 * libbacktrace/Makefile.in: Generated. 1435 * config.h.in: Regenerated. 1436 * configure: Regenerated. 1437 * Makefile.in: Regenerated. 1438 * interception/Makefile.in: Regenerated. 1439 * asan/Makefile.in: Regenerated. 1440 * aclocal.m4: Regenerated. 1441 14422013-12-19 Kostya Serebryany <kcc@google.com> 1443 1444 * sanitizer_common/sanitizer_platform_limits_posix.cc: 1445 workaround for missing definition of EOWNERDEAD, backport 1446 from upstream r196779. 1447 14482013-12-06 H.J. Lu <hongjiu.lu@intel.com> 1449 1450 * sanitizer_common/sanitizer_platform_limits_posix.h 1451 (__sanitizer_shmid_ds): Use u64 on time fields for x32. 1452 (__sanitizer_clock_t): Use long long for x32. 1453 14542013-12-06 H.J. Lu <hongjiu.lu@intel.com> 1455 1456 * sanitizer_common/sanitizer_platform_limits_linux.cc: Include 1457 <sys/stat.h>, instead of <asm/stat.h>, if __x86_64__ is defined. 1458 (struct___old_kernel_stat_sz): Don't check if __x86_64__ is defined. 1459 14602013-12-05 H.J. Lu <hongjiu.lu@intel.com> 1461 1462 * configure.ac (link_sanitizer_common): Add -lm. 1463 * configure: Regenerated. 1464 14652013-12-05 Kostya Serebryany <kcc@google.com> 1466 1467 * All source files: Merge from upstream r196489. 1468 * merge.sh: Add *.S to the list of merged files. 1469 14702013-12-05 Yury Gribov <y.gribov@samsung.com> 1471 1472 PR sanitizer/59368 1473 * Makefile.am (gcc_version): Added gcc_version. 1474 * Makefile.in: Regenerate. 1475 14762013-12-05 Kostya Serebryany <kcc@google.com> 1477 1478 * All source files: Merge from upstream r196090. 1479 * tsan/Makefile.am (tsan_files): Added new files. 1480 * tsan/Makefile.in: Regenerate. 1481 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new fles. 1482 * sanitizer_common/Makefile.in: Regenerate. 1483 * lsan/Makefile.am (lsan_files): Added new files. 1484 * lsan/Makefile.in: Regenerate. 1485 14862013-11-29 Jakub Jelinek <jakub@redhat.com> 1487 Yury Gribov <y.gribov@samsung.com> 1488 1489 PR sanitizer/59063 1490 * libsanitizer.spec.in: Add spec file to hold link flags for 1491 various sanitizer libs. 1492 * configure.ac: Check whether clock_* routines come from librt. 1493 * asan/Makefile.am (libasan_la_LDFLAGS): Libs now come from 1494 configure.ac. 1495 * tsan/Makefile.am (libtsan_la_LDFLAGS): Likewise. 1496 * ubsan/Makefile.am (libubsan_la_LDFLAGS): Likewise. 1497 * lsan/Makefile.am (liblsan_la_LDFLAGS): Likewise. 1498 * asan/Makefile.in: Regenerate. 1499 * interception/Makefile.in: Regenerate. 1500 * lsan/Makefile.in: Regenerate. 1501 * sanitizer_common/Makefile.in: Regenerate. 1502 * tsan/Makefile.in: Regenerate. 1503 * ubsan/Makefile.in: Regenerate. 1504 * Makefile.in: Regenerate. 1505 * configure: Regenerate. 1506 15072013-11-28 Jakub Jelinek <jakub@redhat.com> 1508 Yury Gribov <y.gribov@samsung.com> 1509 1510 PR sanitizer/59106 1511 * ubsan/Makefile.am (AM_CXXFLAGS): Disable -frtti for files that 1512 don't need it. 1513 * ubsan/Makefile.in: Regenerated. 1514 15152013-11-22 Jakub Jelinek <jakub@redhat.com> 1516 1517 PR sanitizer/59061 1518 * configure.tgt: Set LSAN_SUPPORTED=yes for x86_64-linux. 1519 * configure.ac (LSAN_SUPPORTED): New AM_CONDITIONAL. 1520 * configure: Regenerated. 1521 * lsan/Makefile.am (toolexeclib_LTLIBRARIES, lsan_files, 1522 liblsan_la_SOURCES, liblsan_la_LIBADD, liblsan_la_LDFLAGS): Add. 1523 * lsan/Makefile.in: Regenerated. 1524 15252013-11-22 Mike Stump <mikestump@comcast.net> 1526 1527 * sanitizer_common/sanitizer_linux.cc (__sanitizer): Grab one 1528 change from upstream to fix build. 1529 15302013-11-18 Yury Gribov <y.gribov@samsung.com> 1531 1532 PR sanitizer/59106 1533 * asan/Makefile.am (AM_CXXFLAGS): Add -fno-rtti. 1534 * interception/Makefile.am (AM_CXXFLAGS): Likewise. 1535 * lsan/Makefile.am (AM_CXXFLAGS): Likewise. 1536 * sanitizer_common/Makefile.am (AM_CXXFLAGS): Likewise. 1537 * tsan/Makefile.am (AM_CXXFLAGS): Likewise. 1538 * asan/Makefile.in: Regenerate. 1539 * interception/Makefile.in: Regenerate. 1540 * tsan/Makefile.in: Regenerate. 1541 * lsan/Makefile.in: Regenerate. 1542 * sanitizer_common/Makefile.in: Regenerate. 1543 15442013-11-15 Kostya Serebryany <kcc@google.com> 1545 1546 PR sanitizer/58994 1547 Backport from upstream revision 194573 1548 * asan/asan_interceptors.cc (COMMON_INTERCEPTOR_ENTER): Fall 1549 back to the original functions in the common libsanitizer 1550 interceptors and the __cxa_atexit() interceptor on Darwin. 1551 15522013-11-13 Peter Bergner <bergner@vnet.ibm.com> 1553 1554 PR sanitizer/59009 1555 * sanitizer_common/sanitizer_platform_limits_posix.cc: Temporarily 1556 ifdef out more source. 1557 15582013-11-12 Jakub Jelinek <jakub@redhat.com> 1559 1560 * sanitizer_common/sanitizer_platform_limits_linux.cc: Temporarily 1561 ifdef out almost the whole source. 1562 * sanitizer_common/sanitizer_common_syscalls.inc: Likewise. 1563 15642013-11-05 H.J. Lu <hongjiu.lu@intel.com> 1565 1566 PR sanitizer/59018 1567 * sanitizer_common/sanitizer_platform_limits_posix.cc 1568 (struct_user_fpxregs_struct_sz): Initialize to 0 if __x86_64__ is 1569 defined. 1570 15712013-11-05 H.J. Lu <hongjiu.lu@intel.com> 1572 1573 PR sanitizer/59018 1574 * sanitizer_common/sanitizer_platform_limits_linux.cc 1575 (struct_kernel_stat64_sz): Initialize to 0 if __x86_64__ is 1576 defined. 1577 * sanitizer_common/sanitizer_platform_limits_posix.h 1578 (__sanitizer_dirent): Use 64-bit d_ino/d_off if __x86_64__ is 1579 defined. 1580 (__sanitizer___kernel_uid_t): Typedef as unsigned if __x86_64__ 1581 is defined. 1582 (__sanitizer___kernel_gid_t): Likewise. 1583 (__sanitizer___kernel_off_t): Typedef as long long if __x86_64__ 1584 is defined. 1585 15862013-11-05 H.J. Lu <hongjiu.lu@intel.com> 1587 1588 PR sanitizer/59018 1589 * sanitizer_common/sanitizer_linux.cc (internal_clone): Allocate 1590 2 64-bit integers to save and restore fn and arg. Properly load 1591 newtls/child_tidptr into r8/r10. 1592 15932013-11-05 H.J. Lu <hongjiu.lu@intel.com> 1594 1595 PR sanitizer/59018 1596 * sanitizer_common/sanitizer_linux.cc (internal_mmap, 1597 internal_munmap, internal_open, internal_read, internal_write, 1598 internal_stat, internal_lstat, internal_fstat, internal_readlink, 1599 internal_unlink, internal_execve, NanoTime, BlockingMutex::Lock, 1600 BlockingMutex::Unlock, internal_ptrace, internal_getdents, 1601 internal_sigaltstack): Cast pointers to uptr for 64-bit syscalls. 1602 16032013-11-04 Kostya Serebryany <kcc@google.com> 1604 1605 * All source files: Merge from upstream r191666. 1606 * merge.sh: Added lsan. 1607 * configure.ac (AC_CONFIG_FILES): Added lsan. 1608 * Makefile.am (SUBDIRS): Added lsan. 1609 * sanitizer_common/Makefile.am (sanitizer_common_files): Added new fles. 1610 * asan/Makefile.am (asan_files): Added new files. 1611 (libasan_la_LIBADD): Added a dependency on lsan. 1612 * lsan/Makefile.am: New file. 1613 * asan/Makefile.in: Regenerate. 1614 * lsan/Makefile.in: Regenerate. 1615 * Makefile.in: Regenerate. 1616 * configure: Regenerate. 1617 * sanitizer_common/Makefile.in: Regenerate. 1618 16192013-09-20 Alan Modra <amodra@gmail.com> 1620 1621 * configure: Regenerate. 1622 16232013-09-01 Iain Sandoe <iain@codesourcery.com> 1624 1625 * ubsan/Makefile.am (libubsan_la_LIBADD): Revise to omit 1626 libinterception.la for Darwin. 1627 * ubsan/Makefile.in: Regenerate. 1628 16292013-08-30 Jakub Jelinek <jakub@redhat.com> 1630 1631 * Makefile.am (SUBDIRS): Add ubsan. 1632 * configure.ac (AC_CONFIG_FILES): Add ubsan/Makefile. 1633 * merge.sh: Merge ubsan. 1634 * sanitizer_common/sanitizer_report_decorator.h: Partial merge from trunk. 1635 * sanitizer_common/sanitizer_printf.cc: Likewise. 1636 * sanitizer_common/sanitizer_common.h: Likewise. 1637 * ubsan: New directory. Import ubsan runtime from llvm. 1638 16392013-06-03 Christophe Lyon <christophe.lyon@linaro.org> 1640 1641 * sanitizer_common/sanitizer_linux.cc (MemoryMappingLayout::Next): 1642 Cherry pick upstream r182922. 1643 16442013-05-07 Christophe Lyon <christophe.lyon@linaro.org> 1645 1646 * configure.tgt: Add ARM pattern. 1647 16482013-03-22 Jakub Jelinek <jakub@redhat.com> 1649 1650 PR other/43620 1651 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist. 1652 * Makefile.in: Regenerated. 1653 * asan/Makefile.in: Regenerated. 1654 * interception/Makefile.in: Regenerated. 1655 * sanitizer_common/Makefile.in: Regenerated. 1656 * tsan/Makefile.in: Regenerated. 1657 16582013-02-28 Jakub Jelinek <jakub@redhat.com> 1659 1660 * asan/asan_mapping.h (kMidMemEnd): Increase to 0x4fffffffffULL. 1661 * asan/asan_rtl.cc (__asan_init): Increase kMidMemEnd to 1662 0x4fffffffffULL. 1663 16642013-02-22 Jakub Jelinek <jakub@redhat.com> 1665 1666 PR sanitizer/56393 1667 * asan/Makefile.am (nodist_toolexeclib_HEADERS): Set to 1668 libasan_preinit.o. 1669 (libasan_preinit.o): Depend on asan_preinit.o. 1670 * asan/Makefile.in: Regenerated. 1671 * asan/asan_preinit.cc: New file, synced from upstream. 1672 * asan/asan_rtl.cc: Remove preinit stuff, synced from upstream. 1673 16742013-02-21 Jack Howarth <howarth@bromo.med.uc.edu> 1675 1676 * asan/Makefile.am (libasan_la_SOURCES): Remove deprecated 1677 dynamic/asan_interceptors_dynamic.cc. 1678 * asan/Makefile.in: Regenerated. 1679 * merge.sh: Remove merge of deprecated lib/asan/dynamic. 1680 16812013-02-21 Jakub Jelinek <jakub@redhat.com> 1682 1683 * asan/asan_rtl.cc (__asan_preinit): Don't add if PIC macro is 1684 defined. Add used attribute. 1685 16862013-02-21 Kostya Serebryany <kcc@google.com> 1687 1688 * All source files: Merge from upstream r175733. 1689 * sanitizer_common/Makefile.am: Added a new file. 1690 * sanitizer_common/Makefile.in: Regenerated. 1691 16922013-02-14 H.J. Lu <hongjiu.lu@intel.com> 1693 1694 PR bootstrap/56327 1695 * interception/interception.h (OFF_T): Merged from upstream 1696 r175140. 1697 16982013-02-13 Jakub Jelinek <jakub@redhat.com> 1699 1700 * asan/asan_mapping.h (SHADOW_OFFSET): Set to (1ULL << 44) on x86-64. 1701 17022013-02-13 Kostya Serebryany <kcc@google.com> 1703 1704 PR sanitizer/56128 1705 * All source files: Merge from upstream r175049. 1706 * interception/Makefile.am: added include path. 1707 * interception/Makefile.in: Regenerated. 1708 17092013-02-11 Jack Howarth <howarth@bromo.med.uc.edu> 1710 1711 * configure.tgt: Disable build on darwin9 and earlier. 1712 17132013-01-23 Kostya Serebryany <kcc@google.com> 1714 1715 PR sanitizer/55989 1716 * All source files: Merge from upstream r173241. 1717 * merge.sh: Support merging .inc files. 1718 17192013-01-16 Jakub Jelinek <jakub@redhat.com> 1720 1721 * sanitizer_common/Makefile.am (AM_CXXFLAGS): Remove 1722 -Wno-c99-extensions. 1723 * interception/Makefile.am (AM_CXXFLAGS): Likewise. 1724 * asan/Makefile.am (AM_CXXFLAGS): Likewise. 1725 * sanitizer_common/Makefile.in: Regenerated. 1726 * interception/Makefile.in: Regenerated. 1727 * asan/Makefile.in: Regenerated. 1728 17292013-01-10 Wei Mi <wmi@google.com> 1730 1731 PR sanitizer/55488 1732 * tsan/Makefile.am: Add tsan_rtl_amd64.S. 1733 * tsan/Makefile.in: Regenerated. 1734 * tsan/tsan_rtl.h: Enable HACKY_CALL. 1735 17362013-01-10 Kostya Serebryany <kcc@google.com> 1737 1738 * All source files: Merge from upstream r171973. 1739 * sanitizer_common/Makefile.am: Added new files. 1740 * asan/Makefile.am: Likewise. 1741 * tsan/Makefile.am: Likewise. 1742 * sanitizer_common/Makefile.in: Regenerated. 1743 * asan/Makefile.in: Likewise. 1744 * tsan/Makefile.in: Likewise. 1745 17462013-01-07 H.J. Lu <hongjiu.lu@intel.com> 1747 1748 * asan/Makefile.am (libasan_la_LIBADD): Replace 1749 LIBSTDCXX_RAW_CXX_LDLAGS with LIBSTDCXX_RAW_CXX_LDFLAGS. 1750 * tsan/Makefile.am (libtsan_la_LIBADD): Likewise. 1751 * Makefile.in: Regenerated. 1752 * configure: Likewise. 1753 * asan/Makefile.in: Likewise. 1754 * interception/Makefile.in: Likewise. 1755 * sanitizer_common/Makefile.in: Likewise. 1756 * tsan/Makefile.in: Likewise. 1757 17582012-12-12 H.J. Lu <hongjiu.lu@intel.com> 1759 1760 * Makefile.am (AM_MAKEFLAGS): Restored. 1761 * interception/Makefile.am: Likewise. 1762 * sanitizer_common/Makefile.am: Likewise. 1763 * tsan/Makefile.am: Likewise. 1764 * Makefile.in: Regenerated. 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 (MAKEOVERRIDES): Restored. 1773 * asan/Makefile.am: Likewise. 1774 * interception/Makefile.am: Likewise. 1775 * sanitizer_common/Makefile.am: Likewise. 1776 * tsan/Makefile.am: Likewise. 1777 * Makefile.in: Regenerated. 1778 * asan/Makefile.in: Likewise. 1779 * interception/Makefile.in: Likewise. 1780 * sanitizer_common/Makefile.in: Likewise. 1781 * tsan/Makefile.in: Likewise. 1782 17832012-12-12 H.J. Lu <hongjiu.lu@intel.com> 1784 1785 * asan/Makefile.am (libasan_la_LIBADD): Use $(LIBSTDCXX_RAW_CXX_LDLAGS). 1786 * tsan/Makefile.am (libtsan_la_LIBADD): Likewise. 1787 * Makefile.in: Regenerated. 1788 * configure: Likewise. 1789 * asan/Makefile.in: Likewise. 1790 * interception/Makefile.in: Likewise. 1791 * sanitizer_common/Makefile.in: Likewise. 1792 * tsan/Makefile.in: Likewise. 1793 17942012-12-12 H.J. Lu <hongjiu.lu@intel.com> 1795 1796 * Makefile.am (AM_MAKEFLAGS): Removed. 1797 (MAKEOVERRIDES): Likewise. 1798 * asan/Makefile.am: Likewise. 1799 * interception/Makefile.am: Likewise. 1800 * sanitizer_common/Makefile.am: Likewise. 1801 * tsan/Makefile.am: Likewise. 1802 * Makefile.in: Regenerated. 1803 * asan/Makefile.in: Likewise. 1804 * interception/Makefile.in: Likewise. 1805 * sanitizer_common/Makefile.in: Likewise. 1806 * tsan/Makefile.in: Likewise. 1807 18082012-12-11 H.J. Lu <hongjiu.lu@intel.com> 1809 1810 PR sanitizer/55533 1811 * Makefile.am (AM_MAKEFLAGS): Remove CC and CXX. 1812 * configure.ac (GCC_LIBSTDCXX_RAW_CXX_FLAGS): New. 1813 * asan/Makefile.am (AM_CXXFLAGS): Add $(LIBSTDCXX_RAW_CXX_CXXFLAGS). 1814 (AM_MAKEFLAGS): Remove CC and CXX. 1815 * interception/Makefile.am: Likewise. 1816 * sanitizer_common/Makefile.am: Likewise. 1817 * tsan/Makefile.am: Likewise. 1818 * Makefile.in: Regenerated. 1819 * aclocal.m4: Likewise. 1820 * configure: Likewise. 1821 * asan/Makefile.in: Likewise. 1822 * interception/Makefile.in: Likewise. 1823 * sanitizer_common/Makefile.in: Likewise. 1824 * tsan/Makefile.in: Likewise. 1825 18262012-12-06 Peter Bergner <bergner@vnet.ibm.com> 1827 1828 * configure.tgt: Enable build on powerpc*-linux. 1829 18302012-12-06 Jack Howarth <howarth@bromo.med.uc.edu> 1831 1832 PR 55599/sanitizer 1833 * configure.ac: Set enable_static=no on darwin. 1834 * configure: Regenerated. 1835 18362012-12-06 Kostya Serebryany <kcc@google.com> 1837 1838 * All files: Merge from upstream r169392. 1839 18402012-12-05 Kostya Serebryany <kcc@google.com> 1841 1842 * All files: Merge from upstream r169371. 1843 18442012-12-04 Kostya Serebryany <kcc@google.com> 1845 Jack Howarth <howarth@bromo.med.uc.edu> 1846 1847 PR 55521/sanitizer 1848 * configure.ac: Define USING_MAC_INTERPOSE when on darwin. 1849 * Makefile.am: Don't build interception subdir when 1850 USING_MAC_INTERPOSE defined. 1851 * asan/Makefile.am: Pass -DMAC_INTERPOSE_FUNCTIONS and 1852 -DMISSING_BLOCKS_SUPPORT when USING_MAC_INTERPOSE defined. 1853 Compile asan_interceptors_dynamic.cc but not libinterception 1854 when USING_MAC_INTERPOSE defined. 1855 * interception/Makefile.am: Remove usage of USING_MACH_OVERRIDE. 1856 * configure: Regenerated. 1857 * Makefile.in: Likewise. 1858 * asan/Makefile.in: Likewise. 1859 * interception/Makefile.in: Likewise. 1860 * asan/asan_intercepted_functions.h: Use MISSING_BLOCKS_SUPPORT. 1861 * asan/asan_mac.cc: Likewise. 1862 * asan/dynamic/asan_interceptors_dynamic.cc: Migrate from llvm 1863 and use MISSING_BLOCKS_SUPPORT. 1864 * merge.sh: Merge lib/asan/dynamic into asan/dynamic. 1865 * interception/mach_override/LICENSE.txt: Remove unused file. 1866 * interception/mach_override/mach_override.c: Likewise. 1867 * interception/mach_override/mach_override.h: Likewise. 1868 * interception/mach_override: Remove unused directory. 1869 18702012-11-28 H.J. Lu <hongjiu.lu@intel.com> 1871 1872 * Makefile.am (AM_MAKEFLAGS): Restore CC and CXX. 1873 * configure.ac (ACX_NONCANONICAL_TARGET): Removed. 1874 * asan/Makefile.am (AM_CXXFLAGS): Remove -I for libstdc++-v3 header 1875 files. 1876 (AM_MAKEFLAGS): Restore CC and CXX. 1877 * interception/Makefile.am: Likewise. 1878 * sanitizer_common/Makefile.am: Likewise. 1879 * tsan/Makefile.am: Likewise. 1880 * Makefile.in: Regenerated. 1881 * aclocal.m4: Likewise. 1882 * configure: Likewise. 1883 * asan/Makefile.in: Likewise. 1884 * interception/Makefile.in: Likewise. 1885 * sanitizer_common/Makefile.in: Likewise. 1886 * tsan/Makefile.in: Likewise. 1887 18882012-11-28 H.J. Lu <hongjiu.lu@intel.com> 1889 1890 * Makefile.am (AM_MAKEFLAGS): Remove CC and CXX. 1891 * configure.ac (ACX_NONCANONICAL_TARGET): New. 1892 * asan/Makefile.am (AM_CXXFLAGS): Add -I for libstdc++-v3 header 1893 files. 1894 (AM_MAKEFLAGS): Remove CC and CXX. 1895 * interception/Makefile.am: Likewise. 1896 * sanitizer_common/Makefile.am: Likewise. 1897 * tsan/Makefile.am: Likewise. 1898 * Makefile.in: Regenerated. 1899 * aclocal.m4: Likewise. 1900 * configure: Likewise. 1901 * asan/Makefile.in: Likewise. 1902 * interception/Makefile.in: Likewise. 1903 * sanitizer_common/Makefile.in: Likewise. 1904 * tsan/Makefile.in: Likewise. 1905 19062012-11-27 Kostya Serebryany <kcc@google.com> 1907 1908 * All files: Merge from upstream r168699. 1909 19102012-11-24 Kostya Serebryany <kcc@google.com> 1911 Jack Howarth <howarth@bromo.med.uc.edu> 1912 1913 * interception/mach_override/mach_override.c: Migrate from llvm. 1914 * interception/mach_override/mach_override.h: Likewise. 1915 * interception/mach_override/LICENSE.txt: Likewise. 1916 * configure.tgt: Add darwin to supported targets. 1917 * configure.ac: Define USING_MACH_OVERRIDE when on darwin. 1918 * interception/Makefile.am: Compile mach_override.c when 1919 USING_MACH_OVERRIDE defined. 1920 * configure: Regenerated. 1921 * interception/Makefile.in: Likewise. 1922 19232012-11-23 H.J. Lu <hongjiu.lu@intel.com> 1924 1925 PR sanitizer/55450 1926 * tsan/Makefile.am (gcc_version): New. 1927 * tsan/Makefile.in: Regenerated. 1928 19292012-11-23 Kostya Serebryany <kcc@google.com> 1930 1931 * merge.sh: Support tsan, support added/removed files. 1932 * tsan/Makefile.am: Remove tsan_printf.cc. 1933 * tsan/Makefile.in: Regenerated. 1934 * other files: Merge from upstream r168514. 1935 19362012-11-23 Kostya Serebryany <kcc@google.com> 1937 1938 * merge.sh: New file. 1939 19402012-11-23 Jakub Jelinek <jakub@redhat.com> 1941 1942 * tsan/Makefile.am (AM_CXXFLAGS): Remove -Wno-variadic-macros. 1943 * Makefile.am (SUBDIRS): Guard tsan addition with TSAN_SUPPORTED 1944 automake conditional instead of !MULTISUBDIR32. 1945 * configure.tgt: Set TSAN_SUPPORTED=yes for x86_64/i686-linux 1946 for 64-bit multilib. 1947 * configure.ac: Check for void * size, source in configure.tgt, 1948 define TSAN_SUPPORTED conditional instead of MULTILIBDIR32. 1949 * configure: Regenerated. 1950 * Makefile.in: Regenerated. 1951 * tsan/Makefile.in: Regenerated. 1952 19532012-11-22 Wei Mi <wmi@google.com> 1954 1955 * tsan: New directory. Import tsan runtime from llvm. 1956 * configure.ac: Add 64 bits tsan build. 1957 * Makefile.am: Likewise. 1958 * configure: Regenerated. 1959 * Makefile.in: Likewise. 1960 19612012-11-21 Kostya Serebryany <kcc@google.com> 1962 1963 * README.gcc: Extend the README.gcc with mode details. 1964 19652012-11-20 Konstantin Serebryany <konstantin.s.serebryany@gmail.com> 1966 1967 * sanitizer_common/sanitizer_linux.cc 1968 (SANITIZER_LINUX_USES_64BIT_SYSCALLS): Define. 1969 (internal_mmap): Use it. 1970 (internal_filesize): Likewise. 1971 19722012-11-16 Tom Tromey <tromey@redhat.com> 1973 1974 * configure.ac: Invoke AM_MAINTAINER_MODE. 1975 * aclocal.m4, configure, Makefile.in, asan/Makefile.in, 1976 interception/Makefile.in, sanitizer_common/Makefile.in: Rebuild. 1977 19782012-11-16 H.J. Lu <hongjiu.lu@intel.com> 1979 1980 PR other/55333 1981 * include/sanitizer/common_interface_defs.h (uhwptr): New type 1982 for hardware pointer. 1983 * sanitizer_common/sanitizer_stacktrace.cc (StackTrace::FastUnwindStack): 1984 Replace uptr with uhwptr for stack unwind. 1985 19862012-11-16 Dodji Seketeli <dodji@redhat.com> 1987 1988 * configure.tgt: Enable build on sparc linux. 1989 19902012-11-15 H.J. Lu <hongjiu.lu@intel.com> 1991 1992 * configure.ac: Properly set MULTISUBDIR. 1993 * asan/Makefile.am (gcc_version): New. 1994 * interception/Makefile.am (gcc_version): Likewise. 1995 * sanitizer_common/Makefile.am (gcc_version): Likewise. 1996 * configure: Regenerated. 1997 * asan/Makefile.in: Likewise. 1998 * interception/Makefile.in: Likewise. 1999 * sanitizer_common/Makefile.in: Likewise. 2000 20012012-11-14 H.J. Lu <hongjiu.lu@intel.com> 2002 2003 PR other/55291 2004 * configure.ac (--enable-version-specific-runtime-libs): New option. 2005 (AC_CANONICAL_SYSTEM): New. 2006 (AM_ENABLE_MULTILIB): Moved right after AM_INIT_AUTOMAKE. 2007 (toolexecdir): Support multilib. 2008 (toolexeclibdir): Likewise. 2009 (multilib_arg): New. 2010 * Makefile.in: Regenerated. 2011 * aclocal.m4: Likewise. 2012 * configure: Likewise. 2013 * asan/Makefile.in: Likewise. 2014 * interception/Makefile.in: Likewise. 2015 * sanitizer_common/Makefile.in: Likewise. 2016 20172012-11-14 H.J. Lu <hongjiu.lu@intel.com> 2018 2019 PR other/55292 2020 Backport from upstream revision 167883 2021 * sanitizer_common/sanitizer_linux.cc (internal_mmap): Check 2022 __x86_64__ instead of __WORDSIZE. 2023 (internal_filesize): Likwise. 2024 20252012-11-14 H.J. Lu <hongjiu.lu@intel.com> 2026 2027 * configure.ac (AC_CONFIG_AUX_DIR): Removed. 2028 * Makefile.in: Regenerated. 2029 * configure: Likewise. 2030 20312012-11-13 H.J. Lu <hongjiu.lu@intel.com> 2032 2033 PR other/55304 2034 * acinclude.m4: New file. 2035 * Makefile.am (ACLOCAL_AMFLAGS): New. 2036 * configure.ac (AC_PREREQ): Set to 2.64. 2037 (AC_CONFIG_AUX_DIR): Set to "..". 2038 * Makefile.in: Regenerated. 2039 * aclocal.m4: Likewise. 2040 * configure: Likewise. 2041 * asan/Makefile.in: Likewise. 2042 * interception/Makefile.in: Likewise. 2043 * sanitizer_common/Makefile.in: Likewise. 2044 2045 * config.guess: Removed. 2046 * config.sub: Likewise. 2047 * depcomp: Likewise. 2048 * install-sh: Likewise. 2049 * ltmain.sh: Likewise. 2050 * missing: Likewise. 2051 20522012-11-13 Richard Henderson <rth@redhat.com> 2053 2054 * configure.tgt: New file. 2055 20562012-11-12 David S. Miller <davem@davemloft.net> 2057 2058 * asan/asan_linux.cc (GetPcSpBp): Add sparc support. 2059 20602012-10-29 Wei Mi <wmi@google.com> 2061 2062 Initial checkin: migrate asan runtime from llvm. 2063