From d11f9cbecac4a5ac3848a68597028d1924f3ff6b Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 26 Mar 2008 20:51:59 +0000 Subject: libdwfl/ * dwfl_module_getdwarf.c (load_symtab): Don't return success for SHT_DYNSYM, just set *SYMSCN like the comment says. --- src/elflint.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/elflint.c') diff --git a/src/elflint.c b/src/elflint.c index 54aa1114..4448eef1 100644 --- a/src/elflint.c +++ b/src/elflint.c @@ -4055,9 +4055,10 @@ more than one GNU_RELRO entry in program header\n")); if ((phdr2->p_flags & PF_W) == 0) ERROR (gettext ("\ loadable segment GNU_RELRO applies to is not writable\n")); - if ((phdr2->p_flags & PF_X) != 0) + if ((phdr2->p_flags &~ PF_W) != (phdr->p_flags &~ PF_W)) ERROR (gettext ("\ -loadable segment GNU_RELRO applies to is executable\n")); +loadable segment [%u] flags do not match GNU_RELRO [%u] flags\n"), + cnt, inner); break; } } -- cgit v1.2.3