<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Copy C-Lib to RAM using the linker</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/26913/copy-c-lib-to-ram-using-the-linker</link><description> 
Hi all, 

 
I&amp;#39;ve got a question regarding a bootloader written for the
XE167. 

 
Part of the bootloader needs to be executed in RAM in order to
erase and reprogram the FLASH. I placed the flash-routines in their
own section and advised the linker to</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Copy C-Lib to RAM using the linker</title><link>https://community.arm.com/thread/59265?ContentTypeID=1</link><pubDate>Fri, 18 Mar 2011 17:02:12 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:e3ecf0b5-08f4-4fcc-9f07-f6df3f1bfcb8</guid><dc:creator>HansBernhard Broeker</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;Because of these calls I need to copy the C-Lib code to the
RAM, too.&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
Not really. IMHO a more natural conclusion from this would be that
you need to either&lt;/p&gt;

&lt;p&gt;
1) change the way you wrote those flash function such that they
can be compiled without resorting to support library calls, or&lt;/p&gt;

&lt;p&gt;
2) stop trying to do this in C and just write these things in
assembler instead.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>