[libc-commits] [libc] [libc] Lazily initialize freelist malloc using symbols (PR #99254)
Daniel Thornburgh via libc-commits
libc-commits at lists.llvm.org
Fri Jul 19 15:09:39 PDT 2024
================
@@ -0,0 +1,2 @@
+.weak __libc_heap_limit
+.set __libc_heap_limit, LIBC_FREELIST_MALLOC_SIZE
----------------
mysterymath wrote:
I dodged this entirely by moving to `__libc_heap_limit` to be an address rather than a size; this removes `LIBC_FREELIST_MALLOC_SIZE` entirely. `__libc_heap_limit` would then be an intentionally undefined reference in the libc.
https://github.com/llvm/llvm-project/pull/99254
More information about the libc-commits
mailing list