Using "__attribute__" I am able to locate a function in a particular linker section. This is ok sometimes but for large files it becomes tedious. Is there a way to specify a section for the entire file?
Not to specify a section for the file, but you can use the object file name in the linker file as shown in
Putting Code of Files into Special Section with the GNU Linker | MCU on Eclipse
I hope this helps,
Retrieving data ...