This is the mail archive of the binutils@sourceware.org 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]

Why relocation truncated to fit: R_MIPS_26 again `memcpy'?


$make
sde-gcc -EL -Os -G0 -mips32r2 -fno-pic -fno-builtin -mno-abicalls -c test.c
sde-ld -EL -T link.lds -o a.elf test.o -R libc.img
test.o: In function `main':
test.c:(.text+0x64): relocation truncated to fit: R_MIPS_26 against `memcpy'
$cat link.lds
OUTPUT_ARCH(mips)
SECTIONS
{
	.text 0x80200000 : { *(.text) *(.rodata*) }
	.data :  { *(.data) *(.sdata) }
 	.bss  :  { *(.sbss) *(.scommon) *(.bss) *(COMMON) }
}
$sde-nm libc.img
...
80000808 T memchr
80000728 T memcmp
80000628 T memcpy
...
Since .text section and memcpy are located in the same 256M region,
how the `relocation truncated to fit' linking error comes?


Best Regard,
PRC
June 8, 2009


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