<div dir="ltr">I guess I'm talking about atoms. Do we have notion of section in LLD?</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 25, 2015 at 8:35 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"><div class="HOEnZb"><div class="h5">On 3/24/2015 7:51 PM, Rui Ueyama wrote:<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>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Mar 24, 2015, at 5:09 PM, Rui Ueyama <<a href="mailto:ruiu@google.com" target="_blank">ruiu@google.com</a>> wrote:<br>
<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>
</blockquote>
I'll bring it up here.<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>
</blockquote>
other places. It's a bit confusing. Because I always think alignments in 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>
</blockquote>
At least in ELF, alignment values are represented not by exponents but 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>
</blockquote></div></div>
I believe you are mentioning about section alignments, that are being differentiated from atom alignments ?<br>
<br>
If so are you planning to change the variable name (or) use Alignment even there ?<span class="HOEnZb"><font color="#888888"><br>
<br>
Shankar Easwaran<br>
<br>
-- <br>
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by the Linux Foundation<br>
<br>
</font></span></blockquote></div><br></div>