This repository contains a Newlib port for bare-metal AArch64 with custom system ABI (aarch64-elf).
It is based on the checkra1n project's newlib but for my own purposes.
On macOS with Xcode installed, or on Linux with clang/llvm-ar/llvm-ranlib and ld.lld installed:
makeIf you need to adjust any of the paths or options:
EMBEDDED_CC="path/to/clang" \
EMBEDDED_CFLAGS="<whatever>" \
EMBEDDED_LDFLAGS="-fuse-ld=path/to/ld.lld" \
EMBEDDED_AR="path/to/llvm-ar" \
EMBEDDED_RANLIB="path/to/llvm-ranlib" \
makeIf there are further defaults you need to override, see EMBEDDED_CC_FLAGS and EMBEDDED_LD_FLAGS in the Makefile.