shithub: scc

ref: e06ce64d6557512a21c46a2dfa864f2e9a08f70b
dir: /src/libmach/elf64/elf64new.c/

View raw version
#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;
}