Accept read-only PT_LOAD segments and .rodata.
commit64aa729bfae71561505a40c12755bd6b55bb3061
authorMark Wielaard <mark@klomp.org>
Thu, 12 Jul 2018 11:56:00 +0000 (12 13:56 +0200)
committerMark Wielaard <mark@klomp.org>
Mon, 16 Jul 2018 13:09:35 +0000 (16 15:09 +0200)
tree49ef186dcf252d1dfcb757b685fb1ad9a2028f51
parentf5a206ccae36d44be5e28e359401bdad13277e72
Accept read-only PT_LOAD segments and .rodata.

The new binutils ld -z separate-code option creates multiple read-only
PT_LOAD segments and might place .rodata in a non-executable segment.

Allow and keep track of separate read-only segments and allow a readonly
page with .rodata section.

Based on patches from Tom Hughes <tom@compton.nu> and
H.J. Lu <hjl.tools@gmail.com>.

https://bugs.kde.org/show_bug.cgi?id=395682
NEWS
coregrind/m_debuginfo/debuginfo.c
coregrind/m_debuginfo/readelf.c