According to the GCC documentation, if I add __attribute__((section("section name")) to a declaration, I can specify a section. However, the linker file has warnings saying don't touch it. I don't see any settings under the project properties for locating sections. How does one specify a specific location for something? I'm using Processor Expert, so that's where the warning not to edit the linker file comes from.
解決済! 解決策の投稿を見る。
You can disable the linker file generation, see last dialog in Disable my Code Generation | MCU on Eclipse
Hi David,
did you define the section in ld file?
please refer
https://community.freescale.com/docs/DOC-101437
"2.1 . No fill() command involved."
this works on my side without any error.
Hope this helps!
====================================================================
this answer is for you. if it helps, please click on "correct answer" button. thanks!
Best Regards,
ZhangJun
At the top of the ld file:
/* ################################################################### */
/*##
/*## THIS COMPONENT MODULE IS GENERATED BY THE TOOL. DO NOT MODIFY IT. */
/*## */
/*## Filename : ProcessorExpert.ld */
So, if I modify the file and ProcessorExpert overwrites it if I change something, how does one specify the section that makes Processor Expert aware of it? I have confirmed that PE overwrites the ld file, removing my edits.
You can disable the linker file generation, see last dialog in Disable my Code Generation | MCU on Eclipse
Ah, thank you Erich. Being able to turn off the code generation when it's not wanted could be useful, and that's exactly what I need to be able to control the linker sections. Thanks!