EmbDev.net

Forum: ARM programming with GCC/GNU tools libgcc.a - source file


von Tilo (Guest)


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

von Clifford S. (clifford)


Rate this post
useful
not useful
Tilo Lutz wrote:
>
> So what is a good solution for this?
>

Normally libgcc.a is built and distributed without debugging information
included, so the debugger would not attempt to find the source. You
would only need this if you were debugging a port perhaps.


Clifford

von Tilo (Guest)


Rate this post
useful
not useful
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

von Clifford S. (clifford)


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

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.