shithub: scc

ref: 00d5bab0a1975bb9bb2d888f1945595afe1b7bdb
dir: /src/libmach/elf64/elf64.h/

View raw version
#include <scc/elf/elftypes.h>
#include <scc/elf/elfhdr.h>

#define Elf_Ehdr Elf64_Ehdr

struct elf64 {
	Elf_Ehdr hdr;
};

extern int elf64new(Obj *);
extern int elf64read(Obj *, FILE *);
extern int elf64setidx(long, char **, long *, FILE *);
extern int elf64getidx(long *, char ***, long **, FILE *);
extern int elf64pc2line(Obj *, unsigned long long , char *, int *);
extern int elf64strip(Obj *);
extern void elf64del(Obj *);
extern int elf64write(Obj *, Map *, FILE *);
extern int elf64probe(unsigned char *, char **);

extern int elf64xsetidx(int long , char *[], long [], FILE *);
extern int elf64xgetidx(int, long *, char ***, long **, FILE *);

extern Symbol *elf64getsym(Obj *, int *, Symbol *);
extern Section *elf64getsec(Obj *, int *, Section *);
extern Map *elf64loadmap(Obj *, FILE *);