[PATCH] Add RTEMS linker sets

Chris Johns chrisj at rtems.org
Thu Oct 15 06:56:32 UTC 2015


On 15/10/2015 4:45 pm, Sebastian Huber wrote:
> On 14/10/15 23:16, Chris Johns wrote:
>> Is this for users or the kernel or both?
> 
> Its probably useful for both. The libbsd already uses this stuff.
> 

I think it is useful. I can see ways to have BSP added externally.

>>
>> Is there any documentation for using this?
> 
> Before I spend more time on this we have to make a project decision if
> we want to use linker sets or not. We have to decide if we want to use
> the lexicographical sorting of GNU ld or not. 

I do not see us supporting any but GNU ld in short to medium term. Even
if RTEMS is built by clang I suspect GNU ld would still be used.

> Linker sets are so wide
> spread used (e.g. global constructors, Linux, BSD) that I don't see a
> high risk that a particular architectures doesn't support it.

I agree.

> In case a
> linker lacks support for the lexicographical sorting, then you just have
> to enumerate the sections by hand. That's the price for using bad tools.

I do not think the feature is going away so the risk of using is low.

> We have to evaluate if a linker set based initialization is a problem
> for mission-critical or safety-critical applications.

Do mean implicit verses explicit creation of the tables?

Chris



More information about the devel mailing list