Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: RE : [lpc2000] looking for _divsi3

2005-06-22 by roelof t Hooft

--- In lpc2000@yahoogroups.com, "Yannick Hildenbrand"
<duke.whisky@f...> wrote:
> Hello,
>  
> I had the same kind of problem, nearly for the same reasons. If you take
> a look at the ARM7 instruction set, you will notice that there is no
> division instruction. Only the multiplication is available.

Hmmm, just like a DSP, has one function but not the opposite.


> The message you get comes from the linker. It doesn't find the related
> entry because you probably omitted to include libgcc.a in the files
> specification for the linker. The linker command line shows that you
> have a linker script (lpc2292-rom-v2.ld). Check if libgcc.a appears in
> it.

I was hoping to avoid the linker script :-)
But still checked it for a reference to libgcc.a, none found.
Now I have to read about this linker script thingie, is
there somewhere a "linker script for dummies" ?


> Another possibility is what I did.
>
> *     In the linker command, add `–Llibpath –lgcc' in the option list,
> where libpath is the path where the libgcc.a archive resides.

I allready tried that, makes no difference.
If I give ld the wrong path or library name it will complain
to me about not finding the library.
Even with no -L and -l options on the command line it will
include libgcc.

To me it looks like the compiler knows where to go for the
"function" but when it gets there it finds no reference to
it, like this error "undefined reference to `__udivsi3'"
Some more google to do I guess.

Thank you for responding.

roelof
  


#LFLAGS=-Tlpc2292-rom-v2.ld -Map=MiniGator.map --cref
-L/usr/local/arm/lib/gcc/arm-elf/3.4.4/ -lgcc
LFLAGS=-Tlpc2292-rom-v2.ld -Map=MiniGator.map --cref

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.