-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Remove BYTE directives from kernel linker script to fix triple fault on boot #115
Conversation
Thanks for this. Confirming it solved the problem on Ubuntu 19.10. |
Confirm this solves the problem on an up-to-date Debian testing. |
Confirm this also solves the problem on x86_64 Ubuntu 19.10. |
Confirm this works on x86_64 ubuntu 19.10 |
Confirm this works on mac os Catalina |
It isn't working in kali linux |
works on ubuntu 19.10, thanks! |
See mit-pdos/xv6-public#115 Both sections appear to be redundant since gdb works fine without them and the kernel already has .symtab and .strtab, which appear to be the actually relevant sections.
Thank you very much, this works fine under mac, the compilation tool is homebrew (x86_64-elf-gcc 9.3.0 and qemu 4.2.0) |
Works on Ubuntu 20.04, Thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Solves the issue on Ubuntu 20.04
thanks a lot, it works on my ubuntu 20.04. |
Thanks for the fix. Works on Ubuntu 20.04. |
REMOVING BYTE(0) TO SOLVE ISSUE 115 WITH QEMU. SEE: mit-pdos#115
Thanks! Solves the issue for me on Ubuntu 19.10. |
Thx. It works on Ubuntu 20.04. |
solves the issue on x86_64 Linux 5.9.1-arch-1 |
Solves the issue on macOS 11.0 Big Sur |
Thanks. Solved the issue for me as well. well done. |
hello I need help on commiting with this request, I tried in terminal git and it says there is not such file in git... any help? |
这是来自QQ邮箱的假期自动回复邮件。
您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。
|
Remove BYTE directives from kernel linker script to fix triple fault on boot
Remove BYTE directives from kernel linker script to fix triple fault on boot
When compiling with binutils version >=2.33, xv6 will triple fault on boot. Although this may be a regression in binutils, this PR will prevent the triple fault.
For binutils >=2.33, the BYTE directives produce an incorrect physical address for the second LOAD memory segment in the ELF header of
kernel
. This can be observed withobjdump -x kernel
after compiling. I'm not sure why this happens; there may be other ways to fix the problem.This bug was noticed because this version of xv6 is used for a course at the University of Virginia.