-
-
Notifications
You must be signed in to change notification settings - Fork 65
Typo fixes for Makefile and linker in "Build Process" chapter #107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Hey thanks for the PR, and thanks for spotting those errors and fixing it. The only thing i'm not sure is about the @DeanoBurrito what do you think? @AFellowSpeedrunner meanwhile feel free to add yourself in the contributors list. |
Ah, thank you. I'll try and find the contributor list now. I added shared in as I get this error upon compiling without it. "x86_64-elf-ld: -f may not be used without -shared" |
|
Can you share the linking code? |
|
Assuming you mean the linking side of Makefile, here you go. My link file is named differently but it shouldn't be an issue. |
|
I think that could be another error on our side (apologies) on the In ld So also on your kernel try to remove Is that correct @DeanoBurrito ? |
|
Builds successfully without -ffreestanding and -shared. |
|
Does this look good? |
|
yep looks good to me. Let's wait for @DeanoBurrito review :) Thanks again! :) |
Yeah thats correct, Thanks for the PR @AFellowSpeedrunner, I dont see any issues so I'll merge it. |
Thank you very much @DeanoBurrito and @dreamos82 this was very enjoyable for me! I'm happy that I've helped with this. :) |
I was following these sections and kept having errors. After some experimenting, I found out there were some typos in the code examples of the changed files.
(For example, there was a ',' where there should have been a '.' in the linker script.
There was also a '%' where there should have been a '$' when calling variables in the Makefile. In the same Makefile, there was also a mistyping of 'x86_64-elf-ld' which had an '_' in between 'x86_64' and 'elf'.
I also fixed an issue that I encountered on my side with the same programs where it wouldn't link without -shared being specified in Makefile.)
I hope this pull request helps.