-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
Arch arm cortex m text section fix #21874
Changes from 1 commit
b5767c7
6107453
5875f6c
3eb1516
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -135,7 +135,7 @@ SECTIONS | |
|
||
_image_rom_start = ROM_ADDR; | ||
|
||
SECTION_PROLOGUE(_TEXT_SECTION_NAME,,) | ||
SECTION_PROLOGUE(rom_start,,) | ||
{ | ||
|
||
/* Located in generated directory. This file is populated by the | ||
|
@@ -151,7 +151,7 @@ SECTIONS | |
|
||
#endif /* CONFIG_CODE_DATA_RELOCATION */ | ||
|
||
SECTION_PROLOGUE(_TEXT_SECTION_NAME_2,,) | ||
SECTION_PROLOGUE(_TEXT_SECTION_NAME,,) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see that There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, we left it there because we don't fix the cortex-r now. Will make sure I ask @stephanosio for the cortex r fix ::) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does this break the size calculation? What consequences does this have? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @SebastianBoe I am not sure where "this" exactly refers to; i'll try to reply, anyways. The current patch only renames the "TEXT_SECTION_NAME_2" section to "text", and the original "text" section to rom_start; note that that section contains the vector table. The patch does not move any symbols between sections. Where does size calculation take place? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. By this I meant this patch. Will see if I can find the relevant sanitycheck code. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It appears that sanitycheck believes that _TEXT_SECTION_NAME_2 is in the rw area. Which I assume is wrong, so this patch should not cause any regression, it might even fix https://github.com/zephyrproject-rtos/zephyr/blob/master/scripts/sanitycheck#L1074 |
||
{ | ||
_image_text_start = .; | ||
|
||
|
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.
Should we do the same fix for cortex-r ?
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.
Will do that on separate PR, hopefully by the cortex r contributors