English, asked by antoalvers, 8 months ago

linker to further move ​

Answers

Answered by aravinthpm
2

Explanation:

I have learned that using __attribute__ ((section(".section_name"))), I can move function or variable at specific section as per defined in linker script. But I have a bunch of C source files for which I wish to move all of that code in a specific section with a simple method instead of writing the above command for each of the function/variable declarations.

The same way I have some mode C files for which I need to move them into other defined sections.

Writing __attribute__ ((section(".section_name"))) For every function and Variable will be time consuming and complex process. 

Similar questions