Displaying 5 results from an estimated 5 matches for "shstrndx".
Did you mean:
e_shstrndx
2013 Dec 01
0
[PATCH v2 4/4] efi: PE file size differ from in-memory size
...eof(e_hdr_pe32p.data_directory) / sizeof(__uint64_t);
@@ -161,17 +161,16 @@ static void usage(char *progname)
int main(int argc, char **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 (...
2013 Nov 27
0
[PATCH 4/4] efi: PE file size differ from in-memory size
...eof(e_hdr_pe32p.data_directory) / sizeof(__uint64_t);
@@ -157,17 +157,16 @@ static void usage(char *progname)
int main(int argc, char **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 (...
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
2005 Mar 06
1
testers sought for script to interpret ELF/klibc executables
...}
if ($magic !~ /^\x7fELF(.)/) {
print "$path: bad magic\n";
return;
}
my $class = ord($1);
my ($ehdrPat, $ehdrSize, $phdrPat, $phdrSize, $phdrFields);
my $ehdrFields = [qw{
ident type machine version entry
phoff shoff flags ehsize
phentsize phnum shentsize
shnum shstrndx
}];
if ($class == ELFCLASS32) {
$ehdrSize = SZ_ELF32HDR;
$ehdrPat = "a[16] SS LL LL L SSSSSS";
$phdrSize = SZ_ELF32PHDR;
$phdrPat = "LL LL LL LL";
$phdrFields = [qw{
type offset vaddr paddr
filesz memsz flags align
}];
}
elsif ($class == ELFCLASS64) {...
2009 Apr 24
2
TBOOT and extlinux
...ION: 0x00190253 --> 0x00803000 (0x22000)
SECTION: 0x00000000 --> 0x00825000 (0x2ac4c)
Loading ELF section table.
SECTION: 0x001b2633 --> 0x00850000 (0x140)
SECTION: 0x001b2253 --> 0x00850140 (0x3a8)
SECTION: 0x001b25fb --> 0x008504e8 (0x38)
Section information: shnum: 8, entSize: 40, shstrndx: 7, addr: 0x850000
Module: /boot/vmlinuz-2.6.28.9-itpm-dirty root=/dev/sda4 ro intel_iommu=on earlyprintk=vga console=ttyS0,115200
Loading /boot/vmlinuz-2.6.28.9-itpm-dirty.....................
SECTION: 0x001b2773 --> 0x00851000 (0x27faa0)
Placed module (0x00851000+0x27faa0)
Module: /boot/initrd...