-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
_TEXT_SECTION_NAME_2 on ARM Cortex-R #21650
Comments
As far as I could see this has little to do with alignment @andrewboie , it is rather related to the code relocation work done in #10892 I wonder if we could simply rename the initial TEXT Section that contains the vector table to something else. |
@wentongwu do you think we can do the above? |
@ioannisg I think we can rename this section, maybe _vector_table_section. |
@wentongwu @andrewboie I am ok with that. Actually, at least 2 other architectures, Risc-V and Nios2 have a similar thing, that is, several sections at the beginning of ROM (vector, reset exception section) followed by the text section. |
@ioannisg sounds right -- what we really have here is a special rodata section immediately before the actual program text. Thinking out loud: could we just reverse the order of the text and rodata sections? So what we have now is:
Could we just do
|
#21874 fixes this for Cortex-M, I would prefer if @stephanosio provides the fix for Cortex-R. |
@ioannisg I will look into this on Monday. |
Describe the bug
ARM platforms define a _TEXT_SECTION_NAME_2 which ends up in the final binary.
This isn't right. We just want one text section, if stuff needs to be aligned internally we can do that within the text section itself.
Delete the exception for _TEXT_SECTION_NAME_2 in scripts/sanitycheck (=> #22675).
The text was updated successfully, but these errors were encountered: