diff options
author | Bob Wilson <bob.wilson@acm.org> | 2004-11-04 00:44:23 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@acm.org> | 2004-11-04 00:44:23 +0000 |
commit | 0ebdbb83125357775c78f6760858084bddfa9939 (patch) | |
tree | 98b4d697e34a13a3fda441bf250df1d5e2dbd23f /bfd/elf.c | |
parent | 9f0b03222a20749b3e23f47ec6f43b51d9554322 (diff) | |
download | gdb-0ebdbb83125357775c78f6760858084bddfa9939.zip gdb-0ebdbb83125357775c78f6760858084bddfa9939.tar.gz gdb-0ebdbb83125357775c78f6760858084bddfa9939.tar.bz2 |
* elf.c (assign_file_positions_for_segments): Set next_file_pos even
if there are no segments.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r-- | bfd/elf.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -3871,7 +3871,10 @@ assign_file_positions_for_segments (bfd *abfd, struct bfd_link_info *link_info) 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 |