Relocation truncated to fit: R_ARM_PC24

Niklaus niklaus@gmail.com
Mon Apr 24 10:12:00 GMT 2006


On 4/24/06, Hanumesh R Shetty <rh_shetty@yahoo.co.in> wrote:
> hi all,
> pls help me out from this prob..
>
> [vineets@localhost ANOTHER]$ ./my_appcmp.sh n_app
> Reading specs from
> /usr/local/lib/gcc-lib/arm-elf/2.95.3/specs
> gcc version 2.95.3 20010315 (release)(ColdFire patches
> - 20010318 from http://fiddes.net/coldfire/)(uClinux
> XIP and shared lib patches from
> http://www.snapgear.com/)
>  /usr/local/lib/gcc-lib/arm-elf/2.95.3/collect2 -X -o
> n_app
> -L/usr/local/lib/gcc-lib/arm-elf/2.95.3/fpic/msingle-pic-base
> -L/usr/local/lib/gcc-lib/arm-elf/2.95.3
> -L/usr/local/arm-elf/lib/fpic/msingle-pic-base
> -L/usr/local/arm-elf/lib -elf2flt=-r -shared-lib-id 0
> n_app.o -R n_libr.gdb
> /home/vineets/sheety/NEW_FRAME_WORK/ANOTHER/crt0.o
> -lgcc -lg -lc -lgcc
> n_app.elf2flt(.text+0x18c): In function `_start':
> : relocation truncated to fit: R_ARM_PC24 abort
> collect2: ld returned 1 exit status
>
> my_appcom.sh contains..
> arm-elf-gcc -v --static -mlong-calls -O0 -o $1 -g
> -Wl,-elf2flt=-r -D__PIC__ -fpic -msingle-pic-base
> -D__linux__ -DNO_MM -DDE_BUG
> -I/home/tayalr/incoming/uClinux-dist/lib/uClibc/include
> -Wl,-shared-lib-id,0 -nostartfiles  $1.o
> -Wl,-R,n_libr.gdb
> /home/vineets/sheety/NEW_FRAME_WORK/ANOTHER/crt0.o
>

Try pasting the linker script. It will be of the form .text start etc.
n_app n_libr.gdb what does these files contain

> even sfter using the -mlong-call option i failed. bcoz
> the compiler not recognising this option. pls let me
> know the alternate solution for this
>
>
>
> __________________________________________________________
> Yahoo! India Matrimony: Find your partner now. Go to http://yahoo.shaadi.com
>
> --
> For unsubscribe information see http://sourceware.org/lists.html#faq
>
>

--
For unsubscribe information see http://sourceware.org/lists.html#faq



More information about the crossgcc mailing list