<div dir="ltr">I'll update wherever we use log2 instead of a value itself.</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 25, 2015 at 11:37 AM, Shankar Easwaran <span dir="ltr"><<a href="mailto:shankare@codeaurora.org" target="_blank">shankare@codeaurora.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Its only atoms. I was hinting at default output section alignments in the ELF writer.<div class="HOEnZb"><div class="h5"><br>
<br>
On 3/25/2015 12:44 PM, Rui Ueyama wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I guess I'm talking about atoms. Do we have notion of section in LLD?<br>
<br>
On Wed, Mar 25, 2015 at 8:35 AM, Shankar Easwaran <<a href="mailto:shankare@codeaurora.org" target="_blank">shankare@codeaurora.org</a>><br>
wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 3/24/2015 7:51 PM, Rui Ueyama wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Tue, Mar 24, 2015 at 5:40 PM, Nick Kledzik <<a href="mailto:kledzik@apple.com" target="_blank">kledzik@apple.com</a>> wrote:<br>
<br>
  On Mar 24, 2015, at 5:09 PM, Rui Ueyama <<a href="mailto:ruiu@google.com" target="_blank">ruiu@google.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  It's not a big deal, but it always annoyed me a bit when I hit it, so<br>
I'll bring it up here.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
LLD represents an alignment X as log2(X) in some places and just X in<br>
<br>
</blockquote>
other places. It's a bit confusing. Because I always think alignments in<br>
my<br>
mind in terms of 1, 2, 4, 8, ..., instead of 2^1, 2^2, 2^3, ..., I'd like<br>
to propose to always use real values.<br>
Can you give some examples?<br>
<br>
The DefinedAtom class has struct:<br>
<br>
      struct Alignment {<br>
          uint16_t powerOf2;<br>
          uint16_t modulus;<br>
      };<br>
<br>
That use seems clear.   But, yes, if there is “int alignment” somewhere,<br>
that is ambiguous.<br>
<br>
  At least in ELF, alignment values are represented not by exponents but<br>
</blockquote>
by<br>
just numbers in files, so we convert them back and force. "Alignment" is<br>
used for both exponents and actual values there.<br>
<br>
</blockquote>
I believe you are mentioning about section alignments, that are being<br>
differentiated from atom alignments ?<br>
<br>
If so are you planning to change the variable name (or) use Alignment even<br>
there ?<br>
<br>
Shankar Easwaran<br>
<br>
--<br>
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted<br>
by the Linux Foundation<br>
<br>
<br>
</blockquote></blockquote>
<br>
<br>
-- <br>
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by the Linux Foundation<br>
<br>
</div></div></blockquote></div><br></div>