avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-libc-dev] [RFC] Put avr-libc functions in unique section


From: Weddington, Eric
Subject: [avr-libc-dev] [RFC] Put avr-libc functions in unique section
Date: Mon, 30 Mar 2009 17:52:53 -0600

Hi All,

Attached is a patch to the current 1.6 branch.

Currently, avr-libc functions are placed in different linker sections. Most of 
them are in .text. The floating point functions are in .text.fplib. And the 
eeprom routines are in other named subsections of .text.

This patch places all avr-libc functions into .text.avr-libc, and the floating 
point functions in .text.avr-libc.fplib. Doing this will give the end user the 
ability to relocate all avr-libc functions to a particular address via a custom 
linker script, e.g. to put the functions at a lower address before the 
application .text section. The floating point routines are still placed in 
their own special section, but now at a sub-section of .text.avr-libc.

As a side note, when I was going through the code, there were 2 very small 
files that did not have a copyright and license at the beginning. It looked 
like Dmitry added these files. I took the liberty of adding the copyright and 
license, and these changes are included in this patch. Dmitry, let me know if 
this is ok with you.

It seems that there are several methods/macros to make a generic macro to start 
an assembly function for avr-libc. This patch does not comprehensively fix that 
issue, and perhaps that should be done some time in the future. Doing that 
would make changes like this a lot easier. But I did not want to do that at 
this time.

Let me know of any objections.

Eric Weddington

Attachment: avr-libc-section-name.patch
Description: avr-libc-section-name.patch


reply via email to

[Prev in Thread] Current Thread [Next in Thread]