<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>This breaks lld on OpenBSD. The command line parameter was taken
      from our linker which we've been using for almost 6 years.<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 2/16/2018 11:10 PM, Rui Ueyama
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAJENXgs0DnEkoOhWVnOzp6_o9XEO0bCKJgQj9ptAckrm5go-HA@mail.gmail.com">
      <div dir="ltr">If you give "-nopie" (with single leading hyphen)
        to gold, it looks like gold interprets it as "-n -o pie". So, it
        doesn't print out any error message, and it silently sets the
        output file name to "pie", which is I think worse than reporting
        an error on "-nopie".</div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Fri, Feb 16, 2018 at 7:59 PM, Rui
          Ueyama <span dir="ltr"><<a href="mailto:ruiu@google.com"
              target="_blank" moz-do-not-send="true">ruiu@google.com</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">Can you explain why you think so?
              <div><br>
              </div>
              <div>
                <div>$ ld.gold --no-pie</div>
                <div>ld.gold: fatal error: no input files</div>
                <div><br>
                </div>
                <div>$ ld.gold --nopie</div>
                <div>ld.gold: --nopie: unknown option</div>
                <div>ld.gold: use the --help option for usage
                  information</div>
                <div><br>
                </div>
                <div>$ ld.bfd --no-pie</div>
                <div>ld.bfd: unrecognized option '--no-pie'</div>
                <div>ld.bfd: use the --help option for usage information</div>
                <div><br>
                </div>
                <div>$ ld.bfd --nopie</div>
                <div>ld.bfd: unrecognized option '--nopie'</div>
                <div>ld.bfd: use the --help option for usage information</div>
              </div>
            </div>
            <div class="HOEnZb">
              <div class="h5">
                <div class="gmail_extra"><br>
                  <div class="gmail_quote">On Fri, Feb 16, 2018 at 7:55
                    PM, Brad Smith via Phabricator <span dir="ltr"><<a
                        href="mailto:reviews@reviews.llvm.org"
                        target="_blank" moz-do-not-send="true">reviews@reviews.llvm.org</a>></span>
                    wrote:<br>
                    <blockquote class="gmail_quote" style="margin:0 0 0
                      .8ex;border-left:1px #ccc solid;padding-left:1ex">brad
                      added a comment.<br>
                      Herald added a subscriber: arichardson.<br>
                      <br>
                      This was NOT a typo.<br>
                      <div class="m_3877545095905389461HOEnZb">
                        <div class="m_3877545095905389461h5"><br>
                          <br>
                          Repository:<br>
                            rLLD LLVM Linker<br>
                          <br>
                          <a href="https://reviews.llvm.org/D42825"
                            rel="noreferrer" target="_blank"
                            moz-do-not-send="true">https://reviews.llvm.org/D4282<wbr>5</a><br>
                          <br>
                          <br>
                          <br>
                        </div>
                      </div>
                    </blockquote>
                  </div>
                  <br>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>