From: Martin Liska Date: Mon, 5 Feb 2018 09:19:18 +0000 (+0100) Subject: Document --dynamic-list-data option for --coverage usage. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=239dc1a3b75b6bdd1e2fcda8dc8b9464fae41fe1;p=gcc.git Document --dynamic-list-data option for --coverage usage. 2018-02-05 Martin Liska PR gcov-profile/83879 * doc/gcov.texi: Document necessity of --dynamic-list-data when using dlopen functionality. From-SVN: r257383 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a57b92d5e22..d278e9d7e3d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-02-05 Martin Liska + + PR gcov-profile/83879 + * doc/gcov.texi: Document necessity of --dynamic-list-data when + using dlopen functionality. + 2018-02-05 Olga Makhotina * config/i386/avx512dqintrin.h (_mm_mask_range_sd, _mm_maskz_range_sd, diff --git a/gcc/doc/gcov.texi b/gcc/doc/gcov.texi index b55ee852ef9..6157e8bbf7c 100644 --- a/gcc/doc/gcov.texi +++ b/gcc/doc/gcov.texi @@ -788,6 +788,8 @@ Instrumented applications use a static destructor with priority 99 to invoke the @code{__gcov_dump} function. Thus @code{__gcov_dump} is executed after all user defined static destructors, as well as handlers registered with @code{atexit}. +If an executable loads a dynamic shared object via dlopen functionality, +@option{-Wl,--dynamic-list-data} is needed to dump all profile data. @c man end