ref: 1b51b30c2d7d831f8e8ef83b254fe6cd2052ff89
dir: /src/libmach/elf64/elf64new.c/
#include <stdio.h>
#include <stdlib.h>
#include <scc/mach.h>
#include "../libmach.h"
#include "elf64.h"
int
elf64new(Obj *obj)
{
struct elf64 *elf;
if ((elf = calloc(1, sizeof(*elf))) == NULL)
return -1;
obj->data = elf;
obj->index = "/";
return 0;
}