<p>Richard Mudgett <strong>posted comments</strong> on this change.</p><p><a href="https://gerrit.asterisk.org/8105">View Change</a></p><p>Patch set 1:</p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><p style="white-space: pre-wrap; word-wrap: break-word;">OK. I am a bit confused about your ‘more’. According to clang (and<br>my book about precedence) your proposal changes the code. clang<br>offers both alternatives as suggestion. So, this was a bug<br>actually?</p></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">Yes I think the compiler really found a bug.</p><p style="white-space: pre-wrap; word-wrap: break-word;">bfd_get_section_flags() returns flags and SEC_ALLOC is one of those flags we could test.  According to the comments associated with SEC_ALLOC, the current section is allocated if set.  i.e., It has program code (or constant data) in it.  If not set the section is only debug information.</p><p style="white-space: pre-wrap; word-wrap: break-word;">So the if expression was trying to say: If the bfd section does not have code in it or the section's code contents does not contain the offset address then skip the section.</p><ul style="list-style: none; padding-left: 20px;"></ul><p>To view, visit <a href="https://gerrit.asterisk.org/8105">change 8105</a>. To unsubscribe, visit <a href="https://gerrit.asterisk.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.asterisk.org/8105"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: I9ec3e144d425a976c02811bd23cd0c533d2eca4e </div>
<div style="display:none"> Gerrit-Change-Number: 8105 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Alexander Traud <pabstraud@compuserve.com> </div>
<div style="display:none"> Gerrit-Reviewer: Alexander Traud <pabstraud@compuserve.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Richard Mudgett <rmudgett@digium.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Wed, 31 Jan 2018 13:57:01 +0000 </div>
<div style="display:none"> Gerrit-HasComments: No </div>