mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-24 02:24:46 +08:00
* 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'.
This commit is contained in:
parent
251533c955
commit
9578239d3e
@ -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.
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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. */
|
||||
|
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user