llvm-capstone/compiler-rt
AdityaK 46cb8d9a32
[TSAN] add support for riscv64 (#68735)
Implements for sv39 and sv48 VMA layout.

Userspace only has access to the bottom half of vma range. The top half
is used by kernel. There is no dedicated vsyscall or heap segment.
PIE program is allocated to start at TASK_SIZE/3*2. Maximum ASLR is
ARCH_MMAP_RND_BITS_MAX+PAGE_SHIFT=24+12=36 Loader, vdso and other
libraries are allocated below stack from the top.

Also change RestoreAddr to use 4 bits to accommodate MappingRiscv64_48

Reviewed by: MaskRay, dvyukov, asb, StephenFan, luismarques, jrtc27,
hiraditya, vitalybuka

Differential Revision: https://reviews.llvm.org/D145214

D145214 was reverted because one file was missing in the latest commit.
Luckily the file was there in the previous commit, probably the author
missed uploading that file with latest commit.

Co-authored-by: Alex Fan <alex.fan.q@gmail.com>
2023-10-12 16:03:07 -07:00
..
cmake [TSAN] add support for riscv64 (#68735) 2023-10-12 16:03:07 -07:00
docs Fix typos in documentation 2023-05-28 13:13:12 -07:00
include [NFC][compiler-rt] Fix typo in FuzzedDataProvider.h doc 2023-10-06 10:02:45 +02:00
lib [TSAN] add support for riscv64 (#68735) 2023-10-12 16:03:07 -07:00
test [TSAN] add support for riscv64 (#68735) 2023-10-12 16:03:07 -07:00
tools
unittests [NFC][Py Reformat] Reformat python files in the rest of the dirs 2023-05-25 11:17:05 +02:00
utils
www [compiler-rt] Point UndefinedBehaviorSanitizer link to its own page. 2023-03-15 17:05:57 +01:00
.clang-tidy
.gitignore
CMakeLists.txt Revert "Diagnose problematic uses of constructor/destructor attribute (#67673)" 2023-10-11 09:02:24 -04:00
CODE_OWNERS.TXT [docs] Update compiler-rt/CODE_OWNERS.TXT 2023-02-24 15:07:09 -08:00
CREDITS.TXT
LICENSE.TXT
README.txt

Compiler-RT
================================

This directory and its subdirectories contain source code for the compiler
support routines.

Compiler-RT is open source software. You may freely distribute it under the
terms of the license agreement found in LICENSE.txt.

================================