Skip to content

Commit 63cd95b

Browse files
authored
Merge pull request #1349 from EsotericDryad/patch-1
Update post 02 "Building our Kernel" section
2 parents 68698fd + e0ab3f2 commit 63cd95b

File tree

1 file changed

+1
-1
lines changed
  • blog/content/edition-2/posts/02-minimal-rust-kernel

1 file changed

+1
-1
lines changed

blog/content/edition-2/posts/02-minimal-rust-kernel/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ Our target specification file now looks like this:
211211
```
212212

213213
### Building our Kernel
214-
Compiling for our new target will use Linux conventions (I'm not quite sure why; I assume it's just LLVM's default). This means that we need an entry point named `_start` as described in the [previous post]:
214+
Compiling for our new target will use Linux conventions, since the ld.lld linker-flavor instructs llvm to compile with the `-flavor gnu` flag (for more linker options, see [the rustc documentation](https://doc.rust-lang.org/rustc/codegen-options/index.html#linker-flavor)). This means that we need an entry point named `_start` as described in the [previous post]:
215215

216216
[previous post]: @/edition-2/posts/01-freestanding-rust-binary/index.md
217217

0 commit comments

Comments
 (0)