|
From: Tom H. <th...@cy...> - 2003-07-27 11:57:08
|
In message <Pin...@jd...>
Igmar Palsenberg <mai...@jd...> wrote:
> Is there an option to let Valgrind complain is a program screws up things
> in a .data or .rosection part of a program ?
Well it can't complain about writes to things in .data as that is
intended to be writable - it includes things like static variables
that the program is fully entitled to change.
As for .rodata that would normally be mapped as read only by the
operating system and hence would cause a SEGV if you wrote to it even
without valgrind. The same goes for any section in an ELF file that
has the READONLY attribute set.
Tom
--
Tom Hughes (th...@cy...)
Software Engineer, Cyberscience Corporation
http://www.cyberscience.com/
|