aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1993-02-23 21:08:32 +0000
committerIan Lance Taylor <ian@airs.com>1993-02-23 21:08:32 +0000
commitc0f6093b0cec7df7d23847c5156e720eb631a308 (patch)
tree826ee09bef41186df811f5ba0522c6e499419d58 /bfd/elf.c
parentcd211312d34f8e76e28148cb473c59c29f4d9ceb (diff)
downloadfsf-binutils-gdb-c0f6093b0cec7df7d23847c5156e720eb631a308.zip
fsf-binutils-gdb-c0f6093b0cec7df7d23847c5156e720eb631a308.tar.gz
fsf-binutils-gdb-c0f6093b0cec7df7d23847c5156e720eb631a308.tar.bz2
* Minor cleanups provoked by gcc warnings:
* aoutx.h (NAME(aout, reloc_type_lookup)), cpu-h8300.c (local_bfd_reloc_type_lookup), cpu-z8k.c (local_bfd_reloc_type_lookup): Added default case to switches. * archive.c (do_slurp_bsd_armap, do_slurp_coff_armap), ieee.c (ieee_slurp_section_data), elf.c (elf_make_sections, elf_fake_sections, elf_compute_section_file_positions, elf_write_object_contents): Removed unused variables. * archures.c: Removed /* from within comment. * bout.c (b_out_squirt_out_relocs): Initialize r_extern. * oasys.c (oasys_write_data): Initialize i.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r--bfd/elf.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index 9fad4c1..c21fb8d 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -1460,11 +1460,8 @@ DEFUN (elf_make_sections, (abfd, asect, obj),
/* emit a reloc section, and thus strtab and symtab... */
Elf_Internal_Shdr *rela_hdr;
Elf_Internal_Shdr *symtab_hdr;
- Elf_Internal_Shdr *symstrtab_hdr;
Elf_External_Rela *outbound_relocs;
- Elf_External_Sym *outbound_syms;
int rela_section;
- int symstrtab_section;
symtab_hdr = &thunk->i_shdrp[thunk->symtab_section];
@@ -1515,7 +1512,6 @@ DEFUN (elf_fake_sections, (abfd, asect, obj),
/* most of what is in bfd_shdr_from_section goes in here... */
/* and all of these sections generate at *least* one ELF section. */
int this_section;
- int idx;
/* check if we're making a PROGBITS section... */
/* if ((asect->flags & SEC_ALLOC) && (asect->flags & SEC_LOAD)) */
@@ -1543,8 +1539,6 @@ DEFUN (elf_fake_sections, (abfd, asect, obj),
Elf_Internal_Shdr *rela_hdr;
Elf_Internal_Shdr *symtab_hdr;
Elf_Internal_Shdr *symstrtab_hdr;
- Elf_External_Rela *outbound_relocs;
- Elf_External_Sym *outbound_syms;
int rela_section;
int symstrtab_section;
@@ -1594,7 +1588,6 @@ DEFUN (elf_compute_section_file_positions, (abfd), bfd *abfd)
Elf_Internal_Shdr *i_shdrp; /* Section header table, internal form */
struct strtab *shstrtab;
int count, maxsections;
- int outbase;
elf_sect_thunk est;
if (! elf_shstrtab (abfd)) {
@@ -1707,12 +1700,9 @@ DEFUN (elf_write_object_contents, (abfd), bfd *abfd)
{
Elf_External_Ehdr x_ehdr; /* Elf file header, external form */
Elf_Internal_Ehdr *i_ehdrp; /* Elf file header, internal form */
- Elf_External_Phdr *x_phdrp; /* Program header table, external form */
- Elf_Internal_Phdr *i_phdrp; /* Program header table, internal form */
Elf_External_Shdr *x_shdrp; /* Section header table, external form */
Elf_Internal_Shdr *i_shdrp; /* Section header table, internal form */
asection *nsect;
- int maxsections;
elf_sect_thunk est;
int outbase = 0;