bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/17755] New: sh64-elf SEGV when stripping libraries


From: yselkowitz at cygwin dot com
Subject: [Bug binutils/17755] New: sh64-elf SEGV when stripping libraries
Date: Thu, 25 Dec 2014 07:39:50 +0000

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

            Bug ID: 17755
           Summary: sh64-elf SEGV when stripping libraries
           Product: binutils
           Version: 2.25
            Status: NEW
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: yselkowitz at cygwin dot com
              Host: x86_64-cygwin, x86_64-redhat-linux
            Target: sh64-elf
             Build: x86_64-cygwin, x86_64-redhat-linux

1) Build binutils-2.25 with --target=sh64-elf and install
2) Build gcc-4.9.2 with --target=sh64-elf --without-headers
3) 'sh64-elf-strip -g' the generated libgcc*.a SEGVs (but doing so to the
crt*.o works):

$ gdb --args .../sh64-elf/binutils/.libs/strip-new.exe -g
.../lib/gcc/sh64-elf/4.9.2/m5-64media/libgcc-4-300.a
[snip]
Reading symbols from .../sh64-elf/binutils/.libs/strip-new.exe...done.
(gdb) r
Starting program: .../sh64-elf/binutils/.libs/strip-new.exe -g
.../lib/gcc/sh64-elf/4.9.2/m5-64media/libgcc-4-300.a
[New Thread 13728.0x42d0]
[New Thread 13728.0x434c]

Program received signal SIGSEGV, Segmentation fault.
sh_elf64_copy_private_data_internal (ibfd=0x6000505a0, obfd=0x600055b30)
    at .../binutils-2.25/bfd/elf64-sh64.c:2281
2281                    o_shdrp[oIndex]->sh_flags |= SHF_SH5_ISA32;
(gdb) bt
#0  sh_elf64_copy_private_data_internal (ibfd=0x6000505a0, obfd=0x600055b30)
    at .../binutils-2.25/bfd/elf64-sh64.c:2281
#1  0x0000000100403d04 in copy_object (address@hidden,
    address@hidden, address@hidden)
    at .../binutils-2.25/binutils/objcopy.c:2211
#2  0x00000001004041e1 in copy_archive (ibfd=<optimized out>,
    obfd=<optimized out>, output_target=<optimized out>,
    force_output_target=<optimized out>, input_arch=0x0)
    at .../binutils-2.25/binutils/objcopy.c:2369
#3  0x0000000100404830 in copy_file (input_filename=<optimized out>,
    address@hidden
".../lib/gcc/sh64-elf/4.9.2/m5-64media/stX8sIQK",
    address@hidden,
    output_target=0x1004e5ea8 <sh64_elf64_le_vec+840> "elf64-sh64",
    address@hidden, address@hidden)
    at .../binutils-2.25/binutils/objcopy.c:2530
#4  0x00000001004ab450 in strip_main (argv=<optimized out>,
    argc=<optimized out>)
    at .../binutils-2.25/binutils/objcopy.c:3399
#5  main (argc=3, argv=0xc2ca80)
    at .../binutils-2.25/binutils/objcopy.c:4403

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