|
@@ -18,6 +18,7 @@
|
|
#include <string.h>
|
|
#include <string.h>
|
|
#include <stdlib.h>
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
+#include "builtin.h"
|
|
#include "check.h"
|
|
#include "check.h"
|
|
#include "elf.h"
|
|
#include "elf.h"
|
|
#include "special.h"
|
|
#include "special.h"
|
|
@@ -33,7 +34,6 @@ struct alternative {
|
|
};
|
|
};
|
|
|
|
|
|
const char *objname;
|
|
const char *objname;
|
|
-static bool no_fp;
|
|
|
|
struct cfi_state initial_func_cfi;
|
|
struct cfi_state initial_func_cfi;
|
|
|
|
|
|
struct instruction *find_insn(struct objtool_file *file,
|
|
struct instruction *find_insn(struct objtool_file *file,
|
|
@@ -2022,13 +2022,12 @@ static void cleanup(struct objtool_file *file)
|
|
elf_close(file->elf);
|
|
elf_close(file->elf);
|
|
}
|
|
}
|
|
|
|
|
|
-int check(const char *_objname, bool _no_fp, bool no_unreachable, bool orc)
|
|
|
|
|
|
+int check(const char *_objname, bool orc)
|
|
{
|
|
{
|
|
struct objtool_file file;
|
|
struct objtool_file file;
|
|
int ret, warnings = 0;
|
|
int ret, warnings = 0;
|
|
|
|
|
|
objname = _objname;
|
|
objname = _objname;
|
|
- no_fp = _no_fp;
|
|
|
|
|
|
|
|
file.elf = elf_open(objname, orc ? O_RDWR : O_RDONLY);
|
|
file.elf = elf_open(objname, orc ? O_RDWR : O_RDONLY);
|
|
if (!file.elf)
|
|
if (!file.elf)
|