vita-toolchain

git clone https://git.neptards.moe/neptards/vita-toolchain.git
Log | Files | Refs | README | LICENSE

elf-utils.h (597B)


      1 #ifndef ELF_UTILS_H
      2 #define ELF_UTILS_H
      3 
      4 #include <stdio.h>
      5 #include <libelf.h>
      6 
      7 int elf_utils_copy(Elf *dest, Elf *source);
      8 
      9 Elf *elf_utils_copy_to_file(const char *filename, Elf *source, FILE **file);
     10 
     11 int elf_utils_duplicate_scn_contents(Elf *e, int scndx);
     12 int elf_utils_duplicate_shstrtab(Elf *e);
     13 void elf_utils_free_scn_contents(Elf *e, int scndx);
     14 
     15 int elf_utils_shift_contents(Elf *e, int start_offset, int shift_amount);
     16 
     17 Elf_Scn *elf_utils_new_scn_with_name(Elf *e, const char *scn_name);
     18 
     19 Elf_Scn *elf_utils_new_scn_with_data(Elf *e, const char *scn_name, void *buf, int len);
     20 
     21 #endif