<?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/"><channel><title>Anupam_on's Activities</title><link>https://community.arm.com/members/anupam_5f00_on</link><description>Anupam_on's recent activity</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>Error - Subtractive relocations not supported</title><link>https://community.arm.com/developer/tools-software/tools/f/arm-compilers-forum/48311/error---subtractive-relocations-not-supported</link><pubDate>Thu, 17 Dec 2020 14:28:27 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:c54876ac-d071-4e4b-81d6-5de2583779a8</guid><dc:creator>Anupam_on</dc:creator><description>&lt;p&gt;I was trying to add RO data size to a FW image header.&lt;/p&gt;
&lt;p&gt;In header.inc file I had done&lt;/p&gt;
&lt;p&gt;DCD&amp;nbsp; &amp;nbsp; &amp;nbsp;||Image$$TEXT$$ZI$$Limit|| - ||Image$$TEXT$$Base||&lt;/p&gt;
&lt;p&gt;It generated error -&amp;nbsp;Error: A1142E: Subtractive relocations not supported for ELF format output&lt;/p&gt;
&lt;p&gt;I see there is an error information -&amp;nbsp;&lt;a href="https://developer.arm.com/documentation/dui0496/e/assembler-errors-and-warnings/list-of-the-armasm-error-and-warning-messages"&gt;developer.arm.com/.../list-of-the-armasm-error-and-warning-messages&lt;/a&gt;&lt;br /&gt;--------------------------------------------------------------------------------------------------------------&lt;/p&gt;
&lt;p&gt;This can occur when subtracting symbols that are in different areas, for example:&lt;/p&gt;
&lt;p&gt;IMPORT sym1&lt;br /&gt;IMPORT sym2&lt;br /&gt;DCD (sym2 - sym1)&lt;br /&gt;--------------------------------------------------------------------------------------------------------------&lt;/p&gt;
&lt;p&gt;However If i individually insert the &lt;span&gt;||Image$$TEXT$$ZI$$Limit|| and&amp;nbsp;||Image$$TEXT$$Base||&lt;/span&gt;&amp;nbsp;into header.inc, there is no issue.&lt;br /&gt;Both of them are plain integers and should be ok to subtract. And both the addresses are like base address and then end adresss, subtracting which the size will be calculated&lt;br /&gt;Is there any workaround to / correct way of doing that?&lt;/p&gt;
&lt;p&gt;&lt;code class="hljs"&gt;&amp;nbsp;&lt;/code&gt;&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>ARM clang compiler errors out as - error: unknown register name &amp;#39;cp15:0:c9:c12:0&amp;#39;</title><link>https://community.arm.com/developer/tools-software/tools/f/arm-compilers-forum/48020/arm-clang-compiler-errors-out-as---error-unknown-register-name-cp15-0-c9-c12-0</link><pubDate>Tue, 10 Nov 2020 06:57:09 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:8acb5258-6e4a-4a8e-b1bb-34b648382123</guid><dc:creator>Anupam_on</dc:creator><description>&lt;p&gt;I am trying to migrate my source code compilation from armcc compiler v5.06 to armclang v6. And I see armclang errors out saying it can not recognize cp15 registers. It looks like there might be a change in armcc vs clang as how to declare the registers. However, I could not find anything on the migration docs or in compiler doc.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Here is the code snippet -&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;void reset_clock_count(void)
{
    register uint32_t reg_cp15_pmcr __asm(&amp;quot;cp15:0:c9:c12:0&amp;quot;);
    reg_cp15_pmcr |=  RESET_CYCLE_COUNTER;
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;And error snippet -&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;error: unknown register name &amp;#39;cp15:0:c9:c12:0&amp;#39; in asm
    register uint32_t reg_cp15_pmcr __asm(&amp;quot;cp15:0:c9:c12:0&amp;quot;);
                                          ^
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I see same errors for other places for similarly declared register. Any pointer on what might have gone wrong will be helpful.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Ask A Question I</title><link>https://community.arm.com/achievements/460ac7df-7ccc-4c42-a204-9e05eef3be09</link><pubDate>Tue, 10 Nov 2020 00:17:45 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:fa861772-0b7f-475a-a0c5-39d5d7893b06</guid><dc:creator /><description>Ask a question in a forum.</description></item></channel></rss>