#ifndef __SCC_FORMAT_BUILDER_H__ #define __SCC_FORMAT_BUILDER_H__ #include "sccf_utils.h" #include typedef SCC_VEC(sccf_sym_t) sccf_sym_vec_t; typedef SCC_VEC(sccf_reloc_t) sccf_reloc_vec_t; typedef struct { sccf_t sccf; int aligned; scc_strpool_t strpool; scc_hashtable_t str2offset; sccf_sym_vec_t syms; sccf_reloc_vec_t relocs; } sccf_builder_t; void sccf_builder_init(sccf_builder_t *builder); void sccf_builder_add_section(sccf_builder_t *builder, sccf_sect_header_t *sect_header, sccf_sect_data_t *sect_data); void sccf_builder_to_buffer(sccf_builder_t *builder, sccf_buffer_t *buffer); void sccf_builder_to_file(sccf_builder_t *builder, const char *file_path); #endif /* __SCC_FORMAT_BUILDER_H__ */