After making some patch which adds a x = y % z
statement in kernel, I get this linker error when trying to compile for Pandboard (omap2plus)
undefined reference to `__aeabi_uldivmod' make[1]: *** [vmlinux] Error 1 make: *** [sub-make] Error 2
Simple search revealed that it's been reported before in linaro gcc and upstream gcc as well. https://bugs.launchpad.net/gcc-linaro/+bug/771832 -> still not resolved.
I'm surprised that kernel doesn't use modulo for unsigned long anywhere else except in my patch. Has anyone else seen this or some weird issue in my (typical desktop) setup ? Any workarounds ?
TIA,
Venkat.
linaro-kernel@lists.linaro.org