<div dir="ltr">(this happens with comdat (inline) functions too - and doesn't happen on MachO because of reasons/symbols-as-sections, etc)</div><br><div class="gmail_quote"><div dir="ltr">On Fri, Oct 21, 2016 at 10:51 AM Eugene Leviant <<a href="mailto:evgeny.leviant@gmail.com">evgeny.leviant@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">evgeny777 added a comment.<br class="gmail_msg">
<br class="gmail_msg">
> You can see that .text has a size of 0xb and starts at 0x0. So the address would fall into the .text sectio<br class="gmail_msg">
<br class="gmail_msg">
Things can be slightly more complex, like here (this is result of compilation with -ffunction-sections):<br class="gmail_msg">
<br class="gmail_msg">
  [ 2] .text             PROGBITS        0000000000000000 000040 000000 00  AX  0   0  4<br class="gmail_msg">
  [ 3] .text.f           PROGBITS        0000000000000000 000040 00000b 00  AX  0   0 16<br class="gmail_msg">
  [ 4] .text.g           PROGBITS        0000000000000000 000050 00000b 00  AX  0   0 16<br class="gmail_msg">
  [ 5] .text.h           PROGBITS        0000000000000000 000060 00000b 00  AX  0   0 16<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
<a href="https://reviews.llvm.org/D25822" rel="noreferrer" class="gmail_msg" target="_blank">https://reviews.llvm.org/D25822</a><br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
</blockquote></div>