aboutsummaryrefslogtreecommitdiff
path: root/libsanitizer
AgeCommit message (Collapse)AuthorFilesLines
2022-12-20Daily bump.GCC Administrator1-0/+8
2022-12-19hwasan: Add libhwasan_preinit.oJakub Jelinek2-18/+49
I've noticed an inconsistency with the other sanitizers. For -fsanitize={address,thread,leak} we link into binaries lib*san_preinit.o such that the -lasan, -ltsan or -llsan libraries are initialized as early as possible through .preinit_array. The hwasan library has the same thing, but we strangely compiled it into the library (where it apparently didn't do anything, .preinit_array doesn't seem to be created for shared libraries), rather than installing it like in the other 3 cases. The following patch handles it for hwasan similarly to asan, tsan and lsan. I don't have any hw with hwasan support, so I've just checked it builds and installs as expected and that gcc -fsanitize=hwaddress -o a a.c -mlam=u57 on trivial main results in .preinit_array section in the binary. 2022-12-19 Jakub Jelinek <jakub@redhat.com> * config/gnu-user.h (LIBHWASAN_EARLY_SPEC): Add libhwasan_preinit.o to link spec if not -shared. * hwasan/Makefile.am (nodist_toolexeclib_HEADERS): Set to libhwasan_preinit.o. (hwasan_files): Remove hwasan_preinit.cpp. (libhwasan_preinit.o): Copy from hwasan_preinit.o. * hwasan/Makefile.in: Regenerated.
2022-12-14Daily bump.GCC Administrator1-0/+5
2022-12-13libsanitizer: Fix up libbacktrace build after r13-4547 [PR108072]Jakub Jelinek1-0/+1
The r13-4547 commit added new non-static function to libbacktrace: backtrace_uncompress_zstd but for the libsanitizer use we need to rename it, so that it is in __asan_* namespace and doesn't clash with other copies of libbacktrace. 2022-12-13 Jakub Jelinek <jakub@redhat.com> libsanitizer/ PR sanitizer/108072 * libbacktrace/backtrace-rename.h (backtrace_uncompress_zstd): Define.
2022-12-10Daily bump.GCC Administrator1-0/+4
2022-12-09Enable hwasan for x86-64.liuhongt1-0/+1
libsanitizer * configure.tgt: Enable hwasan for x86-64.
2022-12-05Daily bump.GCC Administrator1-0/+4
2022-12-04libsanitizer, Darwin: Restrict build to Darwin 16 or newer.Iain Sandoe1-1/+1
The latest import has added dependencies on system resources that are not present until Darwin 16. It might be possible to work around these for earlier systems, but in the short-term we have to disable the build so that bootstrap completes. Signed-off-by: Iain Sandoe <iain@sandoe.co.uk> libsanitizer/ChangeLog: * configure.tgt: Restrict build to Darwin 16 or newer.
2022-11-21changelog: Fix extra space after tab.Martin Liska1-1/+1
2022-11-16Daily bump.GCC Administrator1-0/+8
2022-11-15libsanitizer: update LOCAL_PATCHESMartin Liska1-2/+1
libsanitizer/ChangeLog: * LOCAL_PATCHES: Update local patches.
2022-11-15libsanitizer: Apply local patchesMartin Liska14-81/+94
2022-11-15libsanitizer: merge from upstream ae59131d3ef311fb4b1e50627c6457be00e60dc9Martin Liska45-251/+523
2022-11-15libsanitizer: use git clone --depth 1Martin Liska1-1/+1
Using depth == 1 it makes the cloning much faster. libsanitizer/ChangeLog: * merge.sh: Use git clone --depth 1.
2022-10-20Daily bump.GCC Administrator1-0/+4
2022-10-19libsanitizer: regenerate configureMartin Liska1-2/+2
libsanitizer/ChangeLog: * configure: Regenerate.
2022-10-19Daily bump.GCC Administrator1-0/+6
2022-10-18libsanitizer: Avoid implicit function declaration in configure testFlorian Weimer2-3/+5
libsanitizer/ * configure.ac (sanitizer_supported): Include <unistd.h> for syscall prototype. * configure: Regenerate.
2022-10-13Daily bump.GCC Administrator1-0/+4
2022-10-12regenerate configure filesMartin Liska1-2/+2
Needed after a recent change. gcc/ChangeLog: * configure: Regenerate. libatomic/ChangeLog: * configure: Regenerate. libbacktrace/ChangeLog: * configure: Regenerate. libcc1/ChangeLog: * configure: Regenerate. libffi/ChangeLog: * configure: Regenerate. libgfortran/ChangeLog: * configure: Regenerate. libgomp/ChangeLog: * configure: Regenerate. libitm/ChangeLog: * configure: Regenerate. libobjc/ChangeLog: * configure: Regenerate. liboffloadmic/ChangeLog: * configure: Regenerate. * plugin/configure: Regenerate. libphobos/ChangeLog: * configure: Regenerate. libquadmath/ChangeLog: * configure: Regenerate. libsanitizer/ChangeLog: * configure: Regenerate. libssp/ChangeLog: * configure: Regenerate. libstdc++-v3/ChangeLog: * configure: Regenerate. libvtv/ChangeLog: * configure: Regenerate. lto-plugin/ChangeLog: * configure: Regenerate. zlib/ChangeLog: * configure: Regenerate.
2022-10-12Daily bump.GCC Administrator1-0/+5
2022-10-11Generic configury support for shared libs on VxWorksOlivier Hainque1-2/+46
This change adds the configury bits to activate the build of shared libs on VxWorks ports configured with --enable-shared, for libraries variants where this is generally supported (rtp, code model !large - currently not compatible with -fPIC). Set lt_cv_deplibs_check_method in libtool.m4, so the build of libraries know how to establish dependencies. This is useful in configurations such as aarch64 where proper support of LSE relies on accurate dependency information between libstdc++ and libgcc_s to begin with. Regenerate configure scripts to reflect libtool.m4 change. 2022-10-09 Olivier Hainque <hainque@adacore.com> * libtool.m4 (*vxworks*): When enable_shared, set dynamic_linker and friends for rtp !large. Assume the linker has the required abilities and set lt_cv_deplibs_check_method. gcc/ * config.gcc (*vxworks*): Add t-slibgcc fragment if enable_shared. libgcc/ * config.host (*vxworks*): When enable_shared, add libgcc and crtstuff "shared" fragments for rtp except large code model. (aarch64*-wrs-vxworks7*): Remove t-slibgcc-libgcc from the list of fragments. 2022-10-09 Olivier Hainque <hainque@adacore.com> gcc/ * configure: Regenerate. libatomic/ * configure: Regenerate. libbacktrace/ * configure: Regenerate. libcc1/ * configure: Regenerate. libffi/ * configure: Regenerate. libgfortran/ * configure: Regenerate. libgomp/ * configure: Regenerate. libitm/ * configure: Regenerate. libobjc/ * configure: Regenerate. liboffloadmic/ * configure: Regenerate. liboffloadmic/ * plugin/configure: Regenerate. libphobos/ * configure: Regenerate. libquadmath/ * configure: Regenerate. libsanitizer/ * configure: Regenerate. libssp/ * configure: Regenerate. libstdc++-v3/ * configure: Regenerate. libvtv/ * configure: Regenerate. lto-plugin/ * configure: Regenerate. zlib/ * configure: Regenerate.
2022-10-04Daily bump.GCC Administrator1-0/+6
2022-10-03libsanitizer: Fix Solaris 11.3 compilation of sanitizer_procmaps_solaris.cpp ↵Rainer Orth1-0/+2
[PR105531] The latest libsanitizer import broke Solaris 11.3 bootstrap again, due to an oversight of mine. A fix has been committed upstream https://reviews.llvm.org/D133556 This patch cherry-picks it. Tested on Solaris 11.3 and 11.4, SPARC and x86. 2022-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> libsanitizer: PR sanitizer/105531 * sanitizer_common/sanitizer_procmaps_solaris.cpp: Cherry-pick llvm-project revision 1cd4d63fb9ab0f04c7151911dde0d58b673823de.
2022-09-05Daily bump.GCC Administrator1-0/+4
2022-09-04[libsanitizer] Update LOCAL_PATCHES.Iain Sandoe1-0/+1
Signed-off-by: Iain Sandoe <iain@sandoe.co.uk> libsanitizer/ChangeLog: * LOCAL_PATCHES: Update.
2022-09-04[libsanitizer, Darwin] Fix bootstrap after recent merge.Iain Sandoe1-52/+10
The latest merge to libsanitizer includes changes to handle macOS 13+. However, these changes are incompatible with GCC and so we need to find an alternate solution. To restore bootstrap back this change out until the alternate can be found.
2022-09-01Daily bump.GCC Administrator1-0/+4
2022-08-31libsanitizer: enable libubsan and libasan for loongarch64-*-linux*Xi Ruoyao1-0/+2
The LoongArch support for libubsan and libasan has been added in: - https://reviews.llvm.org/D129371 - https://reviews.llvm.org/D129418 and we've merged them in r13-2269. It's time to enable them. No unexpected failures in GCC asan.exp and ubsan.exp tests. libsanitizer/ChangeLog: * configure.tgt: Allow loongarch64-*-linux*.
2022-08-31Daily bump.GCC Administrator1-0/+9
2022-08-30libsanitizer: update LOCAL_PATCHESMartin Liska1-1/+1
libsanitizer/ChangeLog: * LOCAL_PATCHES: Update.
2022-08-30libsanitizer: Apply local patchesMartin Liska13-29/+84
2022-08-30libsanitizer: update build systemMartin Liska2-5/+1
libsanitizer/ChangeLog: * sanitizer_common/Makefile.am: Remove sanitizer_openbsd. * sanitizer_common/Makefile.in: Regenerate.
2022-08-30libsanitizer: merge from master (84a71d5259c2682403cdbd8710592410a2f128ab)Martin Liska121-883/+2132
2022-08-01libsanitizer: Cherry-pick 2bfb0fcb51510f22723c8cdfefe from upstreamDimitrije Milošević1-3/+4
2bfb0fcb51510f22723c8cdfefe [Sanitizer][MIPS] Fix stat struct size for the O32 ABI. Signed-off-by: Dimitrije Milosevic <dimitrije.milosevic@syrmia.com>.
2022-07-23Daily bump.GCC Administrator1-0/+7
2022-07-22libsanitizer: Fix Solaris 11.3 compilation [PR105531]Rainer Orth2-9/+91
The libsanitizer build has been broken on Solaris 11.3 by the latest import. An upstream patch to fix this has now been committed: [sanitizer_common] Support Solaris < 11.4 in GetStaticTlsBoundary https://reviews.llvm.org/D120059 I'd like to cherry-pick it into libsanitizer, too. Bootstrapped without regressions on sparc-sun-solaris2.11, i386-pc-solaris2.11 (both Solaris 11.3 and 11.4), and x86_64-pc-linux-gnu. 2022-07-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> libsanitizer: PR sanitizer/105531 * sanitizer_common/sanitizer_linux_libcdep.cpp, sanitizer_common/sanitizer_solaris.h:: Cherry-pick llvm-project revision 3776db9a4fd2080d23d6a5f52e405eea44558761.
2022-07-11libsanitizer: cherry-pick 9cf13067cb5088626ba7 from upstreamMartin Liska1-4/+6
9cf13067cb5088626ba7ee1ec4c42ec59c7995a0 [sanitizer] Remove #include <linux/fs.h> to resolve fsconfig_command/mount_attr conflict with glibc 2.36
2022-07-07libsanitizer: Cherry-pick 5d8077565e41 from upstreamDimitrije Milosevic2-8/+11
5d8077565e41: [MIPS][AddressSanitizer] Resolve build issues for the n32 ABI
2022-06-29libsanitizer: cherry-pick 791e0d1bc85dMartin Liska1-0/+2
791e0d1bc85d: [compiler-rt] Add NO_EXEC_STACK_DIRECTIVE on s390x
2022-05-06Daily bump.GCC Administrator1-0/+4
2022-05-05libsanitizer: cherry-pick commit b226894d475b from upstreamH.J. Lu1-0/+4
cherry-pick: b226894d475b [sanitizer] [sanitizer] Correct GetTls for x32
2022-05-05libsanitizer: update LOCAL_PATCHES.Martin Liska1-2/+1
libsanitizer/ChangeLog: * LOCAL_PATCHES: Update.
2022-05-05libsanitizer: Apply local patchesMartin Liska14-30/+85
2022-05-05libsanitizer: merge from master (75f9e83ace52773af65dcebca543005ec8a2705d).Martin Liska18-93/+45
2022-05-05Daily bump.GCC Administrator1-0/+15
2022-05-04libsanitizer: cherry-pick commit f52e365092aa from upstreamH.J. Lu1-2/+2
cherry-pick: f52e365092aa [sanitizer] Use newfstatat for x32
2022-05-04libsanitizer: Update Makefile.am files.Martin Liska12-25/+20
libsanitizer/ChangeLog: * tsan/Makefile.am: Update Makefile.am files. * hwasan/Makefile.am: Likewise. * sanitizer_common/Makefile.am: Likewise. * Makefile.in: Re-generate. * asan/Makefile.in: Likewise. * hwasan/Makefile.in: Likewise. * interception/Makefile.in: Likewise. * libbacktrace/Makefile.in: Likewise. * lsan/Makefile.in: Likewise. * sanitizer_common/Makefile.in: Likewise. * tsan/Makefile.in: Likewise. * ubsan/Makefile.in: Likewise.
2022-05-04libsanitizer: Apply local patchesH.J. Lu14-30/+85
2022-05-04libsanitizer: merge from upstream (0a1bcab9f3bf75c4c5d3e53bafb3eeb80320af46).Martin Liska182-5387/+6955