Not linking 32-bit and 64-bit objects

Peter Bergner bergner@brule.borg.umn.edu
Tue Mar 12 06:00:00 GMT 2002


On Tue, Mar 12, 2002 at 11:40:18PM +1030, Alan Modra wrote:
: On Tue, Mar 12, 2002 at 01:20:38PM +0100, Andreas Jaeger wrote:
: > 	* cpu-i386.c (i386_compatible): New.  Use it instead of
: > 	bfd_default_compatible.
: 
: OK.

Alan, this seems to be a problem with ppc32 and ppc64 as well.
Do we need the same fix???

Peter

--
Peter Bergner
Linux PPC64 Kernel & GLIBC Development
IBM Rochester, MN


begna% file foo.o
foo.o: ELF 32-bit MSB relocatable, PowerPC or cisco 4500, version 1, not stripped
begna% file bar.o 
bar.o: ELF 64-bit MSB relocatable, cisco 7500, version 1, not stripped
begna% /opt/ppc64-20020307/bin/powerpc64-linux-gcc -o foo foo.o bar.o 
collect2: ld terminated with signal 11 [Segmentation fault], core dumped
/opt/ppc64-20020307/lib/gcc-lib/powerpc64-linux/3.0.5/../../../../powerpc64-linux/bin/ld: foo.o: invalid string offset 60 >= 31 for section `.strtab'
/opt/ppc64-20020307/lib/gcc-lib/powerpc64-linux/3.0.5/../../../../powerpc64-linux/bin/ld: foo.o: invalid string offset 6713199 >= 31 for section `.strtab'



More information about the Binutils mailing list