summaryrefslogtreecommitdiff
path: root/elfutils-0.147-alt-bss.patch
blob: bd0866cb7bb204d9b7b473720944afcfc6fbd69d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
http://lists.altlinux.org/pipermail/devel/2009-December/178481.html

--- elfutils/src/elflint.c
+++ elfutils/src/elflint.c
@@ -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;