]> git.ipfire.org Git - thirdparty/elfutils.git/commit
Do not rely on ebl_check_special_section when checking debuginfo files.
authorJose E. Marchesi <jose.marchesi@oracle.com>
Tue, 13 Oct 2015 16:39:15 +0000 (18:39 +0200)
committerMark Wielaard <mjw@redhat.com>
Tue, 13 Oct 2015 17:42:19 +0000 (19:42 +0200)
commitbc119074c2fadf5288ab8e635a930aac496282d7
treed5e6c88745f09fd4a3e9a5cd352797e7e2530484
parentb9be1434ff0a4ce9ebe80fcda5c6a9891904b26e
Do not rely on ebl_check_special_section when checking debuginfo files.

The test run-strip-strmerge.sh is failing in sparc targets.  This is
because it does an `elflint -d' in a debuginfo file, and this fails
with:

  section [21] '.plt' is both executable and writable

elflint uses the ebl_check_special_section hook (implemented only by
the alpha and sparc backends) in order to determine whether an
executable+writable section must be flagged or not.  In both cases the
hook will fail analyzing eu-strip debuginfo files (as they should,
because debuginfo files are broken ;).

This patch just modifies elflint to not use the hook when -d is
specified in the command-line.  This fixes the test in sparc-* and
sparc64-* targets (and presumably in alpha* targets too).

Additionaly, the patch checks that the type of WE sections in
debuginfo files is NOBITS.

Signed-off-by: Jose E. Marchesi <jose.marchesi@oracle.com>
src/ChangeLog
src/elflint.c