[LLVMbugs] [Bug 18308] New: Emitting an obj file using TargetMachine::addPassesToEmitFile (passManager, formattedStream, TargetMachine::CGFT_ObjectFile) creates a broken COFF object file

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Dec 22 08:27:45 PST 2013


http://llvm.org/bugs/show_bug.cgi?id=18308

            Bug ID: 18308
           Summary: Emitting an obj file using
                    TargetMachine::addPassesToEmitFile (passManager,
                    formattedStream, TargetMachine::CGFT_ObjectFile)
                    creates a broken COFF object file
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: X86
          Assignee: unassignedbugs at nondot.org
          Reporter: d.albuschat at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 11772
  --> http://llvm.org/bugs/attachment.cgi?id=11772&action=edit
Program that creates a broken COFF object file

I'm using the attached program to create an .obj file on Windows 8.1.
llvm and the test program are compiled with VS 2013.
I've integrated compiler-rt, clang and lld into my llvm checkout, if that
matters. Revision of llvm is 197877, as of Sunday, 22nd December at 11:23.

The program creates an obj file, but hat file is broken.
Here's what dumpbin says:

> dumpbin llvmPlaygroundDoWhile.obj
Microsoft (R) COFF/PE Dumper Version 11.00.60610.1
Copyright (C) Microsoft Corporation.  All rights reserved.


Dump of file llvmPlaygroundDoWhile.obj

File Type: COFF OBJECT
llvmPlaygroundDoWhile.obj : warning LNK4040: Beschädigte Zeichenfolgentabelle
(Größe); Zeichenfolgentabelle wird ignoriert.
LINK : fatal error LNK1235: Beschädigte oder ungültige COFF-Symboltabelle.

Sorry for the German output. It says something like:
Damaged symboltable (size); Symboltable will be ignored.
LNK1235: Damaged or invalid COFF-Symboltable.

-- 
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/20131222/8cc66f2d/attachment.html>


More information about the llvm-bugs mailing list