Displaying 3 results from an estimated 3 matches for "datasz".
Did you mean:
datas
2013 Dec 01
0
[PATCH v2 4/4] efi: PE file size differ from in-memory size
...*argv)
{
- struct stat st;
Elf32_Ehdr e32_hdr;
Elf64_Ehdr e64_hdr;
__uint32_t entry;
__uint8_t class;
- __uint64_t shoff;
- __uint16_t shnum, shentsize, shstrndx;
+ __uint64_t phoff = 0;
+ __uint16_t phnum = 0, phentsize = 0;
unsigned char *id;
FILE *f_in, *f_out;
void *buf;
- size_t datasz, rv;
+ size_t datasz, memsz, rv;
if (argc < 3) {
usage(argv[0]);
@@ -184,11 +183,6 @@ int main(int argc, char **argv)
exit(EXIT_FAILURE);
}
- if (stat(argv[1], &st) != 0) {
- perror("stat");
- exit(EXIT_FAILURE);
- }
-
f_out = fopen(argv[2], "w");
if (...
2013 Nov 27
0
[PATCH 4/4] efi: PE file size differ from in-memory size
...*argv)
{
- struct stat st;
Elf32_Ehdr e32_hdr;
Elf64_Ehdr e64_hdr;
__uint32_t entry;
__uint8_t class;
- __uint64_t shoff;
- __uint16_t shnum, shentsize, shstrndx;
+ __uint64_t phoff = 0;
+ __uint16_t phnum = 0, phentsize = 0;
unsigned char *id;
FILE *f_in, *f_out;
void *buf;
- size_t datasz, rv;
+ size_t datasz, memsz, rv;
if (argc < 3) {
usage(argv[0]);
@@ -180,11 +179,6 @@ int main(int argc, char **argv)
exit(EXIT_FAILURE);
}
- if (stat(argv[1], &st) != 0) {
- perror("stat");
- exit(EXIT_FAILURE);
- }
-
f_out = fopen(argv[2], "w");
if (...
2013 Nov 27
20
[PATCH 0/4] efi: PE header generation fix
The PE headers of the generated efi file were quite buggy. And since OVMF
perform a few consistency checks, syslinux was unable to run on it. I don't
pretend to have a thorough understanding of the PE+ headers, some bugs may
remain. :)
Celelibi (4):
efi: Fix PE header field rva_and_sizes_nr
efi: Location, size and alignment of .text section
efi: Useless relocations in PE file
efi: PE