[llvm-bugs] [Bug 32584] New: llvm-cov isn't able to process files on Windows because of too long section names

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Apr 9 13:36:02 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=32584

            Bug ID: 32584
           Summary: llvm-cov isn't able to process files on Windows
                    because of too long section names
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: adamf88 at gmail.com
                CC: llvm-bugs at lists.llvm.org

File llvm\include\llvm\ProfileData\InstrProfData.inc defines several section
names like:

INSTR_PROF_DATA_SECT_NAME __llvm_prf_data
INSTR_PROF_NAME_SECT_NAME __llvm_prf_names
...

llvm-cov looks for these section names within .exe file.

E.g in function loadBinaryFormat in module LLVMCoverage we are searching for
INSTR_PROF_NAME_SECT_NAME ( getInstrProfNameSectionName function ).
Unfortunately this name can't be found in the exe file, because this section
was truncated to 8 bytes.

objdump displays:
        1000 __llvm_p
        2000 __llvm_p

On Windows maximum section name length is 8 bytes. More details is here: 
( https://msdn.microsoft.com/en-us/library/ms809762.aspx - Table 6.
IMAGE_SECTION_HEADER Formats ).

Finally it is not possible to display coverage .profdata file using clang-cov.

-- 
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/20170409/5d6b905c/attachment.html>


More information about the llvm-bugs mailing list