Ignoring changed section attributes
The compiler warning
"D:/EmbeddedArtists/ProjClone/ARM Flash Debug/\s3ck.19:1203: Warning: ignoring changed section attributes for .textbl"
appeared after having changed a file's section property Constant Section Name from .rodata to .textbl.
.textbl is the Code Section Name for the same file, the code of which is copied to SDRAM for execution.
It is ok for code but not for constant data obviously.
The idea is that constant strings shall be available in SDRAM while flash is updated.
I might copy these strings "manually" to SDRAM, but I wonder what might be wrong applying the section attribute.
Does anybody know how to do it correctly?
Regards,
Henry
-
This warning is generated when the assembler comes across a section directive that is defining a section that has previously been defined with different flags. A code section will have an execute flag and a data section won't.
If you put your data into its own section rather than putting it into a code section you shouldn't get the warning.
Please sign in to leave a comment.
Comments
1 comment