This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Not linking 32-bit and 64-bit objects


Jakub Jelinek <jakub@redhat.com> writes:

> It is not working properly.
> It gives an error message, but then crashes anyway, e.g.:
> $ gcc -m64 -c helloworld.c
> $ gcc -o helloworld helloworld.o
> /usr/bin/ld: warning: sparc:v9 architecture of input file `helloworld.o' is incompatible with sparc output
> /usr/bin/ld: BFD 2.11.93.0.2 20020207 assertion fail elflink.h:2817
> helloworld.o: In function `main':
> helloworld.o(.text+0x0): relocation truncated to fit: R_SPARC_DISP8 *UND*
> collect2: ld returned 1 exit status
> $ gcc -c helloworld.c
> $ gcc -m64 -o helloworld helloworld.o
> collect2: ld terminated with signal 11 [Segmentation fault], core dumped
> /usr/bin/ld: warning: sparc architecture of input file `helloworld.o' is incompatible with sparc:v9 output
> /usr/bin/ld: helloworld.o: invalid string offset 6841708 >= 47 for section `.strtab'

:-(  That's really strange.

Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]