diff options
| author | kx <kx@radix-linux.su> | 2026-10-09 18:00:15 +0300 |
|---|---|---|
| committer | kx <kx@radix-linux.su> | 2026-10-09 18:00:15 +0300 |
| commit | 065da3509019b15dd0e678072e6be629e5330bef (patch) | |
| tree | 69c934c9e786ac048b4fbe8f4c4c5571661521f4 /utils/mcpu-link.h | |
| parent | d130fe27fa753be02ed76fd9b277aa3c3d928eb9 (diff) | |
| download | libmcpu-0.4.0.tar.xz | |
Version 0.4.00.4.0
Diffstat (limited to 'utils/mcpu-link.h')
| -rw-r--r-- | utils/mcpu-link.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/utils/mcpu-link.h b/utils/mcpu-link.h new file mode 100644 index 0000000..5d28158 --- /dev/null +++ b/utils/mcpu-link.h @@ -0,0 +1,18 @@ +#ifndef __CPU_LINK_H +#define __CPU_LINK_H +#include "mcpu-asm.h" + +typedef enum cpu_link_mode +{ + CPU_LINK_STATIC_EXEC = 0, + CPU_LINK_DYNAMIC_EXEC, + CPU_LINK_SHARED, + CPU_LINK_RELOCATABLE +} cpu_link_mode; + +int cpu_link_objects( cpu_asm_object *objs, size_t nobjs, cpu_asm_image *image, char *err, size_t errsz ); +int cpu_link_objects_mode( cpu_asm_object *objs, size_t nobjs, cpu_asm_image *image, + cpu_link_mode mode, char *err, size_t errsz); +int cpu_link_relocatable( cpu_asm_object *objs, size_t nobjs, cpu_asm_object *object, + char *err, size_t errsz ); +#endif |
