Skip to content

Commit 1133650

Browse files
authored
Update llvmlibc.md documentation to include AArch64 support and heap. (#521)
Support for AArch64 has been available for AArch64 in llvm-libc for some time, but the docs still claim this isn't supported. Also update the instructions for defining the bounds of the heap for when malloc is used.
1 parent ea0e845 commit 1133650

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

docs/llvmlibc.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,13 @@ following command line options, in addition to `--target`, `-march` or
4747
the symbol `__stack` in addition to whatever other memory layout you
4848
want.
4949

50+
* `-Wl,__llvm_libc_heap_limit=0x`_nnnnnn_ if you are using the heap.
51+
The heap start defined by the value of the symbol `_end` which will
52+
be defined by the linker if no linker script is used. Alternatively
53+
use a linker script that defines the symbols `_end` and
54+
`__llvm_libc_heap_limit` in addition to whatever other memory layout
55+
you want.
56+
5057
For example:
5158

5259
```
@@ -55,9 +62,6 @@ clang --config=llvmlibc.cfg --target=arm-none-eabi -march=armv7m -o hello hello.
5562

5663
## Limitations of LLVM libc in LLVM Embedded Toolchain for Arm
5764

58-
At present, this toolchain only builds LLVM libc for AArch32, not for
59-
AArch64.
60-
6165
At present, this toolchain does not build any C++ libraries to go with
6266
LLVM libc.
6367

0 commit comments

Comments
 (0)