mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-10 14:59:31 +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:
@ -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>
|
2006-05-03 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
* libbfd-in.h (_bfd_generic_new_section_hook): Declare.
|
* libbfd-in.h (_bfd_generic_new_section_hook): Declare.
|
||||||
|
@ -317,11 +317,7 @@ reloc_processing (relent,reloc, symbols, abfd, section)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
asymbol *ptr;
|
|
||||||
relent->sym_ptr_ptr = symbols + obj_convert (abfd)[reloc->r_symndx];
|
relent->sym_ptr_ptr = symbols + obj_convert (abfd)[reloc->r_symndx];
|
||||||
|
|
||||||
ptr = *(relent->sym_ptr_ptr);
|
|
||||||
|
|
||||||
relent->addend = 0;
|
relent->addend = 0;
|
||||||
relent->address-= section->vma;
|
relent->address-= section->vma;
|
||||||
|
|
||||||
|
@ -1239,9 +1239,7 @@ process_embedded_commands (bfd *output_bfd,
|
|||||||
asection *asec;
|
asection *asec;
|
||||||
int loop = 1;
|
int loop = 1;
|
||||||
int had_write = 0;
|
int had_write = 0;
|
||||||
int had_read = 0;
|
|
||||||
int had_exec= 0;
|
int had_exec= 0;
|
||||||
int had_shared= 0;
|
|
||||||
|
|
||||||
s += 5;
|
s += 5;
|
||||||
s = get_name (s, &name);
|
s = get_name (s, &name);
|
||||||
@ -1255,10 +1253,8 @@ process_embedded_commands (bfd *output_bfd,
|
|||||||
had_write = 1;
|
had_write = 1;
|
||||||
break;
|
break;
|
||||||
case 'R':
|
case 'R':
|
||||||
had_read = 1;
|
|
||||||
break;
|
break;
|
||||||
case 'S':
|
case 'S':
|
||||||
had_shared = 1;
|
|
||||||
break;
|
break;
|
||||||
case 'X':
|
case 'X':
|
||||||
had_exec = 1;
|
had_exec = 1;
|
||||||
|
@ -782,7 +782,6 @@ bfd_ecoff_debug_accumulate (handle, output_bfd, output_debug, output_swap,
|
|||||||
fdr_ptr += fdr_add, i++)
|
fdr_ptr += fdr_add, i++)
|
||||||
{
|
{
|
||||||
FDR fdr;
|
FDR fdr;
|
||||||
bfd_vma fdr_adr;
|
|
||||||
bfd_byte *sym_out;
|
bfd_byte *sym_out;
|
||||||
bfd_byte *lraw_src;
|
bfd_byte *lraw_src;
|
||||||
bfd_byte *lraw_end;
|
bfd_byte *lraw_end;
|
||||||
@ -799,8 +798,6 @@ bfd_ecoff_debug_accumulate (handle, output_bfd, output_debug, output_swap,
|
|||||||
else
|
else
|
||||||
(*input_swap->swap_fdr_in) (input_bfd, (PTR) fdr_ptr, &fdr);
|
(*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
|
/* FIXME: It is conceivable that this FDR points to the .init or
|
||||||
.fini section, in which case this will not do the right
|
.fini section, in which case this will not do the right
|
||||||
thing. */
|
thing. */
|
||||||
|
@ -553,7 +553,6 @@ ihex_read_section (bfd *abfd, asection *section, bfd_byte *contents)
|
|||||||
{
|
{
|
||||||
char hdr[8];
|
char hdr[8];
|
||||||
unsigned int len;
|
unsigned int len;
|
||||||
bfd_vma addr;
|
|
||||||
unsigned int type;
|
unsigned int type;
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
|
|
||||||
@ -568,7 +567,6 @@ ihex_read_section (bfd *abfd, asection *section, bfd_byte *contents)
|
|||||||
goto error_return;
|
goto error_return;
|
||||||
|
|
||||||
len = HEX2 (hdr);
|
len = HEX2 (hdr);
|
||||||
addr = HEX4 (hdr + 2);
|
|
||||||
type = HEX2 (hdr + 6);
|
type = HEX2 (hdr + 6);
|
||||||
|
|
||||||
/* We should only see type 0 records here. */
|
/* We should only see type 0 records here. */
|
||||||
|
Reference in New Issue
Block a user