Skip to content
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

Linker can't find kernel entry symbol. #27

Open
judearich opened this issue Sep 18, 2020 · 1 comment
Open

Linker can't find kernel entry symbol. #27

judearich opened this issue Sep 18, 2020 · 1 comment

Comments

@judearich
Copy link

Hello, when compiling the kernel, the linker (riscv64-elf-ld) issues the following warning:

riscv64-elf-ld: warning: cannot find entry symbol _entry; defaulting to 0000000080000000

The linker can't find the _entry symbol, so it defaults to an address that just so happens, one can see from reading the comments in the file kernel/entry.S, to be the location of the _entry symbol. Everything works, but it's a bit of a kludge.

After troubleshooting, I found that _entry isn't exported as a global symbol. putting a .global _entry directive in kernel/entry.S fixes the problem and removes the linker warning.

@ghost
Copy link

ghost commented Jan 4, 2021

I have the same error. The kernel isn't booting. I'm using rvemu: https://github.com/d0iasm/rvemu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant