Re: compile error on latest git m68k kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> writes:

On Wed, Nov 10, 2010 at 11:02, Andreas Schwab <schwab@xxxxxxxxxxxxxx> wrote:
Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> writes:
On Wed, Nov 10, 2010 at 08:08, Michael Schmitz
<schmitzmic@xxxxxxxxxxxxxx> wrote:
seen this before?

Not this particular one...

 LD      .tmp_vmlinux1
fs/built-in.o: In function `alignfile':
binfmt_elf.c:(.text+0x307bc): undefined reference to `__divdi3'
fs/built-in.o: In function `elf_core_dump':
binfmt_elf.c:(.text+0x3139c): undefined reference to `__divdi3'
make: *** [.tmp_vmlinux1] Error 1

Where is that called?  The right fix in most cases is to use do_div from
<asm/div64.h>.

alignfile: roundup(*foffset, 4)
elf_core_dump: roundup(offset, ELF_EXEC_PAGESIZE)
(assumed it's caused by the roundup() calls, assembly output?)

Both are divisions by a power-of-two, but the dividend is a (signed!) long long.

I cannot reproduce that.

Andreas.

-- 
Andreas Schwab, schwab@xxxxxxxxxxxxxx
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."
--
To unsubscribe from this list: send the line "unsubscribe linux-m68k" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Video for Linux]     [Yosemite News]     [Linux S/390]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux