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: mips linker error question


Boy do I feel stupid even though I can't explain what happened.
I did an rpm -F to get the new version of the RPM with -G0
libraries and it did not replace the libraries. :(  I removed
it and reinstalled and now it is fine.  Weird but OK now.

Sorry for the noise.

--joel

Joel Sherrill wrote:
> 
> Hi,
> 
> I am trying to link an Ada hello world program for the target
> mips-rtems (mips-elf) using gcc 3.2.1 and binutils 2.13.1 and
> am getting this error:
> 
> mips-rtems-gnatlink -g -B/opt/rtems//mips-rtems/jmr3904/lib/ -specs
> bsp_specs -qrtems -march=r3900 -G0 init.o hello.ali
> /opt/rtems/lib/gcc-lib/mips-rtems/3.2.1/adalib/libgnat.a(s-arit64.o): In
> function `system__arith_64__raise_error':
> /opt/usr2/usr_src_redhat_BUILD/mips-rtems-gcc-newlib/build/gcc/ada/rts/s-arit64.adb:376:
> relocation truncated to fit: R_MIPS_GPREL16 constraint_error
> collect2: ld returned 1 exit status
> mips-rtems-gnatlink: cannot call /opt/rtems/bin/mips-rtems-gcc
> mips-rtems-gnatmake: *** link failed.
> 
> I went back and recompiled the file in question s-arit64.adb and all of
> the
> rest of the Ada run-time with -G0 which I thought would eliminate this
> problem.  This is the command used to compile the file in question.
> 
> ../../xgcc -B../../ -c -g -O2 -isystem
> /usr/src/redhat/BUILD/mips-rtems-gcc-newlib/build/mips-rtems/newlib/targ-include
> -isystem
> /usr/src/redhat/BUILD/mips-rtems-gcc-newlib/build/../newlib-1.10.0/newlib/libc/include
> -B/opt/rtems/mips-rtems/bin/ -G0 -g -O2 -isystem
> /usr/src/redhat/BUILD/mips-rtems-gcc-newlib/build/mips-rtems/newlib/targ-include
> -isystem
> /usr/src/redhat/BUILD/mips-rtems-gcc-newlib/build/../newlib-1.10.0/newlib/libc/include
> -B/opt/rtems/mips-rtems/bin/ -G0   -W -Wall -gnatpg -I.
> -I/opt/usr2/usr_src_redhat_BUILD/mips-rtems-gcc-newlib/gcc-3.2.1/gcc/ada
> s-arit64.adb
> 
> Any ideas?
> 
> --
> Joel Sherrill, Ph.D.             Director of Research & Development
> joel@OARcorp.com                 On-Line Applications Research
> Ask me about RTEMS: a free RTOS  Huntsville AL 35805
> Support Available                (256) 722-9985

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel@OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985


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