http://lists.altlinux.org/pipermail/devel/2009-December/178481.html --- elfutils-0.147/src/elflint.c- 2010-05-26 09:54:09.445943897 +0400 +++ elfutils-0.147/src/elflint.c 2010-05-26 09:54:29.958035185 +0400 @@ -3816,7 +3816,10 @@ section [%2zu] '%s' has not type NOBITS section [%2zu] '%s' is executable in nonexecutable segment %d\n"), cnt, section_name (ebl, cnt), pcnt); } + } + if (shdr->sh_type != SHT_NOBITS || strcmp (scnname, ".bss") == 0) + { if ((shdr->sh_flags & SHF_WRITE) != 0) { segment_flags[pcnt] |= PF_W;