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-ld-options.h | |
| parent | d130fe27fa753be02ed76fd9b277aa3c3d928eb9 (diff) | |
| download | libmcpu-0.4.0.tar.xz | |
Version 0.4.00.4.0
Diffstat (limited to 'utils/mcpu-ld-options.h')
| -rw-r--r-- | utils/mcpu-ld-options.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/utils/mcpu-ld-options.h b/utils/mcpu-ld-options.h new file mode 100644 index 0000000..b72a92e --- /dev/null +++ b/utils/mcpu-ld-options.h @@ -0,0 +1,36 @@ +#ifndef __MCPU_LD_OPTIONS_H__ +#define __MCPU_LD_OPTIONS_H__ 1 + +#include <stddef.h> + +#include "mcpu-exec.h" +#include "mcpu-link.h" +#include "mcpu-tool-options.h" + +typedef struct mcpu_ld_options mcpu_ld_options; +struct mcpu_ld_options +{ + mcpu_tool_options common; + const char *out_fname; + cpu_exec_options exec; + cpu_link_mode mode; + int mode_seen; + int force_static; + int verbose; + int size_option_seen; + const char *soname; + char **inputs; + size_t input_count; + size_t input_capacity; + char **libraries; + size_t library_count; + size_t library_capacity; +}; + +void mcpu_ld_options_init( mcpu_ld_options *options, const char *progname ); +void mcpu_ld_options_free( mcpu_ld_options *options ); +int mcpu_ld_handle_options( mcpu_ld_options *options, + int argc, char **argv ); +void mcpu_ld_usage( const mcpu_ld_options *options ); + +#endif /* __MCPU_LD_OPTIONS_H__ */ |
