<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 - Don't use section name for section start symbol if later symbol exists"
   href="https://bugs.llvm.org/show_bug.cgi?id=41946">41946</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Don't use section name for section start symbol if later symbol exists
          </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>jh7370.2008@my.bristol.ac.uk
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>llvm-objdump currently prints the section name as a symbol label for the first
address in a section being disassembled, if there are no other symbols
targeting the location. However, GNU objdump prints an expression relative to
the first symbol in the section:

objdump -d test.o

test.o:     file format elf64-x86-64


Disassembly of section .text:

0000000000001000 <sym-0x1>:
    1000:       90                      nop

0000000000001001 <sym>:
    1001:       90                      nop

llvm-objdump  -d test.o

test.o:   file format ELF64-x86-64


Disassembly of section .text:

0000000000001000 .text:
    1000: 90                            nop

0000000000001001 sym:
    1001: 90                            nop

We should consider doing what GNU does here. The section name is not useful,
since it's the same as in the "Disassembly of section" and could be confused
with an actual section symbol at that location.</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>