libgcc.a - source file

Guest #1173380
Rate this post
useful
not useful
Hi

I managed to get eclipse and openocd to work with the aduc7000 series
from ADI. I got debug in ram and flash working.

I copied the instructions from J. Lynchs tutorial and adapted it to the
aduc. during debugging I found one strange thing.

libgcc.a is needed for some operations, e.g. shifting (>>, <<).
As soon the debugger reaches a position libgcc.a is used it is
complaining about a missing file lib1funcs.asm and stops.

I used the arm toolchain for OS X (intel). My solution was to recompile
the complete toolchain. After that I had the sources of gcc and eclipse
was able to find the source file by itself.

I have no problem with this because I got it working now.
But maybe people using winarm / yagarto have the same problem and
are unable to compile the tollchain theirself.

So what is a good solution for this?

Cheers, Tilo
#1173383
Rate this post
useful
not useful
Tilo Lutz wrote:
> I build gcc myself with the same options as the gcc on page
> http://www.mikrocontroller.net/articles/ARM_GCC_toolchain_for_Linux_and_Mac_OS_X
>
> My libgcc.a also have debug code included.
>
>
> Tilo

You could remove the symbols from the archive using the 'strip' utility:
http://www.gnu.org/software/binutils/manual/html_chapter/binutils_8.html,
but is likely that you would want to build the standard and compiler
support libraries with some level of optimisation, which may not be the
case.

Clifford

Reply

Please log in before posting.

or

Log in with Google account

Registration is free and takes only a minute.

Register now