<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/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/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>How to add conditional compilation in linker.ld file?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/40020/how-to-add-conditional-compilation-in-linker-ld-file</link><description>Hi, 
 Is there any way to add conditional compilation in linker file? 
 I have two versions of a code, one with DFU and one without, i want to combine the versions. is there any way to define the memory regions in linker based on which version i am using</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 31 Oct 2018 11:23:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/40020/how-to-add-conditional-compilation-in-linker-ld-file" /><item><title>RE: How to add conditional compilation in linker.ld file?</title><link>https://devzone.nordicsemi.com/thread/155298?ContentTypeID=1</link><pubDate>Wed, 31 Oct 2018 11:23:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10629e30-9f55-4ac3-b78f-ce4879e86067</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;OK. I don&amp;#39;t do makefiles&amp;nbsp; - I prefer an IDE to take care of these arcane details - but, as noted, this is pretty standard stuff. So any standard make tutorial should help ...&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;GCC documentation is here:&amp;nbsp;&lt;a href="https://gcc.gnu.org/onlinedocs/"&gt;https://gcc.gnu.org/onlinedocs/&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to add conditional compilation in linker.ld file?</title><link>https://devzone.nordicsemi.com/thread/155297?ContentTypeID=1</link><pubDate>Wed, 31 Oct 2018 11:15:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4bbadfdc-c343-4773-b1de-0892e797b864</guid><dc:creator>madblue</dc:creator><description>&lt;p&gt;I am not using any IDE,&lt;/p&gt;
&lt;p&gt;i have a gnu based set up on ubuntu, i am only using terminal commands to compile and upload the code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to add conditional compilation in linker.ld file?</title><link>https://devzone.nordicsemi.com/thread/155266?ContentTypeID=1</link><pubDate>Wed, 31 Oct 2018 08:01:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7f7bb6b-734a-4cb4-a62a-13a8195edccb</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Are you using an IDE? If so, which one?&lt;/p&gt;
&lt;p&gt;Sure, you can do this sort of stuff in makefiles ...&lt;/p&gt;
[quote userid="25188" url="~/f/nordic-q-a/40020/how-to-add-conditional-compilation-in-linker-ld-file"]I am not sure how relevant this question in this forum[/quote]
&lt;p&gt;It&amp;#39;s pretty much a standard thing in building any sort of code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>