<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 --- - Regression(r236060): Building .S files in android asan mode is broken"
   href="https://llvm.org/bugs/show_bug.cgi?id=23375">23375</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Regression(r236060): Building .S files in android asan mode is broken
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>All
          </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>LLVM Codegen
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>nicolasweber@gmx.de
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Repro:

$ curl
'<a href="https://boringssl.googlesource.com/boringssl/+/master/crypto/chacha/chacha_vec_arm.S?format=TEXT">https://boringssl.googlesource.com/boringssl/+/master/crypto/chacha/chacha_vec_arm.S?format=TEXT</a>'
| base64 --decode > tmp.S

$ path/to/clang    -march=armv7-a -mtune=generic-armv7-a -mfpu=vfpv3-d16
-mfloat-abi=softfp -mthumb -no-integrated-as
-B/path/to/third_party/android_tools/ndk//toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin
-marm  -fsanitize=address -fsanitize=leak 
--sysroot=path/to/third_party/android_tools/ndk//platforms/android-14/arch-arm 
-target arm-linux-androideabi -mllvm -asan-globals=0    -c tmp.S -o tmp.o

$ path/to/clang -shared -fPIC
-B/path/to/third_party/binutils/Linux_x64/Release/bin -fuse-ld=gold
-fsanitize=address -fsanitize=leak  
--sysroot=path/to/third_party/android_tools/ndk//platforms/android-14/arch-arm
-nostdlib  -target arm-linux-androideabi tmp.o

Used to work. Now:

error:
/usr/local/google/home/thakis/src/llvm-build/bin/../lib/clang/3.7.0/lib/linux/libclang_rt.asan-arm-android.so
uses VFP register arguments, output does not

(libclang_rt.asan-arm-android.so was built with the same clang as the output
files, but possibly with different fp flags.)</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>