blob: b72a92e1432f76a06b70cfddacdc348a0d0ff307 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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__ */
|