<blockquote>
<p>I think we need a test to show that a <em>functioning</em> application can be built without newlib, and that newlib itself is not being included (i.e. that the change is effective). For the second point, maybe verify that newlib init stuff is not the symbols in the elf file.</p>
</blockquote>
<p>I've added a commit disabling newlib for the bootloader.</p>
<p>This is before (on samr21-xpro):</p>
<pre><code>   text    data     bss     dec     hex filename
   2544      24     672    3240     ca8 /home/kaspar/src/riot/bootloaders/riotboot/bin/samr21-xpro/riotboot.elf
</code></pre>
<p>This is after:</p>
<pre><code>   text    data     bss     dec     hex filename
   1124       0     512    1636     664 /home/kaspar/src/riot/bootloaders/riotboot/bin/samr21-xpro/riotboot.elf                              
</code></pre>
<p><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/hovercards?user_id=815976" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/basilfx">@basilfx</a> can you give this a try on efm32?</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/pull/10767#issuecomment-460579360">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AEn7YLUlg8Et9PUpDd3vb1aCrwBK1wqlks5vKVb3gaJpZM4Z-eY_">mute the thread</a>.<img src="https://github.com/notifications/beacon/AEn7YHWjsQmu2p4UGPizNFoDhmvWLvzCks5vKVb3gaJpZM4Z-eY_.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/RIOT-OS/RIOT","title":"RIOT-OS/RIOT","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/RIOT-OS/RIOT"}},"updates":{"snippets":[{"icon":"PERSON","message":"@kaspar030 in #10767: \u003e I think we need a test to show that a _functioning_ application can be built without newlib, and that newlib itself is not being included (i.e. that the change is effective). For the second point, maybe verify that newlib init stuff is not the symbols in the elf file.\r\n\r\nI've added a commit disabling newlib for the bootloader.\r\n\r\nThis is before (on samr21-xpro):\r\n\r\n```\r\n   text    data     bss     dec     hex filename\r\n   2544      24     672    3240     ca8 /home/kaspar/src/riot/bootloaders/riotboot/bin/samr21-xpro/riotboot.elf\r\n```\r\n\r\nThis is after:\r\n\r\n```\r\n   text    data     bss     dec     hex filename\r\n   1124       0     512    1636     664 /home/kaspar/src/riot/bootloaders/riotboot/bin/samr21-xpro/riotboot.elf                              \r\n```\r\n\r\n@basilfx can you give this a try on efm32?"}],"action":{"name":"View Pull Request","url":"https://github.com/RIOT-OS/RIOT/pull/10767#issuecomment-460579360"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/10767#issuecomment-460579360",
"url": "https://github.com/RIOT-OS/RIOT/pull/10767#issuecomment-460579360",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>