<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - clang option -mabi (and -cc1 -meabi) has no effect when cross-compiling to ARM"
   href="https://llvm.org/bugs/show_bug.cgi?id=26838">26838</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang option -mabi (and -cc1 -meabi) has no effect when cross-compiling to ARM
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.8
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Frontend
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>david.cab+llvmbug@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>It is impossible to compile an arm binary with an EABI other than EABI 5.


Steps to reproduce:

  touch main.c
  clang  -target arm---elf -mabi=apcs-gnu -msoft-float -c main.c

Other options include:

  clang -cc1 -triple arm -meabi gnu -target-abi apcs-gnu -emit-obj main.c

  clang -cc1 -triple arm -meabi gnu -emit-obj main.c

  clang -cc1 -triple arm -meabi 4 -emit-obj main.c


Actual Results: 

An EABI5 object is created. "file main.o" results in

  main.o: ELF 32-bit LSB relocatable, ARM, EABI5 version 1 (SYSV), not stripped

Expected Results:

An object file with the appropriate EABI (other than 5) should have been
generated.

Build Date & Platform:

   Tested with Clang 3.7.1 and Clang 3.8.0-rc3 precompiled binaries for Ubuntu
15.10 x86_64 available at llvm.org.</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>