bfd/
[deliverable/binutils-gdb.git] / bfd / elf32-bfin.c
index 661d4bdd24ee48d25f93cb6c1701ac4d461529c7..ed3db10a2b4a0663ebcbfbed1e64128f7c7499de 100644 (file)
@@ -4234,8 +4234,11 @@ elf32_bfinfdpic_modify_segment_map (bfd *output_bfd,
          /* Add the stack section to the PT_GNU_STACK segment,
             such that its size and alignment requirements make it
             to the segment.  */
-         m->sections[m->count] = sec;
-         m->count++;
+         if (m->count == 0)
+           {
+             m->sections[m->count] = sec;
+             m->count++;
+           }
        }
     }
 
This page took 0.024203 seconds and 4 git commands to generate.