Exemplo n.º 1
0
unsigned long gelf_newehdr(Elf * elf, int cls)
{
	if (!valid_class(cls) || !_msize(cls, _elf_version, ELF_T_EHDR)) {
		seterr(ERROR_UNKNOWN_CLASS);
		return 0;
	}

	return (unsigned long)_elf_newehdr(elf, cls);
}
Exemplo n.º 2
0
Elf64_Ehdr*
elf64_newehdr(Elf *elf) {
    return (Elf64_Ehdr*)_elf_newehdr(elf, ELFCLASS64);
}
Exemplo n.º 3
0
Elf32_Ehdr*
elf32_newehdr(Elf *elf) {
    return (Elf32_Ehdr*)_elf_newehdr(elf, ELFCLASS32);
}