<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 - Sysv format uses different rules to GNU size for which sections to include"
   href="https://bugs.llvm.org/show_bug.cgi?id=42934">42934</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Sysv format uses different rules to GNU size for which sections to include
          </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>normal
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>llvm-size
          </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>bigcheesegs@gmail.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I was playing around with llvm-size to see how good a fit it is with GNU size,
and discovered that its sysv output format does not match GNU's because it uses
different rules to GNU size's rules.

llvm-size's current rules are simply to omit any SHT_NULL, SHT_SYMTAB,
SHT_STRTAB, SHT_REL, and SHT_RELA sections. However, I observed that GNU size
sometimes includes at least relocation and string table sections. For example,
the .dynstr, .rela.plt and .rela.dyn sections are all included. I tried
generating an artificial input using yaml2obj to exercise this and have not
been able to identify the rules used, so I'm filing this bug for now rather
than providing a patch.

Likely whoever implements this will need to inspect the GNU size source code to
determine its rules.</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>