diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index c29925f93fa7..f47f76bbb9c8 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,7 @@ +2012-01-11 Nathan Sidwell + + * libgcov.c (__gcov_init): Ignore objects with no functions. + 2012-01-10 Georg-Johann Lay PR target/49868 diff --git a/libgcc/libgcov.c b/libgcc/libgcov.c index 810175aafcfa..d75ae6955ede 100644 --- a/libgcc/libgcov.c +++ b/libgcc/libgcov.c @@ -686,7 +686,7 @@ gcov_exit (void) void __gcov_init (struct gcov_info *info) { - if (!info->version) + if (!info->version || !info->n_functions) return; if (gcov_version (info, info->version, 0)) {