libgcc.a - source file

Guest #1173380
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
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
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

A question of your own? This thread is over 18 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.