RE: gcov and initialized data

2018-05-03 Thread taylor, david
> From: Nathan Sidwell [mailto:nathanmsidw...@gmail.com] On Behalf Of > Nathan Sidwell > Sent: Thursday, May 3, 2018 1:58 PM > To: taylor, david; gcc@gcc.gnu.org > Subject: Re: gcov and initialized data > > On 05/03/2018 01:09 PM, taylor, david wrote: > > > When y

Re: gcov and initialized data

2018-05-03 Thread Nathan Sidwell
On 05/03/2018 01:09 PM, taylor, david wrote: When you build your program for code coverage (-ftest-coverage -fprofile-arcs), GCC creates some initialized read-write GCOV related data. Has anyone modified GCC to, presumably either under control of a command line option or possibly a configure

gcov and initialized data

2018-05-03 Thread taylor, david
I want to use gcov in an embedded type environment. It supports both cold boot and warm boot. For warm boot it does not reload the program from media, instead it 'just' jumps to the start and begins again. Due to support for warm boot, it does not support read-write initialized data. Writable