gmon_syms.c 711 B

123456789101112131415161718192021222324
  1. /*
  2. * Copyright (C) 2001 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
  3. * Licensed under the GPL
  4. */
  5. #include "linux/module.h"
  6. extern void __bb_init_func(void *) __attribute__((weak));
  7. EXPORT_SYMBOL(__bb_init_func);
  8. /*
  9. * This is defined (and referred to in profiling stub code) only by some GCC
  10. * versions in libgcov.
  11. *
  12. * Since SuSE backported the fix, we cannot handle it depending on GCC version.
  13. * So, unconditionally export it. But also give it a weak declaration, which
  14. * will be overridden by any other one.
  15. */
  16. extern void __gcov_init(void *) __attribute__((weak));
  17. EXPORT_SYMBOL(__gcov_init);
  18. extern void __gcov_merge_add(void *) __attribute__((weak));
  19. EXPORT_SYMBOL(__gcov_merge_add);