<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 26, 2015 at 3:16 PM, Michael Spencer <span dir="ltr"><<a href="mailto:bigcheesegs@gmail.com" target="_blank">bigcheesegs@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">On Tue, May 26, 2015 at 2:18 PM, Rui Ueyama <<a href="mailto:ruiu@google.com">ruiu@google.com</a>> wrote:<br>
> Yes we should fix it if it can't handle valid objects, but I think we<br>
> probably start considering checking in object files (as opposed to checking<br>
> in yaml files) is the right thing, as IIRC Rafael said before. Object files<br>
> are the input for the linker, so in order to get a precise control over the<br>
> input, it's better to use object files themselves.<br>
<br>
</span>I would rather we not use non-human readable inputs for testing. It<br>
makes it difficult to tell what's being tested and what the file<br>
actually represents. The intent of yaml2obj is to be able to represent<br>
(almost) any valid ELF file, and some invalid ones. I'll add support<br>
for it.<br>
<span class=""><font color="#888888"><br></font></span></blockquote><div><br></div><div>As I describe at <<a href="http://lists.cs.uiuc.edu/pipermail/llvmdev/2014-April/071921.html">http://lists.cs.uiuc.edu/pipermail/llvmdev/2014-April/071921.html</a>>, the fundamental design question of yaml2elf is deciding on a tradeoff between the subset of ELF files that can be represented and readability/modifiability/learnability of the textual format.</div><div><br></div><div>Whether or not it is worth teaching yaml2elf and elf2yaml about non-unique section names depends on how much the textual format needs to be changed (and in what way) vs. the degree of need for representing non-unique section names.</div><div><br></div><div>-- Sean Silva</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class=""><font color="#888888">
- Michael Spencer<br>
</font></span><div class=""><div class="h5">_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
</div></div></blockquote></div><br></div></div>