[mc1322x] Building mc1322x contiki
Jon Smirl
jonsmirl at gmail.com
Tue Oct 6 13:39:37 EDT 2009
On Tue, Oct 6, 2009 at 1:14 PM, Mariano Alvira <mar at devl.org> wrote:
> On Tue, Oct 06, 2009 at 12:58:11PM -0400, Jon Smirl wrote:
>> I'm trying to build the mc1322x contiki examples using
>> gcc-4.3.2-glibc-2.8-binutils-2.18 from the Phytec cross tools.
>>
>> My binary is ending up 550K. It is sucking in 500K of run-time
>> library. Are my cross tools built wrong? Should they be built with
>> exception handling turned off?
>
> Yeah, this is glibc's fault. Something you are building is causing
> some giant portion of glibc to get pulled in. I've seen this happen
> with printf and I think Ian had this problem with malloc.
>
> I've attached a simple program that Jim wrote that helps you figure
> out what is pulling in what. This will at least give you a starting
> point to work from and should help you narrow down the exact cause.
>
> See the comment at the start of the file for usage.
The problem is rooted at unwind-arm.o which calls abort.o It looks
like uldivmod can trigger an exception, the exception handling pulls
in 500K of run-time.
So I need to figure out how to rebuild my libc with exceptions
handling turned off?
>
> -Mar.
>
--
Jon Smirl
jonsmirl at gmail.com
More information about the mc1322x
mailing list