[libc] Pull crt0 out into its own module

Sorta. crt0 is a separate module as far as bonnibel is concerned, but it's
still part of the libc module file.
This commit is contained in:
Justin C. Miller
2024-02-13 22:41:40 -08:00
parent 75d30fb56d
commit ba6e8e1349
7 changed files with 28 additions and 4 deletions

View File

@@ -12,6 +12,8 @@ ccflags: [
"-U__linux",
"-U__linux__",
"-DMSPACES",
"--sysroot='${source_root}/sysroot'"
]
@@ -32,3 +34,6 @@ ldflags: [
"--no-dependent-libraries",
]
libs: [
"${target_dir}/crt0.o",
]

View File

@@ -1,4 +1,5 @@
---
ccflags: [
"-fpie"
]
@@ -8,3 +9,7 @@ ldflags: [
"--dynamic-linker", "/jsix/lib/ld.so",
"--push-state", "--as-needed", "-Bstatic", "-lc++", "-lc++abi", "-lunwind", "--pop-state",
]
libs: [
"${target_dir}/crt0.o",
]

View File

@@ -1,5 +1,5 @@
---
asflags: [ "-I${source_root}/src/kernel/" ]
asflags: []
ccflags: [
"--target=x86_64-jsix-elf",