[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:
@@ -12,8 +12,7 @@ ccflags: [
|
||||
"-mno-red-zone",
|
||||
"-fshort-wchar",
|
||||
"-fno-omit-frame-pointer",
|
||||
"-ggdb",
|
||||
"-g3" ]
|
||||
]
|
||||
|
||||
cxxflags: [ "-fno-exceptions", "-fno-rtti" ]
|
||||
|
||||
@@ -23,5 +22,5 @@ ldflags: [
|
||||
"-Wl,-entry:efi_main",
|
||||
"-Wl,-subsystem:efi_application",
|
||||
"-fuse-ld=lld-link",
|
||||
"-g" ]
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user