<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sat, Dec 26, 2015 at 1:41 PM, George Rimar <span dir="ltr"><<a href="mailto:grimar@accesssoftek.com" target="_blank">grimar@accesssoftek.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">grimar added inline comments.<br>
<br>
================<br>
</span>Comment at: lld/trunk/ELF/Writer.cpp:214<br>
@@ -212,1 +213,3 @@<br>
+      HasGotOffRel = true;<br>
+<br>
     if (Target->isTlsLocalDynamicReloc(Type)) {<br>
----------------<br>
btw, what about making this more generic ?<br>
<br>
1) Change HasGotOffRel to be not a global variable but a public member of target.<br>
2) remove isGotRelative(Type), create visitRelocation(Type) or something alike instead. Which purpose would be to review relocation and set flags like HasGotOffRel inside.</blockquote><div><br></div><div>That sounds a little bit more complicated than the current code. To me, the use of the global variable here is not a necessary evil, but it is actually improving the readability of the code.</div></div></div></div>