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: [email protected]
          Reporter: [email protected]
                CC: [email protected]

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.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to