[LLVMbugs] [Bug 9622] New: [Cygming] Emission of linkonce_odr {llvm_unreachable} crashes GNU binutils

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Apr 4 04:54:20 PDT 2011


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

           Summary: [Cygming] Emission of linkonce_odr {llvm_unreachable}
                    crashes GNU binutils
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: geek4civic at gmail.com
                CC: llvmbugs at cs.uiuc.edu
            Blocks: 8390


; foo.ll
; W/O linkonce_odr, no one crashes.
define linkonce_odr void @foo() noreturn nounwind {
  unreachable
}

# foo.s
        .def     _foo;
        .scl    2;
        .type   32;
        .endef
        .section        .text$foo,"xr"
        .linkonce discard
        .globl  _foo
        .align  16, 0x90
_foo:                                   # @foo
Lllvm$workaround$fake$stub$_foo:
# BB#0:
#[EOF]

$ llc foo.ll
$ as foo.s -o foo.o
$ objdump -x foo.o

foo.o crashes Cygwin-17's {objdump|ld|ar}-2.20.51.20100410,
msysgit's BFD-2.19.1.

BFD: BFD (GNU Binutils) 2.20.51.20100410 internal error, aborting at
/netrel/src/binutils-2.20.51-2/bfd/coffcode.h line 954 in handle_COMDAT

BFD: Please report this bug.

(mingw-w64's 2.21.51.20101129 does not crash)
  3 .text$foo     00000000  00000000  00000000  00000000  2**4
                  ALLOC, LOAD, READONLY, CODE, LINK_ONCE_DISCARD

Shall we make workaround for zero-size section?

-- 
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