]> git.ipfire.org Git - thirdparty/elfutils.git/commit
elflint: Check relro flags are a subset of the load segment.
authorMark Wielaard <mjw@redhat.com>
Tue, 13 Oct 2015 14:02:10 +0000 (16:02 +0200)
committerMark Wielaard <mjw@redhat.com>
Tue, 13 Oct 2015 14:02:10 +0000 (16:02 +0200)
commitb9be1434ff0a4ce9ebe80fcda5c6a9891904b26e
treeb6cd28f2eacf71d4536c7cd868e099ff37b21756
parentae1e85ea0b0d63968c707000ac893d9256eb9c38
elflint: Check relro flags are a subset of the load segment.

If the RELRO segment doesn't fully overlap with the load segment then the
load segment might have more flags sets. This happens for example on sparc
when the .plt, which is executable, is also part of the load segment that
RELRO covers.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
src/ChangeLog
src/elflint.c