diff options
author | Per Fogelstrom <pefo@cvs.openbsd.org> | 1996-09-28 18:24:03 +0000 |
---|---|---|
committer | Per Fogelstrom <pefo@cvs.openbsd.org> | 1996-09-28 18:24:03 +0000 |
commit | ed480c5b4e416abc18ea89aeb88b9f3bd61e36ca (patch) | |
tree | bd366e76417e50e67fd1c306bb3bb4bf1be9dec1 /gnu/usr.bin/binutils/bfd/elf.c | |
parent | 9dee8454dff4726b7d56a69ecb56d2c750fd8444 (diff) |
workaround for header bug
Diffstat (limited to 'gnu/usr.bin/binutils/bfd/elf.c')
-rw-r--r-- | gnu/usr.bin/binutils/bfd/elf.c | 4 |
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) |