How to implement NOLOAD section attribute for Tasking LSL

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User9635
Level 4
Level 4
50 replies posted 50 questions asked 25 replies posted
Hello Support,

In the GNU LD [Linker/Loader], there is an attribute for output section called 'NOLOAD'.
Can you please provide me a Tasking LSL Script with similar behavior?

Refer:
http://osr507doc.sco.com/en/tools/ld_alloc_types.html
0 Likes
3 Replies
User13836
Level 6
Level 6
50 likes received 50 solutions authored 100 sign-ins
Please provide more details about what you would like to do in your AURIX application. Is it about preventing the initialization of some sections which are located in RAM? Thanks.
0 Likes
NeMa_4793301
Level 6
Level 6
10 likes received 10 solutions authored 5 solutions authored
Have you tried #pragma noclear / clear?


#pragma noclear // adjacent to variable
int var;
#pragma clear // adjacent to variable
0 Likes
User9635
Level 4
Level 4
50 replies posted 50 questions asked 25 replies posted
Essentially, as you know that within Tasking Linker, one can automatically initialize Boot Mode Header area contents using BMHD_GENERATE macro.
Now, I want to create a section at the same address which will contain a struct variable.
In GCC, I can use NOLOAD attribute for the output section and hence GNU LD will overlay the struct variable at the address of the Boot Mode Header.
I am looking for a method using Tasking Linker.
0 Likes