File: elf.pk

package info (click to toggle)
poke-elf 1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,152 kB
  • sloc: sh: 1,490; makefile: 34
file content (47 lines) | stat: -rw-r--r-- 1,636 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/* elf.pk - ELF implementation for GNU poke.  */

/* Copyright (C) 2024 Jose E. Marchesi.  */

/* This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

/* This file contains a Poke description of the ELF (Executable and
 * Linking Format) object file format.  The ELF format is described in
 * the chapter 4 of the SysV ABI.
 *
 * Both ELF32 and ELF64 are supported.
 *
 * In general, we use the same field names used in the C structs
 * documented in the gABI, that are also used in the widely used ELF
 * implementations like in the GNU binutils and also in elfutils.
 * This makes life easier for system hackers who are already familiar
 * with these names.
 */

load "elf-build.pk";
load "elf-config.pk";
load "elf-common.pk";
load "elf-os-gnu.pk";
load "elf-os-linux.pk";
load "elf-os-llvm.pk";
load "elf-os-openbsd.pk";
load "elf-mach-x86-64.pk";
load "elf-mach-aarch64.pk";
load "elf-mach-mips.pk";
load "elf-mach-sparc.pk";
load "elf-mach-arm.pk";
load "elf-mach-bpf.pk";
load "elf-mach-riscv.pk";
load "elf-32.pk";
load "elf-64.pk";