Re: [arm-gnu] run-time helper-function ABI issue: __aeabi_idivmod
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [arm-gnu] run-time helper-function ABI issue: __aeabi_idivmod



On Tuesday 26 July 2005 00:15, Chris Hiszpanski wrote:
> Hello,
>
> I am compiling C code containing division of two type int variables, stored
> to a type int. Compilation goes well, but linking produces:
>
> obj/tcp_in.o(.text+0x2064): In function `tcp_receive':
> src/lwip-1.1.0/src/core/tcp_in.c:776: undefined reference to
> `__aeabi_idivmod'
>
> From this it seems that arm-none-eabi-gcc (release 2005-Q1C), is
> interpretting this division as a floating point operation referenced in a
> library that I am not passing to arm-none-eabi-ld. 

Arm does not have an integer divide instuction, so integer division is 
implmemented with a library call. This is not a floating point operation.

> What library are the __aeabi functions in?

libgcc

Paul