Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 459 Bytes

README.md

File metadata and controls

31 lines (21 loc) · 459 Bytes

ELF loader

Read the RuxOS Book for detail.

Quick Start

  1. Compile the C files with Musl in rootfs/.
cd rootfs/
musl-gcc libadd.c -shared -o lib/libadd.so
musl-gcc hello.c -Llib -ladd -o bin/hello
  1. Copy the Musl dyanmic linker to rootfs/lib.

  2. Run

Run with ruxgo:

# in apps/c/dl
ruxgo -b && ruxgo -r

Run with make

# in the RuxOS main directory.
make run ARCH=aarch64 A=apps/c/dl V9P=y MUSL=y LOG=debug