Feature request for linkscripts: sorted .xxxx.* sections
Posted: Sat Nov 12, 2011 9:47 pm
I would like to see a feature where I could place variables into a real subsection, so that they get linked in the specified order.
Example:
I make a section called .iwram.100 in one file, then a section called .iwram.101 in another file. They would be linked in this order: ".iwram", ".iwram.100", ".iwram.101".
After a little bit of trial and error, I determined you could add this to a section:
*(SORT_BY_NAME(.iwram.*))
and it would do that.
I'd like to see this kind of feature integrated into the standard linkscripts and have it available for all sections (.itcm, .dtcm, .data, .bss, .text, etc...).
I'm just concerned about whether there are any unknown side effects. And the naming convention might be a little bit confusing compared to overlays.
Example:
I make a section called .iwram.100 in one file, then a section called .iwram.101 in another file. They would be linked in this order: ".iwram", ".iwram.100", ".iwram.101".
After a little bit of trial and error, I determined you could add this to a section:
*(SORT_BY_NAME(.iwram.*))
and it would do that.
I'd like to see this kind of feature integrated into the standard linkscripts and have it available for all sections (.itcm, .dtcm, .data, .bss, .text, etc...).
I'm just concerned about whether there are any unknown side effects. And the naming convention might be a little bit confusing compared to overlays.