forked from diffblue/cbmc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ld_mode.h
50 lines (35 loc) · 1.17 KB
/
ld_mode.h
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*******************************************************************\
Module: Base class for command line interpretation
Author: CM Wintersteiger
Date: June 2006
\*******************************************************************/
/// \file
/// Base class for command line interpretation
#ifndef CPROVER_GOTO_CC_LD_MODE_H
#define CPROVER_GOTO_CC_LD_MODE_H
#include "gcc_message_handler.h"
#include "goto_cc_mode.h"
class ld_modet : public goto_cc_modet
{
public:
int doit() final;
void help_mode() final;
ld_modet(
goto_cc_cmdlinet &_cmdline,
const std::string &_base_name);
protected:
gcc_message_handlert gcc_message_handler;
std::string native_tool_name;
const std::string goto_binary_tmp_suffix;
/// \brief call ld with original command line
int run_ld();
/// Build an ELF or Mach-O binary containing a goto-cc section.
/// \param building_executable: set to true iff the target file is an
/// executable
/// \param object_files: object files to be linked
/// \return zero, unless an error occurred
int ld_hybrid_binary(
bool building_executable,
const std::list<std::string> &object_files);
};
#endif // CPROVER_GOTO_CC_LD_MODE_H