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

Bug#372557: gcc-3.3: segmentation fault of ld when compiling binary file with gcc



Package: gcc-3.3
Version: 1:3.3.5-13
Severity: minor


Compiling a binary file (which is not possible) cause ld to segmentation
fault.

$ gcc -v
Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.5/specs
Configured with: ../src/configure -v
--enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr
--mandir=/usr/share/man --infodir=/usr/share/info
--with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared
--enable-__cxa_atexit --with-system-zlib --enable-nls
--without-included-gettext --enable-clocale=gnu --enable-debug
--enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc
i486-linux
Thread model: posix
gcc version 3.3.5 (Debian 1:3.3.5-13)
$ make
cc -pg -fprofile-arcs -ftest-coverage hello.c -o hello
$ gcc hello
collect2: ld terminated with signal 11 [Segmentation fault]
hello(.rodata+0x0): multiple definition of `_fp_hw'
/usr/lib/gcc-lib/i486-linux/3.3.5/../../../crt1.o(.rodata+0x0):../sysdeps/i386/elf/start.S:65:
first defined here
hello(.init+0x0): In function `_init':
/disk/hdc2/glibc/debian-build/glibc_2.3.5-6.build1/glibc-2.3.5/build-tree/i386-libc/csu/crti.S:36:
multiple definition of `_init'
/usr/lib/gcc-lib/i486-linux/3.3.5/../../../crti.o(.init+0x0):/disk/hdc2/glibc/debian-build/glibc_2.3.5-6.build1/glibc-2.3.5/build-tree/i386-libc/csu/crti.S:12:
first defined here
hello(.text+0x0): In function `_start':
.../sysdeps/i386/elf/start.S:65: multiple definition of `_start'
/usr/lib/gcc-lib/i486-linux/3.3.5/../../../crt1.o(.text+0x0):../sysdeps/i386/elf/start.S:65:
first defined here
hello(.fini+0x0): In function `_fini':
/disk/hdc2/glibc/debian-build/glibc_2.3.5-6.build1/glibc-2.3.5/build-tree/i386-libc/csu/crti.S:52:
multiple definition of `_fini'
/usr/lib/gcc-lib/i486-linux/3.3.5/../../../crti.o(.fini+0x0): first
defined here
hello(.got+0x0): multiple definition of `_GLOBAL_OFFSET_TABLE_'
/usr/lib/gcc-lib/i486-linux/3.3.5/../../../crt1.o(.got.plt+0x0):../sysdeps/i386/elf/start.S:65:
first defined here
hello(.rodata+0x4): multiple definition of `_IO_stdin_used'
/usr/lib/gcc-lib/i486-linux/3.3.5/../../../crt1.o(.rodata+0x4):../sysdeps/i386/elf/start.S:71:
first defined here
hello(.data+0x0): In function `__data_start':
: multiple definition of `__data_start'
/usr/lib/gcc-lib/i486-linux/3.3.5/../../../crt1.o(.data+0x0):../sysdeps/i386/elf/start.S:65:
first defined here
/usr/lib/gcc-lib/i486-linux/3.3.5/../../../crt1.o(.dynamic+0x0):../sysdeps/i386/elf/start.S:65:
multiple definition of `_DYNAMIC'
hello(.dynamic+0x0): first defined here
$


-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.15.4
Locale: LANG=hu_HU, LC_CTYPE=hu_HU (charmap=ISO-8859-2)

Versions of packages gcc-3.3 depends on:
ii  binutils                      2.15-6     The GNU assembler, linker and bina
ii  cpp-3.3                       1:3.3.5-13 The GNU C preprocessor
ii  gcc-3.3-base                  1:3.3.5-13 The GNU Compiler Collection (base 
ii  libc6                         2.3.5-6    GNU C Library: Shared libraries an
ii  libgcc1                       1:4.0.1-2  GCC support library

-- no debconf information

Attachment: hello-gcov.tar.bz2
Description: BZip2 compressed data


Reply to: