Hello David:
Sorry for the time with no responses.
- About changing the attributes on a per file basis, I do not think that is possible. But a similar way would be to force the contents of the entire file (separated by sections) into custom memory segments. Something like:
.custom_text :
{
*MyFile.o (.text*)
. = ALIGN(4);
} > my_text_section
.custom_data :
{
*MyFile.o (.data*)
. = ALIGN(4);
} > my_data_section
This worked with the GCC toolchain used by CodeWarrior. In case this does not apply to GCC in KDS, colleague Erich Styger just published a good tutorial:
Putting Code of Files into Special Section with the GNU Linker | MCU on Eclipse
- Right now I don't know of a specific place to search for information about section names. But surely you can find something in the web as GCC is widely used.
- You are right, strings could be linked separately in CodeWarrior. I am afraid that this is not supported by GCC linker.
Regards!,
Jorge Gonzalez
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------