So I have an old code written for ARM compiler with many #pragma
for assigning variables and functions to sections like this:
...thousands lines of code #pragma arm section blah = "blah"...thousands lines of code #pragma arm section...thousands lines of code
I know I could use the __attribute__(section("name"))
instead but I have to copy and paste this for every line. I am new to the GCC linker script so I am just wondering if I can embed special linker symbols or something in the code and then later ask the linker to place anything between those symbols in a certain section. Is there anything like that in GCC?