mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Set linker-flavor to ld.lld, leave linker at default
This commit is contained in:
@@ -132,11 +132,10 @@ We add the following build-related entries:
|
|||||||
|
|
||||||
|
|
||||||
```json
|
```json
|
||||||
"linker-flavor": "ld",
|
"linker-flavor": "ld.lld",
|
||||||
"linker": "ld.lld",
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Instead of using the platform's default linker (which might not support Linux targets), we use the cross platform [LLD] linker for linking our kernel.
|
Instead of using the platform's default linker (which might not support Linux targets), we use the cross platform [LLD] linker for linking our kernel. LLD is shipped with Rust since the `2018-03-05` nightly.
|
||||||
|
|
||||||
[LLD]: https://lld.llvm.org/
|
[LLD]: https://lld.llvm.org/
|
||||||
|
|
||||||
|
|||||||
@@ -6,8 +6,7 @@
|
|||||||
"target-pointer-width": "64",
|
"target-pointer-width": "64",
|
||||||
"target-c-int-width": "32",
|
"target-c-int-width": "32",
|
||||||
"os": "none",
|
"os": "none",
|
||||||
"linker-flavor": "ld",
|
"linker-flavor": "ld.lld",
|
||||||
"linker": "ld.lld",
|
|
||||||
"executables": true,
|
"executables": true,
|
||||||
"features": "-mmx,-sse,+soft-float",
|
"features": "-mmx,-sse,+soft-float",
|
||||||
"disable-redzone": true,
|
"disable-redzone": true,
|
||||||
|
|||||||
Reference in New Issue
Block a user