<?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>Append / Link a .bin blob to own .bin in make-/linker-file</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18477/append-link-a-bin-blob-to-own-bin-in-make--linker-file</link><description>I need to append another binary-file (image.bin) to the generated bin-file from my own nRF makefile Project in Eclipse with Cross ARM GCC. My research showed me several possibilities how to do this, but none did work out for me: 
 
 ld -r -b binary</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 19 Dec 2016 16:08:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18477/append-link-a-bin-blob-to-own-bin-in-make--linker-file" /><item><title>RE: Append / Link a .bin blob to own .bin in make-/linker-file</title><link>https://devzone.nordicsemi.com/thread/71277?ContentTypeID=1</link><pubDate>Mon, 19 Dec 2016 16:08:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7b513dd-6be6-4774-99ae-9291ed0527a3</guid><dc:creator>VanNuru</dc:creator><description>&lt;p&gt;I kind of found a solution: After converting the .bin to .o with&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ld -r -b binary -o image.o image1.bin
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I manually change the name of the section &lt;code&gt;.data&lt;/code&gt; in the .o-file to &lt;code&gt;.text&lt;/code&gt; with&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;perl -pi -e &amp;#39;s/\.data/\.text/g&amp;#39; image.o
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then the image gets linked exactly as a want it to.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>