Problems linking PSIM programs
Joel Sherrill
joel.sherrill@oarcorp.com
Sat Aug 12 01:28:00 GMT 2006
H. J. Lu wrote:
> On Fri, Aug 11, 2006 at 11:44:24AM -0700, Wealand, Barry wrote:
>
>> Hello -
>>
>> I'm trying to use gcc 2.95.3 with binutils 2.14 and newlib 1.9.0 to
>> build a simple hello.c for use with the PowerPC simulator. Compiler,
>> binutils, and newlib were all configured with --target=powerpc-eabi for
>> a sparc-sun-solaris2.8 host. I attempt to compile hello.c with:
>>
>> powerpc-eabi-gcc -msim -o hello hello.c
>>
>> The response is:
>>
>> /u00/users/bwealand/GCC/tools/v2.95.3/H-sparc-sun-solaris2.8/powerpc-eab
>> i/bin/ld: hello: Not enough room for program headers (allocated 2, need
>> 3)
>> /u00/users/bwealand/GCC/tools/v2.95.3/H-sparc-sun-solaris2.8/powerpc-eab
>> i/bin/ld: final link failed: Bad value
>>
>> In the bug-binutils archive, I notice that this problem has appeared in
>> a number of different situations. One recommended solution has been to
>> use later versions of binutils. I have tried 3 separate versions:
>> 2.11.2, 2.12, and 2.14. All produce the same result.
>>
>>
>
> You tried 3 very OLD binutils. The current one is 2.17.
>
psim is one of the platforms we regularly test RTEMS on. But we use
much more recent tools than that. gcc 2.95.3 is quote old also.
gcc 4.1.1 + binutils 2.17 works great.
--joel sherrill
>
> H.J.
>
More information about the Binutils
mailing list