Skip to content

haiyuidesu/newlib

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Newlib

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.

Building

On macOS with Xcode installed, or on Linux with clang/llvm-ar/llvm-ranlib and ld.lld installed:

make

If 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" \
make

If there are further defaults you need to override, see EMBEDDED_CC_FLAGS and EMBEDDED_LD_FLAGS in the Makefile.

About

newlib for aarch64-elf

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C 78.9%
  • Makefile 12.8%
  • Assembly 4.7%
  • M4 0.9%
  • TeX 0.9%
  • Shell 0.8%
  • Other 1.0%