-
Notifications
You must be signed in to change notification settings - Fork 229
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
gdt.cpp:(.text+0xa2): undefined reference to `__stack_chk_fail_local' #15
Comments
add "-fno-stack-protector" in GCCPARAMS. then you can fix this error(my english isn't good enough) |
I am also having this issue. @devjuha adding "-fno-stack-protector" in GCCPARAMS does not fix this for me. Edit: I have tried this on |
@devjuha
im using 32bit Linux mint 19.2 Cinnamon |
i want to see that code. could you upload for me? |
|
what is your compiler version? gdt.cpp: In constructor ‘GlobalDescriptorTable::GlobalDescriptorTable()’: |
i think you should define __stack_chk_fail_local in gdt.cpp |
Ok, so adding
in gdt.cpp has fixed my problem. Interestingly, I can now take away the __stack_chk_fail_local() function I declared in gdt.cpp and the compiler no longer raises any errors. So the issue is fixed for me but I don't understand this behavior. Edit: My fix works for me on both A link to my repo Edit: add the above function to whatever file your compiler says has an error without it, not just gdt.cpp. The compiler tells me a different file needs it when I add new files or build this repo instead. |
i think very thankful because your problem was fixed! |
@devjuha Yes, thank you very much. |
Ayyy, this works. |
After writing the gdt.cpp file and calling the class in kernel.cpp and "make run" i get this error, is there a solution to this ?but the gdt.o is created but i cant compile the .bin file
The text was updated successfully, but these errors were encountered: