<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 - Improve --string-dump invalid section error message"
   href="https://bugs.llvm.org/show_bug.cgi?id=40630">40630</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Improve --string-dump invalid section error message
          </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-readobj
          </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>jh7370.2008@my.bristol.ac.uk, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Currently, if you do --string-dump (or potentially other similar options), with
an invalid input (e.g. an out-of-range section index or section that does not
exist), llvm-readobj produces the error "Error reading file: invalid section
reference":

C:\Work>llvm-readobj --string-dump=does_not_exist foo.o
Format: ELF64-x86-64
Arch: x86_64
AddressSize: 64bit
LoadName:

Error reading file: invalid section reference.
C:\Work>

There are two problems with this error message. Firstly, it incorrectly claims
that there was a problem reading the file, where really the problem was a bad
input. Secondly, the error message makes no reference to the source of the
reference or why it is bad. Both these aspects should be improved.</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>