[fpc-devel] how to build FPC for armel
Jonas Maebe
jonas.maebe at elis.ugent.be
Sat Dec 12 16:28:08 CET 2009
On 12 Dec 2009, at 17:14, darekm at emadar.com wrote:
>>
>> On 12 Dec 2009, at 15:38, darekm at emadar.com wrote:
>>
>>> /home/darek2008/fpcarm/arm-linux-uclibc/bin/ld:./link.res: file format
>>> not
>>> recognized; treating as linker script
>>> /home/darek2008/fpcarm/arm-linux-uclibc/bin/ld:./link.res:289: syntax
>>> error
>
> I found the error
>
> link.res should be so (its generic from compiler/systems/tlinux.pas):
>
> /* Adjust the address for the data segment. We want to adjust up to
> the same address within the page on the next page up. */
> . = ALIGN(0x8000) - ((0x8000 - .) & (0x8000 - 1)); . =
> DATA_SEGMENT_ALIGN (0x8000, 0x1000);
> /* Exception handling */
>
> I've it compare with my and codesourcery binutils
I guess it's because you are using GNU ld 2.17. The built-in FPC linker script comes from GNU ld 2.18.
Jonas
More information about the fpc-devel
mailing list