mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-18 05:12:33 +08:00
Lose some COFF/PE static vars, and peicode.h constify
This patch tidies some COFF and PE code that unnecessarily used static variables to communicate between functions. * coffcode.h (pelength, peheader): Delete static variables. (coff_apply_checksum): Instead, define them as auto vars, and pass.. (coff_read_word, coff_compute_checksum): ..to here. Delete unnecessary forward declarations. * pei-x86_64.c (pdata_count): Delete static variable. (struct pex64_paps): New. (pex64_print_all_pdata_sections, pex64_bfd_print_pdata): Pass a pex64_paps for counting. * peicode.h (jtab): Constify.
This commit is contained in:
@ -699,7 +699,7 @@ typedef struct
|
||||
}
|
||||
jump_table;
|
||||
|
||||
static jump_table jtab[] =
|
||||
static const jump_table jtab[] =
|
||||
{
|
||||
#ifdef I386MAGIC
|
||||
{ I386MAGIC,
|
||||
|
Reference in New Issue
Block a user