[PATCH] Add RTEMS linker sets

Sebastian Huber sebastian.huber at embedded-brains.de
Thu Oct 15 05:45:07 UTC 2015


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.

>
> 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. 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. 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.

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

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.




More information about the devel mailing list