Problems with sprintf and libgcc.a - Page 2

Do you have a question? Post it now! No Registration Necessary

Translate This Thread From English to

Threaded View
Re: Problems with sprintf and libgcc.a
Quoted text here. Click to load it

Please do not call ld directly, use arm-elf-gcc to link, instead.

Quoted text here. Click to load it

These are entries into the GCC support library, libgcc.a.
If you used the proper command line, you'd get them correct.

Quoted text here. Click to load it

This is an entry into the C runtime library, which would
also be included if you used gcc to link.

The linker script can be included with the -Wl switch.

--- snip snip ---

Quoted text here. Click to load it

You do not have enough memory for your code and data.
Prune the code or get more RAM.

Depending on your version of the C runtime, use of sprintf()
may hoist in the whole file system interface and dynamic
memory allocation, which are alone more than your 12 kbytes.

--

Tauno Voipio
tauno voipio (at) iki fi


Re: Problems with sprintf and libgcc.a

Quoted text here. Click to load it
===SNIP===

Quoted text here. Click to load it

You are using an OS now (Linux).  All of the AT91F_' initialization
stuff has been performed even before Linux got bootloaded.  You need
to use a makefile, link script, etc. that one would use to build a
Linux application, not something that would be executed shortly after
RESET is released.

--
Dan Henry

Site Timeline