Hi All,
I am using 2011.3 4.5 linaro GCC(armv7-a vfpv3d16) to compile kernel
and modules. I select to compile all codecs as modules:
"config SND_SOC_ALL_CODECS
          tristate "Build all ASoC CODEC drivers"
"
as M and I2C/SPI too.

Then in the kernel dir, run "make" to get both vmlinux and modules, I
found snd-soc-wm8974.ko, snd-soc-wm8940.ko and snd-soc-wm8510.ko will
fail due to "__aeabi_uldivmod undefined".

If i comment do_div() in these codec drivers, this issue will
disappear. But it is strange there are many codecs which use do_div()
too, for example:
sound/soc/codecs/max98088.c     
sound/soc/codecs/max9850.c      
sound/soc/codecs/wm8350.c       
sound/soc/codecs/wm8400.c       
sound/soc/codecs/wm8510.c       
sound/soc/codecs/wm8580.c       
sound/soc/codecs/wm8753.c       
sound/soc/codecs/wm8804.c       
sound/soc/codecs/wm8900.c       
sound/soc/codecs/wm8904.c       
sound/soc/codecs/wm8940.c       
sound/soc/codecs/wm8955.c       
sound/soc/codecs/wm8960.c       
sound/soc/codecs/wm8974.c       
sound/soc/codecs/wm8978.c       
sound/soc/codecs/wm8985.c       
sound/soc/codecs/wm8990.c       
sound/soc/codecs/wm8991.c       
sound/soc/codecs/wm8993.c       
sound/soc/codecs/wm8994.c       
sound/soc/codecs/wm8995.c       
sound/soc/codecs/wm9081.c       

but others can pass the compiling except those 3 modules. Is it due to
a wrong optimization by gcc?

Other information:
1. old tool-chains we are using can pass the compiling of the 3 modules.
2. If i built all codecs into kernel image, these 3 drivers don't
report error while compiling.

Thanks
Barry

_______________________________________________
linaro-toolchain mailing list
linaro-toolchain@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-toolchain

Reply via email to