This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Change sections of a .obj after build

Hello,

I would like to know if there is a way to change a certain section of a .obj file to another.

For example, I want all the ".ebss" variables of that .obj file to be placed into ".mysection". Is there a simple way to do it instead of using #pragma DATA_SECTION() all over the source file?

Many thanks for your  help!