Revert accidental elf.c change
authorAlan Modra <amodra@gmail.com>
Mon, 28 Nov 2016 05:44:56 +0000 (16:14 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 30 Nov 2016 11:42:00 +0000 (22:12 +1030)
* elf.c (get_program_header_size): Revert accidental change.

bfd/ChangeLog
bfd/elf.c

index e804d6ef4b6d4c10b77a024d56b5f32b8db09852..fc32759107baa370c4298b8e92099966b7542f7b 100644 (file)
@@ -1,3 +1,7 @@
+2016-11-30  Alan Modra  <amodra@gmail.com>
+
+       * elf.c (get_program_header_size): Revert accidental change.
+
 2016-11-30  Alan Modra  <amodra@gmail.com>
 
        PR ld/20886
index 5cc938d8117ed449d56debfab8ff0449c39e6412..3d1a28aa7eef24abcbe04040e309158a6db5f851 100644 (file)
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -4254,7 +4254,7 @@ get_program_header_size (bfd *abfd, struct bfd_link_info *info)
         PT_INTERP segment.  In this case, assume we also need a
         PT_PHDR segment, although that may not be true for all
         targets.  */
-      segs += 3;
+      segs += 2;
     }
 
   if (bfd_get_section_by_name (abfd, ".dynamic") != NULL)