http://lists.altlinux.org/pipermail/devel/2009-December/178481.html --- elfutils/src/elflint.c +++ elfutils/src/elflint.c @@ -3750,7 +3750,10 @@ section [%2zu] '%s' has not type NOBITS but is not read from the file in segment 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;