elf64new.c - scc - simple c99 compiler
 (HTM) git clone git://git.simple-cc.org/scc
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Submodules
 (DIR) README
 (DIR) LICENSE
       ---
       elf64new.c (293B)
       ---
            1 #include <stdio.h>
            2 #include <stdlib.h>
            3 
            4 #include <scc/mach.h>
            5 #include <scc/elf64.h>
            6 
            7 #include "../libmach.h"
            8 #include "fun.h"
            9 
           10 int
           11 elf64new(Obj *obj, int type)
           12 {
           13         struct elf64 *elf;
           14 
           15         if ((elf = calloc(1, sizeof(*elf))) == NULL)
           16                 return -1;
           17         obj->data = elf;
           18         obj->index = "/";
           19         return 0;
           20 }