<p>Vadim Yanitskiy has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/14006">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">firmware/Makefile.inc: allow overlapping sections<br><br>The entire point of our linker scripts is to produce overlapping<br>segments/mappings/addresses. They are essential and required.<br><br>Starting from [1], not only LMA but also VMA areas are now checked<br>for overlaps (see also [2]). This results into linking errors:<br><br>  arm-none-eabi-ld: section .text.exceptions VMA<br>    [000000000080001c,0000000000800037] overlaps section<br>    .compal.reservedram VMA [0000000000800000,00000000008000fe]<br>  arm-none-eabi-ld: section .text.exceptions VMA<br>    [000000000080001c,0000000000800037] overlaps section<br>    .compal.loader VMA [0000000000800000,00000000008000ff]<br><br>Let's tell the linker that the overlaps are expected using its<br>command line option '--no-check-sections'.<br><br>[1] https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=a87dd97a2098b7e18ff2574a4e81ae521ef7e6f2<br>[2] https://sourceware.org/bugzilla/show_bug.cgi?id=18452<br><br>Change-Id: I098ddd33aabd7ec27981e2f09d8582f167bb649b<br>Fixes: OS#1917<br>---<br>M src/target/firmware/Makefile.inc<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/06/14006/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/target/firmware/Makefile.inc b/src/target/firmware/Makefile.inc</span><br><span>index 9049898..544143d 100644</span><br><span>--- a/src/target/firmware/Makefile.inc</span><br><span>+++ b/src/target/firmware/Makefile.inc</span><br><span>@@ -22,7 +22,7 @@</span><br><span> #ASFLAGS=--g$(DEBUGF) $(INCLUDES) -D__ASSEMBLY__</span><br><span> ASFLAGS=$(INCLUDES) -D__ASSEMBLY__</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-LDFLAGS = -nostartfiles -nostdlib -nodefaultlibs --gc-sections --cref</span><br><span style="color: hsl(120, 100%, 40%);">+LDFLAGS = -nostartfiles -nostdlib -nodefaultlibs --gc-sections --no-check-sections --cref</span><br><span> </span><br><span> #### QUIET OUTPUT ####</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/14006">change 14006</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/14006"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmocom-bb </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I098ddd33aabd7ec27981e2f09d8582f167bb649b </div>
<div style="display:none"> Gerrit-Change-Number: 14006 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Vadim Yanitskiy <axilirator@gmail.com> </div>