core: compile kernel_init and core_panic conditionally#13238
Closed
nmeum wants to merge 1 commit intoRIOT-OS:masterfrom
Closed
core: compile kernel_init and core_panic conditionally#13238nmeum wants to merge 1 commit intoRIOT-OS:masterfrom
nmeum wants to merge 1 commit intoRIOT-OS:masterfrom
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.
Member
Author
|
From Murdock: What does this mean? What is |
Contributor
dwqw is the tool that executes jobs on the worker. The message means that the job timed out (ran for more than 5 minutes). |
benpicco
approved these changes
Jan 30, 2020
Contributor
benpicco
left a comment
There was a problem hiding this comment.
Makes sense and Murdock is happy.
Contributor
|
I'm not happy with the RIOTBOOT defines.
I'll try how it looks and report back. |
kaspar030
requested changes
Jan 31, 2020
Contributor
kaspar030
left a comment
There was a problem hiding this comment.
I think turning both kernel_init and core panic into submodules is cleaner.
Member
Author
|
I prefer @kaspar030's solution closing this. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_panicandkernel_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/riotbootthat bothbootloaders/riotboot/main.candcore/kernel_init.cas well ascore/panic.care compiled and contain symbols with the same name.Issues/PRs references