<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - --disassemble-symbols does not work for symbols defined in module assembly"
   href="https://bugs.llvm.org/show_bug.cgi?id=49135">49135</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>--disassemble-symbols does not work for symbols defined in module assembly
          </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>Windows NT
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>llvm-objdump
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>yuanfang.chen@sony.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>// asm.ll
target datalayout =
"e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

module asm ".global foo"
module asm ".equ foo, p1"

define internal i32 @p1(i32 %0) {
  %2 = add nsw i32 %0, 1
  ret i32 %2
}


<span class="quote">> llc -filetype=obj asm.ll -o asm.o
> llvm-nm asm.o</span >
0000000000000000 T foo
0000000000000000 t p1
<span class="quote">> llvm-objdump --disassemble-symbols=foo asm.o</span >

asm.o:  file format elf64-x86-64

<span class="quote">> llvm-objdump --disassemble-symbols=p1 asm.o</span >

asm.o:  file format elf64-x86-64


Disassembly of section .text:

0000000000000000 <p1>:
       0: 8d 47 01                      leal    1(%rdi), %eax
       3: c3                            retq</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>