scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 56aaae7dc83c343b6e334d662c5b0aca9ccfe630
parent 0dda10db471ab5359b1c88e21f2ff341fca776f6
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sat, 18 Jan 2025 10:16:19 +0100

libmach/elf64: Make public elf64.h

There are some utilities that are going to need low level
access to the internal data, and instead of adding very
specific interfaces without actual reusability use case
it is better to implement these functionalities directly
in these applications (like for example in the case of
objdump).

Diffstat:
Rsrc/libmach/elf64/elf64.h -> include/bits/scc/elf64.h | 0
Msrc/libmach/elf64/elf64.c | 2+-
Msrc/libmach/elf64/elf64archs.c | 2+-
Msrc/libmach/elf64/elf64del.c | 2+-
Msrc/libmach/elf64/elf64getsec.c | 2+-
Msrc/libmach/elf64/elf64getsym.c | 2+-
Msrc/libmach/elf64/elf64new.c | 2+-
Msrc/libmach/elf64/elf64probe.c | 2+-
Msrc/libmach/elf64/elf64read.c | 2+-
Msrc/libmach/elf64/elf64type.c | 2+-
10 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/libmach/elf64/elf64.h b/include/bits/scc/elf64.h diff --git a/src/libmach/elf64/elf64.c b/src/libmach/elf64/elf64.c @@ -1,9 +1,9 @@ #include <stdio.h> #include <scc/mach.h> +#include <scc/elf64.h> #include "../libmach.h" -#include "elf64.h" struct objops elf64 = { .type = elf64type, diff --git a/src/libmach/elf64/elf64archs.c b/src/libmach/elf64/elf64archs.c @@ -1,9 +1,9 @@ #include <stdio.h> #include <scc/mach.h> +#include <scc/elf64.h> #include "../libmach.h" -#include "elf64.h" struct arch elf64archs[] = { { diff --git a/src/libmach/elf64/elf64del.c b/src/libmach/elf64/elf64del.c @@ -2,9 +2,9 @@ #include <stdlib.h> #include <scc/mach.h> +#include <scc/elf64.h> #include "../libmach.h" -#include "elf64.h" void elf64del(Obj *obj) diff --git a/src/libmach/elf64/elf64getsec.c b/src/libmach/elf64/elf64getsec.c @@ -1,9 +1,9 @@ #include <stdio.h> #include <scc/mach.h> +#include <scc/elf64.h> #include "../libmach.h" -#include "elf64.h" Section * elf64getsec(Obj *obj, int *idx, Section *sec) diff --git a/src/libmach/elf64/elf64getsym.c b/src/libmach/elf64/elf64getsym.c @@ -4,9 +4,9 @@ #include <string.h> #include <scc/mach.h> +#include <scc/elf64.h> #include "../libmach.h" -#include "elf64.h" static int typeof(Elf64 *elf, Elf_Sym *ent, char *name) diff --git a/src/libmach/elf64/elf64new.c b/src/libmach/elf64/elf64new.c @@ -2,9 +2,9 @@ #include <stdlib.h> #include <scc/mach.h> +#include <scc/elf64.h> #include "../libmach.h" -#include "elf64.h" int elf64new(Obj *obj, int type) diff --git a/src/libmach/elf64/elf64probe.c b/src/libmach/elf64/elf64probe.c @@ -1,9 +1,9 @@ #include <stdio.h> #include <scc/mach.h> +#include <scc/elf64.h> #include "../libmach.h" -#include "elf64.h" int elf64probe(unsigned char *buf, char **name) diff --git a/src/libmach/elf64/elf64read.c b/src/libmach/elf64/elf64read.c @@ -3,9 +3,9 @@ #include <stdlib.h> #include <scc/mach.h> +#include <scc/elf64.h> #include "../libmach.h" -#include "elf64.h" static int unpack_hdr(int order, unsigned char *buf, Elf_Ehdr *hdr) diff --git a/src/libmach/elf64/elf64type.c b/src/libmach/elf64/elf64type.c @@ -2,9 +2,9 @@ #include <string.h> #include <scc/mach.h> +#include <scc/elf64.h> #include "../libmach.h" -#include "elf64.h" int elf64type(char *name)