diff options
author | Ben Elliston <bje@au.ibm.com> | 2006-05-04 05:05:25 +0000 |
---|---|---|
committer | Ben Elliston <bje@au.ibm.com> | 2006-05-04 05:05:25 +0000 |
commit | 9578239d3edd0341cca6686bdf89ba9f5a1cd9f7 (patch) | |
tree | adbc992b8c6d413b1aa379e1723a5dcb36310a6f | |
parent | 251533c9556bbb894524588ff15ed02ce645f264 (diff) | |
download | binutils-gdb-9578239d3edd0341cca6686bdf89ba9f5a1cd9f7.tar.gz |
* coff-or32.c (bfd_section_from_shdr): Remove unused local
variable `ptr'.
* cofflink.c (process_embedded_commands): Remove unused local
variables `had_read' and `had_shared'.
* ecofflink.c (bfd_ecoff_debug_accumulate): Remove unused local
variable `fdr_adr'.
* ihex.c (ihex_read_section): Remove unused local variable `addr'.
-rw-r--r-- | bfd/ChangeLog | 10 | ||||
-rw-r--r-- | bfd/coff-or32.c | 4 | ||||
-rw-r--r-- | bfd/cofflink.c | 4 | ||||
-rw-r--r-- | bfd/ecofflink.c | 3 | ||||
-rw-r--r-- | bfd/ihex.c | 2 |
5 files changed, 10 insertions, 13 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 10f9ba21985..fbba5b424a9 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,13 @@ +2006-05-04 Ben Elliston <bje@au.ibm.com> + + * coff-or32.c (bfd_section_from_shdr): Remove unused local + variable `ptr'. + * cofflink.c (process_embedded_commands): Remove unused local + variables `had_read' and `had_shared'. + * ecofflink.c (bfd_ecoff_debug_accumulate): Remove unused local + variable `fdr_adr'. + * ihex.c (ihex_read_section): Remove unused local variable `addr'. + 2006-05-03 Alan Modra <amodra@bigpond.net.au> * libbfd-in.h (_bfd_generic_new_section_hook): Declare. diff --git a/bfd/coff-or32.c b/bfd/coff-or32.c index c8f0fe03601..dc4114bb1c1 100644 --- a/bfd/coff-or32.c +++ b/bfd/coff-or32.c @@ -317,11 +317,7 @@ reloc_processing (relent,reloc, symbols, abfd, section) } else { - asymbol *ptr; relent->sym_ptr_ptr = symbols + obj_convert (abfd)[reloc->r_symndx]; - - ptr = *(relent->sym_ptr_ptr); - relent->addend = 0; relent->address-= section->vma; diff --git a/bfd/cofflink.c b/bfd/cofflink.c index a1f6684bb61..c17701c16e8 100644 --- a/bfd/cofflink.c +++ b/bfd/cofflink.c @@ -1239,9 +1239,7 @@ process_embedded_commands (bfd *output_bfd, asection *asec; int loop = 1; int had_write = 0; - int had_read = 0; int had_exec= 0; - int had_shared= 0; s += 5; s = get_name (s, &name); @@ -1255,10 +1253,8 @@ process_embedded_commands (bfd *output_bfd, had_write = 1; break; case 'R': - had_read = 1; break; case 'S': - had_shared = 1; break; case 'X': had_exec = 1; diff --git a/bfd/ecofflink.c b/bfd/ecofflink.c index 4246e94f393..d3d79b4a4d7 100644 --- a/bfd/ecofflink.c +++ b/bfd/ecofflink.c @@ -782,7 +782,6 @@ bfd_ecoff_debug_accumulate (handle, output_bfd, output_debug, output_swap, fdr_ptr += fdr_add, i++) { FDR fdr; - bfd_vma fdr_adr; bfd_byte *sym_out; bfd_byte *lraw_src; bfd_byte *lraw_end; @@ -799,8 +798,6 @@ bfd_ecoff_debug_accumulate (handle, output_bfd, output_debug, output_swap, else (*input_swap->swap_fdr_in) (input_bfd, (PTR) fdr_ptr, &fdr); - fdr_adr = fdr.adr; - /* FIXME: It is conceivable that this FDR points to the .init or .fini section, in which case this will not do the right thing. */ diff --git a/bfd/ihex.c b/bfd/ihex.c index fb2ab96c99e..6695fe51bea 100644 --- a/bfd/ihex.c +++ b/bfd/ihex.c @@ -553,7 +553,6 @@ ihex_read_section (bfd *abfd, asection *section, bfd_byte *contents) { char hdr[8]; unsigned int len; - bfd_vma addr; unsigned int type; unsigned int i; @@ -568,7 +567,6 @@ ihex_read_section (bfd *abfd, asection *section, bfd_byte *contents) goto error_return; len = HEX2 (hdr); - addr = HEX4 (hdr + 2); type = HEX2 (hdr + 6); /* We should only see type 0 records here. */ |