Mercurial > hg > chrpath
view protos.h @ 1:bbbfb3f97919
implement 32 and 64 bit support
author | Peter Meerwald <p.meerwald@bct-electronic.com> |
---|---|
date | Fri, 20 Jul 2012 11:26:24 +0200 |
parents | b8f7423e385c |
children |
line wrap: on
line source
#ifndef PROTOS_H #define PROTOS_H #include <elf.h> #include "config.h" #ifdef WORDS_BIGENDIAN #define ELFDATA2 ELFDATA2MSB #else #define ELFDATA2 ELFDATA2LSB #endif int killrpath(const char *filename); int chrpath(const char *filename, const char *newpath, int convert); int elf32_open(const char *filename, int flags, Elf32_Ehdr *ehdr); int elf64_open(const char *filename, int flags, Elf64_Ehdr *ehdr); void elf_close(int fd); int elf32_find_dynamic_section(int fd, Elf32_Ehdr *ehdr, Elf32_Phdr *phdr); int elf64_find_dynamic_section(int fd, Elf64_Ehdr *ehdr, Elf64_Phdr *phdr); const char *elf_tagname(int tag); int elf_dynpath_tag(int tag); #endif /* PROTOS_H */