asm: implement object file reader

This commit is contained in:
2025-05-12 15:51:03 +01:00
parent 2e4d1e53f3
commit 8d9ae5f36a
3 changed files with 245 additions and 0 deletions

18
asm/reader.h Normal file
View File

@@ -0,0 +1,18 @@
#ifndef _ASM_READER_H_
#define _ASM_READER_H_
#include <ivy/asm/reader.h>
#include <stdio.h>
struct ivy_asm_reader {
FILE *r_fp;
struct ivy_asm_object_info r_info;
struct ivy_asm_section_info *r_sections;
};
struct ivy_asm_section_reader {
struct ivy_asm_reader *r_parent;
const struct ivy_asm_section_info *r_info;
};
#endif