llvm-project/libunwind
Jessica Clarke b6a93967d9 [NFC][libunwind] Fix uintptr_t vs size_t confusion for lengths
These two are not conceptually the same; the former is a pointer shoved
in an integer, the latter is an offset or length. On the architectures
supported by libunwind, these two have the same underlying type, namely
unsigned int on ILP32, unsigned long on LP64 and unsigned long long on
LLP64. However, on CHERI, and thus Arm's Morello, they are not the same,
as pointers are hardware capabilities that carry additional metadata
including bounds and permissions, which is preserved in uintptr_t but
not in size_t. Thus, fix all length variables to be of type size_t not
uintptr_t, as we have done downstream for a while in CHERI LLVM but did
not get round to upstreaming.

Note that dyld_unwind_sections is currently defined in Apple's headers
as genuinely using uintptr_t to represent lengths. This is a bad API and
should be fixed, which would be totally API and ABI compatible due to
size_t and uintptr_t being the same type on all supported Apple systems,
but our definition is left matching theirs until such a time as they fix
their bogus types.

This is intended to be an NFC change on all architectures supported by
LLVM upstream, only being a functional change for CHERI downstream in
CHERI LLVM.
2022-01-19 00:05:30 +00:00
..
cmake [libc++] Disable coverage with sanitize-coverage=0 2022-01-07 17:53:21 -08:00
docs Update Bug report URL to Github Issues 2022-01-06 17:33:25 +08:00
include [libunwind][cmake] Create `LIBUNWIND_INSTALL_INCLUDE_DIR` CACHE PATH 2022-01-10 21:31:52 +00:00
src [NFC][libunwind] Fix uintptr_t vs size_t confusion for lengths 2022-01-19 00:05:30 +00:00
test [libunwind] Fix unwind_leaffunction test 2021-12-03 11:21:20 -08:00
.clang-format
CMakeLists.txt [libcxx][libcxxabi][libunwind][cmake] Use `GNUInstallDirs` to support custom installation dirs 2022-01-18 06:44:57 +00:00
LICENSE.TXT Fix typos throughout the license files that somehow I and my reviewers 2019-01-21 09:52:34 +00:00