linker trampoline code (branches > 64MB)
Nick Clifton
nickc@redhat.com
Thu Mar 27 13:55:00 GMT 2008
Hi Duncan,
> However, when I try to relocate some test code by 0x3000000 I get the following error
>
> linker_test_main.o(.text+0x8c): In function `linker_test_main':
> C:\gccPPC604Verification\linkerverification/linker_test_main.c:38: relocation truncated to fit: R_PPC_REL24 linker_test_1
> linker_test_1.o(.text+0x154): In function `linker_test_1':
> C:\gccPPC604Verification\linkerverification/linker_test_1.c:47: relocation truncated to fit: R_PPC_REL24 __udivdi3
>
> And no linked file
>
> Can you explain how I get round this error, please?
Check that you are using the latest release of the linker sources
(2.18). If not, get them and try them out.
If the problem still exists then it is a linker bug. Or at least a
linker lack-of-support-for-very-large-branches. So please submit a bug
report at:
http://sourceware.org/bugzilla/
It really helps if you can include a small test case with which we can
reproduce the problem as well.
Cheers
Nick
More information about the Binutils
mailing list