-
Notifications
You must be signed in to change notification settings - Fork 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
core: compile kernel_init and core_panic conditionally #13238
Conversation
RIOTBOOT provides its own implementation of these functions in `bootloaders/riotboot/*`. Compiling them unconditionally causes two symbols with the same name to be present, the linker will discard one of them.
From Murdock:
What does this mean? What is |
dwqw is the tool that executes jobs on the worker. The message means that the job timed out (ran for more than 5 minutes). |
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.
Makes sense and Murdock is happy.
I'm not happy with the RIOTBOOT defines.
I'll try how it looks and report back. |
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.
I think turning both kernel_init and core panic into submodules is cleaner.
I prefer @kaspar030's solution closing this. |
Contribution description
riotboot provides its own implementation of these functions in
bootloaders/riotboot/main.c
. Compiling them unconditionally causes two symbols with the same name to be present forcore_panic
andkernel_init
, the linker will discard one of them.Testing procedure
This was discovered during the implementation of link time reordering in #13176. Either test this using the aforementioned PR or read the code and check with
tests/riotboot
that bothbootloaders/riotboot/main.c
andcore/kernel_init.c
as well ascore/panic.c
are compiled and contain symbols with the same name.Issues/PRs references