EmbDev.net

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


Author: Tilo L. (katagia)
Posted on:

Rate this post
0 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

Author: Clifford Slocombe (clifford)
Posted on:

Rate this post
0 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

Author: Tilo L. (katagia)
Posted on:

Rate this post
0 useful
not useful
I build gcc myself with the same options as the gcc on page
http://www.mikrocontroller.net/articles/ARM_GCC_to...

My libgcc.a also have debug code included.


Tilo

Author: Clifford Slocombe (clifford)
Posted on:

Rate this post
0 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_to...
>
> 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_c...,
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

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.