if there are no segments.
+2004-11-03 Bob Wilson <bob.wilson@acm.org>
+
+ * elf.c (assign_file_positions_for_segments): Set next_file_pos even
+ if there are no segments.
+
2004-11-02 Daniel Jacobowitz <dan@debian.org>
* config.bfd: Mark arm-*-oabi and thumb-*-oabi as obsolete.
elf_elfheader (abfd)->e_phnum = count;
if (count == 0)
- return TRUE;
+ {
+ elf_tdata (abfd)->next_file_pos = bed->s->sizeof_ehdr;
+ return TRUE;
+ }
/* If we already counted the number of program segments, make sure
that we allocated enough space. This happens when SIZEOF_HEADERS