>> fs/fs.o: In function `nfs_refresh_inode':
>> fs/fs.o(.text+0x324d8): undefined reference to `__udivdi3'
>> make: *** [vmlinux] Error 1
JN> The reference to this symbol is generated by gcc 2.7.2.3, but not by
JN> gcc 2.95.3 (and probably egcs and other versions).
Yep, it's generated from the following code:
/*
* Calculate the number of 512byte blocks used.
*/
static inline unsigned long
nfs_calc_block_size(u64 tsize)
{
loff_t used = (tsize + 511) / 512;
return (used > ULONG_MAX) ? ULONG_MAX : used;
}
and gcc 2.7.2.3 generates a call to __udivdi3 for u64 division on ia32:
nfs_calc_block_size:
pushl %ebp
movl %esp,%ebp
subl $8,%esp
pushl %esi
pushl %ebx
movl 8(%ebp),%ebx
movl 12(%ebp),%esi
movl %ebx,%eax
movl %esi,%edx
addl $511,%eax
adcl $0,%edx
pushl $0
pushl $512
pushl %edx
pushl %eax
call __udivdi3
...
Seems that some other architectures have the __udivdi3 function defined
but i38d doesn't. And it probably should.
-- Meelis Roos (mroos@tartu.cyber.ee)- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Sat Apr 15 2000 - 21:00:12 EST