~> ld -g atom_add.o ctd.inst.extra.o ctd.inst.o -o ctd ld: BFD 2.16.1 internal error, aborting at /scratch/portage/tmp/portage/sys-devel/binutils-2.16.1-r3/work/binutils-2.16.1/bfd/merge.c line 841 in _bfd_merged_section_offset ld: Please report this bug. Platform info: - P 4 1.80GHz - Linux version 2.6.22.5 (root@) (gcc version 4.1.1 (Gentoo 4.1.1-r3)) - gcc -v Using built-in specs. Target: i686-pc-linux-gnu Configured with: /scratch/portage/tmp/portage/sys-devel/gcc-4.1.1-r3/work/gcc-4.1.1/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.1.1 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/g++-v4 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --disable-nls --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-libunwind-exceptions --disable-multilib --disable-libmudflap --disable-libssp --enable-java-awt=gtk --enable-languages=c,c++,java,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu Thread model: posix gcc version 4.1.1 (Gentoo 4.1.1-r3) Reproducible: Always Steps to Reproduce: 1.make #to generate atom_add.o; the actual command "gcc -r -g -static -Wl,--verbose <files> -o atom_add.o -lm" 2. gcc to generate the other two .o files; 3.ld -g atom_add.o cd.inst.extra.o cd.inst.o -o cd Actual Results: ld: BFD 2.16.1 internal error, aborting at /scratch/portage/tmp/portage/sys-devel/binutils-2.16.1-r3/work/binutils-2.16.1/bfd/merge.c line 841 in _bfd_merged_section_offset ld: Please report this bug. Expected Results: Generate an executable 'ctd' If I replace the "atom_add.o" file with one generated from an earlier gcc version (gcc-3.4.5), the 'ld' command executes fine.
binutils-2.18 is stable, use it