* util/grub-pe2elf.c (ehdr): Make static.
(shdr): Likewise. (num_sections): Likewise. (offset): Likewise.
This commit is contained in:
parent
5f47782c29
commit
c30582ba5d
2 changed files with 13 additions and 4 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* util/grub-pe2elf.c (ehdr): Make static.
|
||||||
|
(shdr): Likewise.
|
||||||
|
(num_sections): Likewise.
|
||||||
|
(offset): Likewise.
|
||||||
|
|
||||||
2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
|
2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
Eliminate ofpath limits and possible overflows.
|
Eliminate ofpath limits and possible overflows.
|
||||||
|
|
|
@ -86,6 +86,8 @@ Report bugs to <%s>.\n", program_name, PACKAGE_BUGREPORT);
|
||||||
#define STRTAB_SECTION 9
|
#define STRTAB_SECTION 9
|
||||||
|
|
||||||
#define REL_SECTION 10
|
#define REL_SECTION 10
|
||||||
|
|
||||||
|
/* 10 normal section + up to 4 relocation (.text, .rdata, .data, .symtab). */
|
||||||
#define MAX_SECTIONS 16
|
#define MAX_SECTIONS 16
|
||||||
|
|
||||||
#define STRTAB_BLOCK 256
|
#define STRTAB_BLOCK 256
|
||||||
|
@ -93,10 +95,10 @@ Report bugs to <%s>.\n", program_name, PACKAGE_BUGREPORT);
|
||||||
static char *strtab;
|
static char *strtab;
|
||||||
static int strtab_max, strtab_len;
|
static int strtab_max, strtab_len;
|
||||||
|
|
||||||
Elf32_Ehdr ehdr;
|
static Elf32_Ehdr ehdr;
|
||||||
Elf32_Shdr shdr[MAX_SECTIONS];
|
static Elf32_Shdr shdr[MAX_SECTIONS];
|
||||||
int num_sections;
|
static int num_sections;
|
||||||
grub_uint32_t offset;
|
static grub_uint32_t offset;
|
||||||
|
|
||||||
static int
|
static int
|
||||||
insert_string (const char *name)
|
insert_string (const char *name)
|
||||||
|
|
Loading…
Add table
Reference in a new issue