Feature request for linkscripts: sorted .xxxx.* sections

support for the ARM toolchain
Post Reply
Dwedit
Posts: 43
Joined: Sun Jan 06, 2008 4:06 am

Feature request for linkscripts: sorted .xxxx.* sections

Post by Dwedit » 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.

Dwedit
Posts: 43
Joined: Sun Jan 06, 2008 4:06 am

Re: Feature request for linkscripts: sorted .xxxx.* sections

Post by Dwedit » Sat Nov 12, 2011 10:15 pm

I'm still unsure about the order, regarding where numbered and unnumbered sections should go. Sometimes you want the numbered sections first, sometimes you want them last.

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests