[mc1322x] linking in math libraries?

Jon Smirl jonsmirl at gmail.com
Fri Apr 9 08:48:07 EDT 2010


On Fri, Apr 9, 2010 at 6:04 AM, Andrew Pullin <pullin at berkeley.edu> wrote:
> On 4/8/2010 7:49 AM, Mariano Alvira wrote:
>>
>> On Thu, Apr 08, 2010 at 10:22:40AM -0400, Jon Smirl wrote:
>>
>>>
>>> Now you get to sort through and figure out what went wrong.
>>>
>>> It may be bring in floating point emulation because of printf. There's
>>> an option somewhere to stop that.
>>>
>>
>> eh. I find it's easier to fix it when glibc blows up.
>>
>> If think there is enough info is this thread to get someone started
>> with newlib if they are really gung-ho about it.
>>
>> And also, wasn't the whole point of this to bring in floating point
>> emulation? (e.g. sqrt())? So even under that case, glibc is still half
>> the size.
>>
>> -Mar.
>>
>>
>>
>
> Well, this sort of works for newlib:
> http://andrewpullin.org/tools/arm/buildscript.sh
>
> It works in the sense that it builds, and prints a lot of libraries when
> doing arm-elf-gcc -print-multi-lib , but the build still complains that the
> library is build without interworking and with software FP. If anyone's got

Set the compiler flags to turn on interworking when building newlib.

> a stroke of genius about how to make it work, I'd be very interested to
> hear...

Keep playing with it. You have the source to everything so it is
possible to find a solution.

I have an email somewhere for a consultant that specializes in build
environments if you're interested.

>
> -Andrew
>
> _______________________________________________
> mc1322x mailing list
> mc1322x at devl.org
> http://devl.org/cgi-bin/mailman/listinfo/mc1322x
>



-- 
Jon Smirl
jonsmirl at gmail.com



More information about the mc1322x mailing list