diff options
| author | Tharo <tharo10600@gmail.com> | 2026-05-06 22:33:03 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-06 23:33:03 +0200 |
| commit | 2c481eaeebcfe2d78efa305d3e1b908100bebf14 (patch) | |
| tree | f06c98329359fc04189040eeb3e056c150dd47ee /tools/elf32.h | |
| parent | 70701b8ac9b5f41a2cc71a8ce59a211c137aa298 (diff) | |
Partial linking of spec segments (#2661)
* Partial linking of overlay segments, relax linker script alignment
* Partial linking of all spec segments
* Fix update, remove _RomPos from linker script
* iQue version working pending COM-plugin update
* Add plf map file resolution to sym_info.py, local symbol merging is broken
* git subrepo pull tools/com-plugin
subrepo:
subdir: "tools/com-plugin"
merged: "c4f3ba845"
upstream:
origin: "git@github.com:Thar0/com-plugin.git"
branch: "main"
commit: "c4f3ba845"
git-subrepo:
version: "0.4.6"
origin: "https://github.com/ingydotnet/git-subrepo"
commit: "110b9eb"
* Make tools compatible with partial linking
Co-authored-by: Anghelo Carvajal <angheloalf95@gmail.com>
* Remove unused files
* Fix some makefile bits
* mkspecrules cleanup
* Comment on the makerom linker layout in mkldscript
* Revert linker padding strategy back to pad_text spec directives
* Comment on objcopy elf -> rom step
* Adjust tool descriptions
* Fix compressed builds
* rm reloc_prereq, no longer used
* Makefile merge fix
Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>
---------
Co-authored-by: Anghelo Carvajal <angheloalf95@gmail.com>
Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>
Diffstat (limited to 'tools/elf32.h')
| -rw-r--r-- | tools/elf32.h | 74 |
1 files changed, 0 insertions, 74 deletions
diff --git a/tools/elf32.h b/tools/elf32.h deleted file mode 100644 index d291883f5..000000000 --- a/tools/elf32.h +++ /dev/null @@ -1,74 +0,0 @@ -#ifndef ELF_H -#define ELF_H - -#include <stddef.h> - -enum -{ - ELF_MACHINE_NONE = 0, - ELF_MACHINE_MIPS = 8, -}; - -enum -{ - ELF_TYPE_RELOC = 1, - ELF_TYPE_EXEC, - ELF_TYPE_SHARED, - ELF_TYPE_CORE, -}; - -struct Elf32 -{ - uint8_t endian; - uint16_t type; - uint16_t machine; - uint32_t version; - uint32_t entry; - uint32_t phoff; - uint32_t shoff; - uint16_t ehsize; - uint16_t phentsize; - uint16_t phnum; - uint16_t shentsize; - uint16_t shnum; - uint16_t shstrndx; - int symtabndx; - int strtabndx; - int numsymbols; - - const uint8_t *data; - size_t dataSize; - uint16_t (*read16)(const uint8_t *); - uint32_t (*read32)(const uint8_t *); -}; - -enum -{ - SHT_NULL = 0, - SHT_PROGBITS, - SHT_SYMTAB, - SHT_STRTAB, -}; - -struct Elf32_Section -{ - const char *name; - uint32_t type; - uint32_t flags; - uint32_t addr; - uint32_t offset; - uint32_t addralign; - uint32_t entsize; -}; - -struct Elf32_Symbol -{ - const char *name; - uint32_t value; -}; - -bool elf32_init(struct Elf32 *e, const void *data, size_t size); -bool elf32_get_section(struct Elf32 *e, struct Elf32_Section *sec, int secnum); -bool elf32_get_symbol(struct Elf32 *e, struct Elf32_Symbol *sym, int symnum); - -#endif |
