diff options
author | Fred Fish <fnf@specifix.com> | 1991-11-09 21:48:15 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1991-11-09 21:48:15 +0000 |
commit | a6c1d73165725a728678b769a84d426945403d45 (patch) | |
tree | 19b720449de1656df9c16a9ce4c6da5bd0903a22 /bfd/elf.c | |
parent | 8aca810c2a3ace1b5dc799f86216a8e011f27f04 (diff) | |
download | gdb-a6c1d73165725a728678b769a84d426945403d45.zip gdb-a6c1d73165725a728678b769a84d426945403d45.tar.gz gdb-a6c1d73165725a728678b769a84d426945403d45.tar.bz2 |
Don't try to create a bfd section for the first ELF section header table
entry, since it is just a placeholder with no name.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r-- | bfd/elf.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -412,9 +412,10 @@ wrong: } /* Once all of the section headers have been read and converted, we - can start processing them. */ + can start processing them. Note that the first section header is + a dummy placeholder entry, so we ignore it. */ - for (shindex = 0; shindex < i_ehdr.e_shnum; shindex++) + for (shindex = 1; shindex < i_ehdr.e_shnum; shindex++) { bfd_section_from_shdr (abfd, i_shdr + shindex, shstrtab); } @@ -701,7 +702,7 @@ DEFUN (elf_sizeof_headers, (abfd, reloc), #define elf_openr_next_archived_file bfd_generic_openr_next_archived_file #define elf_generic_stat_arch_elt bfd_generic_stat_arch_elt #define elf_write_armap (PROTO (boolean, (*), \ - (bfd *arch, unsigned int elength, struct orl *map, int orl_count, \ + (bfd *arch, unsigned int elength, struct orl *map, unsigned int orl_count, \ int stridx))) bfd_false /* Ordinary section reading and writing */ |