<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Mar 21, 2016 at 8:33 PM, James Molloy <span dir="ltr"><<a href="mailto:james@jamesmolloy.co.uk" target="_blank">james@jamesmolloy.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">But you're surely not suggesting that lld will segfault as an error handling mode in production?<br></blockquote><div><br></div><div>The document clearly states that (a) it is user's responsibility to give sane object files, and (b) a corrupted file may cause a fatal error or SEGV.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You say this was decided in a thread recently- could you please point me at that? I find this really hard to believe. <br></blockquote><div><br></div><div>Please find it yourself, that was a long thread. The current decision was not made lightly, so please respect that and take your time to understand the situation.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Cheers,<br><br>James<div class="HOEnZb"><div class="h5"><br><div class="gmail_quote"><div dir="ltr">On Mon, 21 Mar 2016 at 19:28, Rui Ueyama <<a href="mailto:ruiu@google.com" target="_blank">ruiu@google.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Mar 21, 2016 at 8:25 PM, James Molloy <span dir="ltr"><<a href="mailto:james@jamesmolloy.co.uk" target="_blank">james@jamesmolloy.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span>> Also, if it can segfault for some pathetic input<div><br></div></span><div>Surely that's a bug though, not seriously designed behaviour?</div></div></blockquote><div><br></div></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>No. That is a design choice.</div></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div class="gmail_quote"><div dir="ltr">On Mon, 21 Mar 2016 at 19:24 Rui Ueyama <<a href="mailto:ruiu@google.com" target="_blank">ruiu@google.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">We do not enable exceptions and longjmp is not safe. Also, if it can segfault for some pathetic input, "it longjmps in most cases" doesn't help people who wants 100% guarantee like you.</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 21, 2016 at 8:21 PM, James Molloy <span dir="ltr"><<a href="mailto:james@jamesmolloy.co.uk" target="_blank">james@jamesmolloy.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">If it can exit, why can't it longjmp back to a library consumer at least?</div><div><div><br><div class="gmail_quote"><div dir="ltr">On Mon, 21 Mar 2016 at 19:20 Rui Ueyama <<a href="mailto:ruiu@google.com" target="_blank">ruiu@google.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Mar 21, 2016 at 8:16 PM, James Molloy <span dir="ltr"><<a href="mailto:james@jamesmolloy.co.uk" target="_blank">james@jamesmolloy.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">> Correct<div><br></div><div>Out of interest, how does LLD itself handle error reporting when invoked from the command line, and how does it avoid segfaulting in that case?</div></div></blockquote><div><br></div></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>It generally reports an error and exit, or in rare circumstances it just segfaults.</div></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Cheers,</div><div><br></div><div>James</div></div><div><div><br><div class="gmail_quote"><div dir="ltr">On Mon, 21 Mar 2016 at 19:14 Rafael Espíndola <<a href="mailto:rafael.espindola@gmail.com" target="_blank">rafael.espindola@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 21 March 2016 at 15:10, James Molloy <<a href="mailto:james@jamesmolloy.co.uk" target="_blank">james@jamesmolloy.co.uk</a>> wrote:<br>
> Well sure, it's unlikely, but how many consumers can make that sort of<br>
> guarantee? And if a consumer can't guarantee the integrity of the ELF file<br>
> they have no choice but not to use LLD, or to fork before using it.<br>
<br>
Correct.<br>
<br>
Cheers,<br>
Rafael<br>
</blockquote></div>
</div></div></blockquote></div></div></div></blockquote></div>
</div></div></blockquote></div><br></div>
</blockquote></div>
</div></div></blockquote></div></div></div></blockquote></div>
</div></div></blockquote></div><br></div></div>