RFC: Using per function sections

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Apr 12 14:41:34 UTC 2013


On 04/12/2013 04:29 PM, Joel Sherrill wrote:
> I am pretty sure most of the linker scripts already support
> the "*" on the sections.

This is not all.  This option causes problems with indirectly referenced 
sections (usually some sort of linker set magic).  Here you need the KEEP() 
directive in the linker command file.

>
> I could do some more analysis but IMO this looks to be an
> effective option. I would like to sweep it through everything
> an architecture at a time. Verifying (1) exe's still link,
> (2) the changes in size are reasonable (unlike the sparc),
> and (3) ticker still runs (where possible).
>
> This is an old feature in the tools we don't take advantage of
> and it appears to be very effective. Code and data size is important
> to the Community.
>
> It is also something that could easily be spread across multiple
> people to get done quicker.

Yes, it looks good, but this is definitely something for post 4.11.  Everything 
that depends on linker command files is dangerous in RTEMS due to our copy and 
paste linker command file infrastructure.

-- 
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 users mailing list