<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:egor.suvorov@gmail.com" title="Egor Suvorov <egor.suvorov@gmail.com>"> <span class="fn">Egor Suvorov</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - -m option is not ignored when is immediately preceded by -o option"
   href="https://bugs.llvm.org/show_bug.cgi?id=52583">bug 52583</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>FIXED
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - -m option is not ignored when is immediately preceded by -o option"
   href="https://bugs.llvm.org/show_bug.cgi?id=52583#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - -m option is not ignored when is immediately preceded by -o option"
   href="https://bugs.llvm.org/show_bug.cgi?id=52583">bug 52583</a>
              from <span class="vcard"><a class="email" href="mailto:egor.suvorov@gmail.com" title="Egor Suvorov <egor.suvorov@gmail.com>"> <span class="fn">Egor Suvorov</span></a>
</span></b>
        <pre>Re-checking after GCC's response at
<a href="https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103362#c1">https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103362#c1</a>

Here is the last command that Clang runs on my machine:

"/usr/bin/ld" -z relro --hash-style=gnu --build-id --eh-frame-hdr -m elf_x86_64
-dynamic-linker /lib64/ld-linux-x86-64.so.2 -o -main
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/crt1.o
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/crti.o
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/crtbegin.o
-L/usr/bin/../lib/gcc/x86_64-linux-gnu/10
-L/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu
-L/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../lib64
-L/lib/x86_64-linux-gnu -L/lib/../lib64 -L/usr/lib/x86_64-linux-gnu
-L/usr/lib/../lib64 -L/usr/lib/x86_64-linux-gnu/../../lib64
-L/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../..
-L/usr/lib/llvm-10/bin/../lib -L/lib -L/usr/lib /tmp/a-cee2d8.o -lstdc++ -lm
-lgcc_s -lgcc -lc -lgcc_s -lgcc
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/crtend.o
/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/crtn.o

Looks like a correct behavior on Clang's part, so it looks like `ld` bug.
Resolving for now in favor of ld's bug report:
<a href="https://sourceware.org/bugzilla/show_bug.cgi?id=28619">https://sourceware.org/bugzilla/show_bug.cgi?id=28619</a></pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>