├── LICENSE ├── README.md ├── aarch64 ├── ELF-aarch64-debug.hex2 ├── ELF-aarch64.hex2 ├── aarch64_defs.M1 ├── libc-core.M1 ├── libc-full.M1 └── linux │ ├── bootstrap.c │ ├── fcntl.c │ ├── sys │ └── stat.c │ └── unistd.c ├── amd64 ├── ELF-amd64-debug.hex2 ├── ELF-amd64.hex2 ├── amd64_defs.M1 ├── libc-core.M1 ├── libc-full.M1 ├── linux │ ├── bootstrap.c │ ├── fcntl.c │ ├── sys │ │ └── stat.c │ └── unistd.c └── uefi │ ├── PE32-amd64.hex2 │ ├── bootstrap.c │ ├── libc-core.M1 │ └── libc-full.M1 ├── armv7l ├── ELF-armv7l-debug.hex2 ├── ELF-armv7l.hex2 ├── armv7l_defs.M1 ├── libc-core.M1 ├── libc-full.M1 └── linux │ ├── bootstrap.c │ ├── fcntl.c │ ├── sys │ └── stat.c │ └── unistd.c ├── bootstrappable.c ├── bootstrappable.h ├── ctype.c ├── ctype.h ├── fcntl.c ├── fcntl.h ├── gcc_req.h ├── iso646.h ├── knight ├── ELF-knight.hex2 ├── knight-native_defs.M1 ├── knight_defs.M1 ├── libc-core.M1 ├── libc-full.M1 ├── libc-native-file.M1 ├── libc-native.M1 ├── linux │ ├── bootstrap.c │ ├── fcntl.c │ ├── sys │ │ └── stat.c │ └── unistd.c └── native │ ├── bootstrap.c │ ├── fcntl.c │ ├── sys │ └── stat.c │ └── unistd.c ├── riscv32 ├── ELF-riscv32-debug.hex2 ├── ELF-riscv32.hex2 ├── libc-core.M1 ├── libc-full.M1 ├── linux │ ├── bootstrap.c │ ├── fcntl.c │ ├── sys │ │ └── stat.c │ └── unistd.c └── riscv32_defs.M1 ├── riscv64 ├── ELF-riscv64-debug.hex2 ├── ELF-riscv64.hex2 ├── libc-core.M1 ├── libc-full.M1 ├── linux │ ├── bootstrap.c │ ├── fcntl.c │ ├── sys │ │ └── stat.c │ └── unistd.c └── riscv64_defs.M1 ├── signal.h ├── stdarg.h ├── stdbool.h ├── stddef.h ├── stdint.h ├── stdio.c ├── stdio.h ├── stdlib.c ├── stdlib.h ├── stdnoreturn.h ├── string.c ├── string.h ├── sys ├── stat.h ├── types.h ├── utsname.h └── wait.h ├── uefi ├── fcntl.c ├── string_p.h ├── sys │ └── stat.c ├── uefi.c └── unistd.c ├── unistd.h └── x86 ├── ELF-x86-debug.hex2 ├── ELF-x86.hex2 ├── libc-core.M1 ├── libc-full.M1 ├── linux ├── bootstrap.c ├── fcntl.c ├── sys │ └── stat.c └── unistd.c └── x86_defs.M1 /README.md: -------------------------------------------------------------------------------- 1 | Inside is a standard C library for those who need to bootstrap from nothing. 2 | As all of the pieces inside will work with M2-Planet and mescc-tools -------------------------------------------------------------------------------- /aarch64/ELF-aarch64-debug.hex2: -------------------------------------------------------------------------------- 1 | ### Copyright (C) 2016 Jeremiah Orians 2 | ### Copyright (C) 2017 Jan Nieuwenhuizen 3 | ### Copyright (C) 2020 deesix 4 | ### This file is part of M2-Planet. 5 | ### 6 | ### M2-Planet is free software: you can redistribute it and/or modify 7 | ### it under the terms of the GNU General Public License as published by 8 | ### the Free Software Foundation, either version 3 of the License, or 9 | ### (at your option) any later version. 10 | ### 11 | ### M2-Planet is distributed in the hope that it will be useful, 12 | ### but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | ### GNU General Public License for more details. 15 | ### 16 | ### You should have received a copy of the GNU General Public License 17 | ### along with M2-Planet. If not, see . 18 | 19 | ### stage0's hex2 format 20 | ### !