Post Go back to editing

Enabling oprofile for uClinux BF609

Hello,

We are trying to enable oprofile for out BF609 uClinux, we followed the steps given in link. But during compiling kernel we are getting an error

WARNING: drivers/built-in.o(.data+0x6d2c): Section mismatch in reference from the variable ___param_ops_mtd to the function .init.text:_ubi_mtd_param_parse()
The variable ___param_ops_mtd references
the function __init _ubi_mtd_param_parse()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

  LINK    vmlinux
  LD      vmlinux.o
  MODPOST vmlinux.o
WARNING: vmlinux.o(.data+0x1d7c4): Section mismatch in reference from the variable ___param_ops_mtd to the function .init.text:_ubi_mtd_param_parse()
The variable ___param_ops_mtd references
the function __init _ubi_mtd_param_parse()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

  GEN     .version
  CHK     include/generated/compile.h
  UPD     include/generated/compile.h
  CC      init/version.o
  LD      init/built-in.o
kernel/built-in.o: In function `perf_swevent_init':
/home/e_ank/ADUBuild/ADU_SW_V1.0.0_beta2/linux/kernel/events/core.c:6270: undefined reference to `__ucmpdi2'
make: *** [vmlinux] Error 1

We are using gcc version 4.3.5 (ADI-2014R1-RC2).

What are we missing? Can anyone help.