<html>
    <head>
      <base href="http://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 --- - [MC][Aarch64] -no-exec-stack causes crash"
   href="http://llvm.org/bugs/show_bug.cgi?id=21988">21988</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[MC][Aarch64] -no-exec-stack causes crash
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

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

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

        <tr>
          <th>OS</th>
          <td>Windows NT
          </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>new bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>weimingz@codeaurora.org
          </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>cat test.s 
.global foo
.type foo,%function

foo:
    mov     x0,x1
    ret


llvm-mc   ./test.s -arch=aarch64 -no-exec-stack -filetype obj -o test.o
llvm-mc: llvm/include/llvm/MC/MCStreamer.h:352: virtual void
llvm::MCStreamer::SwitchSection(const llvm::MCSection*, const llvm::MCExpr*):
Assertion `Section && "Cannot switch to a null section!"' failed.
#0 0x593582 llvm::sys::PrintStackTrace(_IO_FILE*)
(/install/bin/llvm-mc+0x593582)
#1 0x591891 SignalHandler(int) (/install/bin/llvm-mc+0x591891)
#2 0x7ff6e2d4c8f0 __restore_rt (/lib/libpthread.so.0+0xf8f0)
#3 0x7ff6e202ab25 gsignal
/build/buildd/eglibc-2.11.1/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:64:0
#4 0x7ff6e202e670 abort /build/buildd/eglibc-2.11.1/stdlib/abort.c:94:0
#5 0x7ff6e20239f1 __assert_fail
/build/buildd/eglibc-2.11.1/assert/assert.c:81:0
#6 0x450e1e
(/prj/llvm-arm/home/nightly/install/community-mainline/cross/2014-12-18/bin/llvm-mc+0x450e1e)
#7 0x40d40c main (/install/bin/llvm-mc+0x40d40c)
#8 0x7ff6e2015c4d __libc_start_main
/build/buildd/eglibc-2.11.1/csu/libc-start.c:258:0
#9 0x40e84d _start (/install/bin/llvm-mc+0x40e84d)
Stack dump:
0.    Program arguments: llvm-mc ./test.s -arch=aarch64 -no-exec-stack
-filetype obj -o test.o 
[1]    31130 abort      llvm-mc ./test.s -arch=aarch64 -no-exec-stack -filetype
obj -o test.o</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>