Download src/php/php-src/ext/opcache/jit/ir/ir_elf.h from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 1.89 kB
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/opcache/jit/ir/ir_elf.h
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/opcache/jit/ir/ir_elf.h
-
curl -L -o ir_elf.h https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/opcache/jit/ir/ir_elf.h
1.89 kB
| /* | |
| * IR - Lightweight JIT Compilation Framework | |
| * (ELF header definitions) | |
| * Copyright (C) 2022 Zend by Perforce. | |
| * Authors: Dmitry Stogov <dmitry@php.net> | |
| */ | |
| typedef struct _ir_elf_header { | |
| uint8_t emagic[4]; | |
| uint8_t eclass; | |
| uint8_t eendian; | |
| uint8_t eversion; | |
| uint8_t eosabi; | |
| uint8_t eabiversion; | |
| uint8_t epad[7]; | |
| uint16_t type; | |
| uint16_t machine; | |
| uint32_t version; | |
| uintptr_t entry; | |
| uintptr_t phofs; | |
| uintptr_t shofs; | |
| uint32_t flags; | |
| uint16_t ehsize; | |
| uint16_t phentsize; | |
| uint16_t phnum; | |
| uint16_t shentsize; | |
| uint16_t shnum; | |
| uint16_t shstridx; | |
| } ir_elf_header; | |
| typedef struct ir_elf_sectheader { | |
| uint32_t name; | |
| uint32_t type; | |
| uintptr_t flags; | |
| uintptr_t addr; | |
| uintptr_t ofs; | |
| uintptr_t size; | |
| uint32_t link; | |
| uint32_t info; | |
| uintptr_t align; | |
| uintptr_t entsize; | |
| } ir_elf_sectheader; | |
| enum { | |
| ELFSECT_TYPE_PROGBITS = 1, | |
| ELFSECT_TYPE_SYMTAB = 2, | |
| ELFSECT_TYPE_STRTAB = 3, | |
| ELFSECT_TYPE_NOBITS = 8, | |
| ELFSECT_TYPE_DYNSYM = 11, | |
| }; | |
| typedef struct ir_elf_symbol { | |
| uint32_t name; | |
| uint8_t info; | |
| uint8_t other; | |
| uint16_t sectidx; | |
| uintptr_t value; | |
| uint64_t size; | |
| uint32_t name; | |
| uintptr_t value; | |
| uint32_t size; | |
| uint8_t info; | |
| uint8_t other; | |
| uint16_t sectidx; | |
| } ir_elf_symbol; | |
| enum { | |
| ELFSYM_TYPE_DATA = 2, | |
| ELFSYM_TYPE_FUNC = 2, | |
| ELFSYM_TYPE_FILE = 4, | |
| }; | |
| enum { | |
| ELFSYM_BIND_LOCAL = 0, | |
| ELFSYM_BIND_GLOBAL = 1, | |
| }; | |