[llvm-bugs] [Bug 42934] New: Sysv format uses different rules to GNU size for which sections to include

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Aug 8 09:14:12 PDT 2019


            Bug ID: 42934
           Summary: Sysv format uses different rules to GNU size for which
                    sections to include
           Product: tools
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: llvm-size
          Assignee: unassignedbugs at nondot.org
          Reporter: jh7370.2008 at my.bristol.ac.uk
                CC: bigcheesegs at gmail.com, llvm-bugs at lists.llvm.org

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.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190808/02c5e529/attachment-0001.html>

More information about the llvm-bugs mailing list