From: Martin Liska Date: Wed, 7 Mar 2018 09:48:02 +0000 (+0100) Subject: Backport r257383 X-Git-Tag: releases/gcc-6.5.0~468 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d7e972aaa64d69c6af4daa08fa968fb6dc006e0;p=thirdparty%2Fgcc.git Backport r257383 2018-03-07 Martin Liska Backport from mainline 2018-02-05 Martin Liska PR gcov-profile/83879 * doc/gcov.texi: Document necessity of --dynamic-list-data when using dlopen functionality. From-SVN: r258329 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 010614b14ef0..09d858bc6dbc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2018-03-07 Martin Liska + + Backport from mainline + 2018-02-05 Martin Liska + + PR gcov-profile/83879 + * doc/gcov.texi: Document necessity of --dynamic-list-data when + using dlopen functionality. + 2018-03-07 Martin Liska Backport from mainline diff --git a/gcc/doc/gcov.texi b/gcc/doc/gcov.texi index 8e1ef5cdba81..54a1172cb943 100644 --- a/gcc/doc/gcov.texi +++ b/gcc/doc/gcov.texi @@ -604,6 +604,8 @@ facilities to restrict profile collection to the program region of interest. Calling @code{_gcov_reset(void)} will clear all profile counters to zero, and calling @code{_gcov_dump(void)} will cause the profile information collected at that point to be dumped to @file{.gcda} output files. +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