[LLVMbugs] [Bug 8335] New: MC-COFF: Wrong section header with module asm ".text"

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Oct 8 04:22:55 PDT 2010


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

           Summary: MC-COFF: Wrong section header with module asm ".text"
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Windows XP
            Status: ASSIGNED
          Severity: normal
          Priority: P
         Component: Backend: X86
        AssignedTo: bigcheesegs at gmail.com
        ReportedBy: geek4civic at gmail.com
                CC: llvmbugs at cs.uiuc.edu


foo.ll:

module asm ".text"
module asm "_foo:"
module asm "ret"

$ llc -filetype=obj foo.ll

$ objdump -x foo.o
BFD: asm.o (.text): Section flag STYP_DSECT (0x1) ignored
BFD: asm.o (.text): Section flag STYP_DSECT (0x1) ignored
C:\msysgit\mingw\bin\objdump.exe: asm.o: File format not recognized

  Sections                 = [
    1 = {
      Name                     = .text
      VirtualSize              = 0
      VirtualAddress           = 0
      SizeOfRawData            = 1
      PointerToRawData         = 0x3C
      PointerToRelocations     = 0x0
      PointerToLineNumbers     = 0x0
      NumberOfRelocations      = 0
      NumberOfLineNumbers      = 0
      Charateristics           = 0x100001
        IMAGE_SCN_ALIGN_1BYTES
      SectionData              =
        C3                                                |.|

      Relocations              = None
    }
  ]

Module asm is used in X86JITInfo.cpp.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list