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