aruu

[MIRROR] Actual replacement for Busybox | suckless
git clone https://git.daat.foo/aruu.git
Log | Files | Refs | README | LICENSE

format.h (659B)


      1 /* format dispatch: selects the output object format at compile time
      2  * a new format adds its emit function below and its source file
      3  * alongside emit_elf.c / emit_macho.c */
      4 
      5 #ifndef AS_FORMAT_H
      6 #define AS_FORMAT_H
      7 
      8 #include "../config.h"
      9 
     10 struct Table;
     11 struct Vector;
     12 
     13 #if TC_TARGET_PLATFORM == TC_PLATFORM_APPLE
     14 int emit_macho_obj(
     15     const char *ofn, struct Vector *sections, struct Table *label_table, struct Vector *unresolved
     16 );
     17 #define EMIT_OBJ emit_macho_obj
     18 #else
     19 int emit_elf_obj(
     20     const char *ofn, struct Vector *sections, struct Table *label_table, struct Vector *unresolved
     21 );
     22 #define EMIT_OBJ emit_elf_obj
     23 #endif
     24 
     25 #endif /* AS_FORMAT_H */