summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpefo <pefo@openbsd.org>1996-09-28 18:24:02 +0000
committerpefo <pefo@openbsd.org>1996-09-28 18:24:02 +0000
commit1f148eabd003faf50eb5fd08a3e156fabdcffb94 (patch)
treec48a5b2d07ca02df025d111893a03d129e394d0f
parentmark dlopen() modules with RTLD_DL (diff)
downloadwireguard-openbsd-1f148eabd003faf50eb5fd08a3e156fabdcffb94.tar.xz
wireguard-openbsd-1f148eabd003faf50eb5fd08a3e156fabdcffb94.zip
workaround for header bug
-rw-r--r--gnu/usr.bin/binutils/bfd/elf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/usr.bin/binutils/bfd/elf.c b/gnu/usr.bin/binutils/bfd/elf.c
index 17893e1bd69..0b5b9b16bde 100644
--- a/gnu/usr.bin/binutils/bfd/elf.c
+++ b/gnu/usr.bin/binutils/bfd/elf.c
@@ -2272,7 +2272,7 @@ get_program_header_size (abfd)
{
struct elf_segment_map *m;
- segs = 0;
+ segs = 1;
for (m = elf_tdata (abfd)->segment_map; m != NULL; m = m->next)
++segs;
elf_tdata (abfd)->program_header_size = segs * bed->s->sizeof_phdr;
@@ -2281,7 +2281,7 @@ get_program_header_size (abfd)
/* Assume we will need exactly two PT_LOAD segments: one for text
and one for data. */
- segs = 2;
+ segs = 3;
s = bfd_get_section_by_name (abfd, ".interp");
if (s != NULL && (s->flags & SEC_LOAD) != 0)