bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/23653] New: ld SIGSEGVs when attempts to link sparc object with


From: slyfox at inbox dot ru
Subject: [Bug ld/23653] New: ld SIGSEGVs when attempts to link sparc object with x86_64 library (--enable-targets=all): assertion fail ../../binutils-gdb/bfd/elfxx-sparc.c:1218
Date: Thu, 13 Sep 2018 22:44:52 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=23653

            Bug ID: 23653
           Summary: ld SIGSEGVs when attempts to link sparc object with
                    x86_64 library (--enable-targets=all): assertion fail
                    ../../binutils-gdb/bfd/elfxx-sparc.c:1218
           Product: binutils
           Version: 2.32 (HEAD)
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: slyfox at inbox dot ru
  Target Milestone: ---

Created attachment 11245
  --> https://sourceware.org/bugzilla/attachment.cgi?id=11245&action=edit
binutils-multitarget-sparc.tar.gz

Original failure was discovered when cross-compiling lua: build system
accidentally linked sparc objects into x86_64 libc:

    $ ${HOME}/dev/git/binutils-gdb-native-all-targets/ld/ld-new --eh-frame-hdr
-m elf_x86_64 -shared -o bug.so.5 bug.o ./libc.so.6 ./crtendS.o
    /home/slyfox/dev/git/binutils-gdb-native-all-targets/ld/ld-new: BFD (GNU
Binutils) 2.31.51.20180913 assertion fail
../../binutils-gdb/bfd/elfxx-sparc.c:1218
    Segmentation fault (core dumped)

Built binutils from master as:
$ ../binutils-gdb/configure --enable-targets=all --disable-werror

Object files are attached. Note: only bug.o is a sparc object.

$ file bug.o ./libc.so.6 ./crtendS.o
bug.o:       ELF 32-bit MSB relocatable, SPARC, version 1 (SYSV), not stripped
./libc.so.6: ELF 64-bit LSB pie executable x86-64, version 1 (GNU/Linux),
dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux
3.2.0, stripped
./crtendS.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]