llvm-project/libcxxabi
Simon Tatham a771a91dcb [libcxxabi] Fix alignment of pointers returned by fallback_malloc
This aligns the ``heap[]`` array in ``fallback_malloc.cpp`` to ensure
that it can be safely cast to ``heap_node*``, and also adjusts the
allocation algorithm to ensure that every allocated block has the
alignment requested by ``__attribute__((aligned))``, by putting the
block's ``heap_node`` header 4 bytes before an aligned address.

Patch originally by Eric Fiselier: this is an updated version of
D12669, which was never landed.

Reviewed By: ldionne, #libc_abi

Differential Revision: https://reviews.llvm.org/D129842
2022-08-19 15:07:57 +01:00
..
cmake [runtimes] Introduce object libraries 2022-05-16 08:41:16 -04:00
fuzz
include [libcxxabi] Check __SEH__, when checking if ARM EHABI is implied 2022-06-06 23:19:22 +03:00
lib [libc++/abi] Revert "[libc++] Move the weak symbols list to libc++abi" 2020-10-05 11:42:13 -04:00
src [libcxxabi] Fix alignment of pointers returned by fallback_malloc 2022-08-19 15:07:57 +01:00
test [libcxxabi] Fix alignment of pointers returned by fallback_malloc 2022-08-19 15:07:57 +01:00
www Remove references to old mailing lists that have moved to discourse. Replace with links to discourse. 2022-07-22 09:59:03 -07:00
.clang-format [libcxx] Remove extraneous '---' lines in .clang-format files 2022-06-15 01:34:37 -07:00
.gitignore
CMakeLists.txt Revert "[cmake] Use `CMAKE_INSTALL_LIBDIR` too" 2022-08-18 22:46:32 -04:00
CREDITS.TXT
LICENSE.TXT