[build] Move init to its own target

In order to allow -fpic and -fpie in the user target, move init to it's
own target -- it needs its own special build rules to make it loadable
by boot.
This commit is contained in:
Justin C. Miller
2023-07-31 00:16:02 -07:00
parent 21916ab869
commit bbe27c6b53
8 changed files with 66 additions and 21 deletions

View File

@@ -0,0 +1,9 @@
---
ccflags: [
"-fpie"
]
ldflags: [
"-pie",
"--dynamic-linker", "/tools/ld.so",
]