<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 --- - [ARM64] Assertion `(!Target.getSymA() || Target.getSymA()->getKind() == MCSymbolRefExpr::VK_None) && "Should only be expression-level modifiers here"' failed."
   href="https://llvm.org/bugs/show_bug.cgi?id=28996">28996</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[ARM64] Assertion `(!Target.getSymA() || Target.getSymA()->getKind() == MCSymbolRefExpr::VK_None) && "Should only be expression-level modifiers here"' failed.
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>tools
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </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>gccas
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>Artyom.Skrobov@arm.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>$ echo "__symbol: adrp x0, __symbol@GOTPAGE" | clang --target=arm64 -c -x
assembler -
clang-4.0: lib/Target/AArch64/MCTargetDesc/AArch64ELFObjectWriter.cpp:58:
virtual unsigned int
{anonymous}::AArch64ELFObjectWriter::getRelocType(llvm::MCContext&, const
llvm::MCValue&, const llvm::MCFixup&, bool) const: Assertion
`(!Target.getSymA() || Target.getSymA()->getKind() == MCSymbolRefExpr::VK_None)
&& "Should only be expression-level modifiers here"' failed.
#0 0x000000000327a1ba llvm::sys::PrintStackTrace(llvm::raw_ostream&)
lib/Support/Unix/Signals.inc:402:0
#1 0x000000000327a57c PrintStackTraceSignalHandler(void*)
lib/Support/Unix/Signals.inc:470:0
#2 0x00000000032788b8 llvm::sys::RunSignalHandlers()
lib/Support/Signals.cpp:44:0
#3 0x0000000003279b2c SignalHandler(int) lib/Support/Unix/Signals.inc:256:0
#4 0x00007f1316461cb0 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0xfcb0)
#5 0x00007f1315062425 gsignal
/build/buildd/eglibc-2.15/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:64:0
#6 0x00007f1315065b8b abort /build/buildd/eglibc-2.15/stdlib/abort.c:93:0
#7 0x00007f131505b0ee __assert_fail_base
/build/buildd/eglibc-2.15/assert/assert.c:55:0
#8 0x00007f131505b192 (/lib/x86_64-linux-gnu/libc.so.6+0x2f192)
#9 0x0000000001b63247 (anonymous
namespace)::AArch64ELFObjectWriter::getRelocType(llvm::MCContext&,
llvm::MCValue const&, llvm::MCFixup const&, bool) const
lib/Target/AArch64/MCTargetDesc/AArch64ELFObjectWriter.cpp:60:0
#10 0x0000000002f52ab5 (anonymous
namespace)::ELFObjectWriter::getRelocType(llvm::MCContext&, llvm::MCValue
const&, llvm::MCFixup const&, bool) const lib/MC/ELFObjectWriter.cpp:134:0
#11 0x0000000002f543b0 (anonymous
namespace)::ELFObjectWriter::recordRelocation(llvm::MCAssembler&,
llvm::MCAsmLayout const&, llvm::MCFragment const*, llvm::MCFixup const&,
llvm::MCValue, bool&, unsigned long&) lib/MC/ELFObjectWriter.cpp:688:0
#12 0x0000000002f70e90 llvm::MCAssembler::handleFixup(llvm::MCAsmLayout const&,
llvm::MCFragment&, llvm::MCFixup const&) lib/MC/MCAssembler.cpp:630:0
#13 0x0000000002f716da llvm::MCAssembler::layout(llvm::MCAsmLayout&)
lib/MC/MCAssembler.cpp:708:0
#14 0x0000000002f71858 llvm::MCAssembler::Finish() lib/MC/MCAssembler.cpp:721:0
#15 0x0000000002fb09eb llvm::MCObjectStreamer::FinishImpl()
lib/MC/MCObjectStreamer.cpp:547:0
#16 0x0000000002f97f77 llvm::MCELFStreamer::FinishImpl()
lib/MC/MCELFStreamer.cpp:631:0
#17 0x0000000002fb7c9a llvm::MCStreamer::Finish() lib/MC/MCStreamer.cpp:679:0
#18 0x0000000002fde33c (anonymous namespace)::AsmParser::Run(bool, bool)
lib/MC/MCParser/AsmParser.cpp:816:0
#19 0x000000000194e4ea ExecuteAssembler((anonymous
namespace)::AssemblerInvocation&, clang::DiagnosticsEngine&)
tools/clang/tools/driver/cc1as_main.cpp:425:0
#20 0x000000000194eb8a cc1as_main(llvm::ArrayRef<char const*>, char const*,
void*) tools/clang/tools/driver/cc1as_main.cpp:505:0
#21 0x000000000193c175 ExecuteCC1Tool(llvm::ArrayRef<char const*>,
llvm::StringRef) tools/clang/tools/driver/driver.cpp:301:0
#22 0x000000000193caef main tools/clang/tools/driver/driver.cpp:380:0
#23 0x00007f131504d76d __libc_start_main
/build/buildd/eglibc-2.15/csu/libc-start.c:258:0
#24 0x00000000019399d9 _start (clang-4.0+0x19399d9)
Stack dump:
0.    Program arguments: clang-4.0 -cc1as -triple arm64 -filetype obj
-main-file-name - -target-cpu generic -target-feature +neon
-fdebug-compilation-dir /home/artskr01 -dwarf-debug-producer clang version
4.0.0  -dwarf-version=4 -mrelocation-model static -o -.o - 
clang-4.0: error: unable to execute command: Aborted
clang-4.0: error: clang integrated assembler command failed due to signal (use
-v to see invocation)
clang version 4.0.0 
Target: arm64
Thread model: posix</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>