https://bugs.llvm.org/show_bug.cgi?id=42934
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: unassignedb...@nondot.org
Reporter: jh7370.2...@my.bristol.ac.uk
CC: bigchees...@gmail.com, llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs