[mc1322x] Fwd: contiki compilation error
Mariano Alvira
mar at devl.org
Tue Dec 8 09:58:08 EST 2009
Ah, ok.
make hello-world.bin
the .bin is the actual image that gets loaded on to the mc1322x. That
shouldn't include the debug symbols.
32k sounds about right for basic contiki and the resevered space for
the ROM variables.
-Mar.
On Tue, Dec 08, 2009 at 08:44:47AM -0500, Camilo, Alex wrote:
> Wait a minute, i think i had a brain fart, i'm sorry. the final tally is
> On Tue, Dec 8, 2009 at 8:34 AM, Camilo, Alex <acamilo at neuronrobotics.com>
> wrote:
>
> After reading the linked posts and doing some poking I don't think i'm
> running into half of glibc bieng pulled in.
> after looking at the sizes of the included components i see executable code
> and data in the region where i would expect it to be and when i add up the
> size of all of the segments in that region it comes out to approx 32k which
> is good enough for me. The stuff that doesn't make sense is all the .debug_
> data at address 0.
>
> ubuntu at ubuntu-desktop:~/contiki-mc1322x/examples/hello-world$ arm-elf-size
> -A -x hello-world.mc1322x
> hello-world.mc1322x :
> section size addr
> .text 0x663c 0x400000
> .stack 0x720 0x40663c
> .rodata 0xa24 0x406d5c
> .data 0x4fc 0x407780
> .bss 0x1154 0x407c7c
> .heap 0x400 0x408dd0
> .stab 0x18c 0x0
> .stabstr 0x2f 0x0
> .comment 0x396 0x0
> .debug_aranges 0x620 0x0
> .debug_pubnames 0x1628 0x0
> .debug_info 0xc730 0x0
> .debug_abbrev 0x4866 0x0
> .debug_line 0x372d 0x0
> .debug_frame 0x1a04 0x0
> .debug_str 0x2fb6 0x0
> .debug_loc 0x5bed 0x0
> .debug_ranges 0x528 0x0
> .ARM.attributes 0x10 0x0
> Total 0x2a50b
>
>
> On Mon, Dec 7, 2009 at 12:05 PM, Mariano Alvira <mar at devl.org> wrote:
>
> On Mon, Dec 07, 2009 at 11:15:50AM -0500, Camilo, Alex wrote:
> > I'l try installing a gnu-arm tool-chain from source and compiling my
> libraries.
> > I'm running into other problems such as the finished contiki binary
> being about
> > 250k.
>
> This can happen when something links to a giant call tree from glibc
> --- contiki calls exit in many places at that has been a
> problem. There are others. EABI has also been a problem. Here are
> some links to previous posts on the mailing list that might help:
>
> http://devl.org/pipermail/mc1322x/2009-October/000039.html
>
> and this post includes a perl script that will generate graph of what
> is linking in what. This is useful for narrowing down to the exact
> reason why giant portions of glibc are getting linked in:
>
> http://devl.org/pipermail/mc1322x/2009-October/000040.html
>
> -Mar.
>
>
>
>
> --
> Alex Camilo
> 1-877-474-6038 ext#703
> Head of Research and Design at Neuron Robotics, LLC.
> www.neuronrobotics.com
>
>
>
>
> --
> Alex Camilo
> 1-877-474-6038 ext#703
> Head of Research and Design at Neuron Robotics, LLC.
> www.neuronrobotics.com
> _______________________________________________
> mc1322x mailing list
> mc1322x at devl.org
> http://devl.org/cgi-bin/mailman/listinfo/mc1322x
More information about the mc1322x
mailing list