From: Peter O. <obe...@us...> - 2004-04-20 12:28:41
|
Update of /cvsroot/ltp/utils/analysis/gcov-kernel/ia64 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13726/ia64 Added Files: gcov-2.6.5-ia64.patch Log Message: gcov-kernel updates: - added patch for Linux 2.6.5 - updated configure help text - fixed compiler warning in gcov-proc.c - fixed build process: . GCOV_FLAGS is now exported to sub-dir makefiles . building in separate object directories now also works when CONFIG_GCOV_ALL is not specified --- NEW FILE: gcov-2.6.5-ia64.patch --- diff -ruN linux-2.6.5/arch/ia64/Kconfig linux-2.6.5-gcov/arch/ia64/Kconfig --- linux-2.6.5/arch/ia64/Kconfig 2004-04-04 05:38:18.000000000 +0200 +++ linux-2.6.5-gcov/arch/ia64/Kconfig 2004-04-05 16:38:40.000000000 +0200 @@ -385,6 +385,8 @@ source "arch/ia64/oprofile/Kconfig" +source "drivers/gcov/Kconfig" + menu "Kernel hacking" choice diff -ruN linux-2.6.5/arch/ia64/kernel/head.S linux-2.6.5-gcov/arch/ia64/kernel/head.S --- linux-2.6.5/arch/ia64/kernel/head.S 2004-04-04 05:37:36.000000000 +0200 +++ linux-2.6.5-gcov/arch/ia64/kernel/head.S 2004-04-05 16:38:40.000000000 +0200 @@ -929,3 +929,24 @@ #endif #endif /* CONFIG_SMP */ + +#ifdef CONFIG_GCOV_PROFILE +/* + * The .ctors-section contains a list of pointers to constructor + * functions which are used to initialize gcov structures. + * + * Because there is no NULL at the end of the constructor list + * in the kernel we need the addresses of both the constructor + * as well as the destructor list which are supposed to be + * adjacent. + */ + +.section ".ctors","aw" +.globl __CTOR_LIST__ +.type __CTOR_LIST__,@object +__CTOR_LIST__: +.section ".dtors","aw" +.globl __DTOR_LIST__ +.type __DTOR_LIST__,@object +__DTOR_LIST__: +#endif |