Fix elftoolchain tools in-tree build
* make variables static * add header for uint*_t typedefs
This commit is contained in:
parent
fa91cabfbd
commit
50f69bfbd6
@ -29,6 +29,7 @@
|
||||
#include <ctype.h>
|
||||
#include <err.h>
|
||||
#include <gelf.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
@ -28,6 +28,7 @@
|
||||
#include <sys/queue.h>
|
||||
#include <err.h>
|
||||
#include <gelf.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
@ -156,7 +156,7 @@ static int vector_type_qualifier_init(struct vector_type_qualifier *);
|
||||
static int vector_type_qualifier_push(struct vector_type_qualifier *,
|
||||
enum type_qualifier);
|
||||
|
||||
int cpp_demangle_gnu3_push_head;
|
||||
static int cpp_demangle_gnu3_push_head;
|
||||
|
||||
/**
|
||||
* @brief Decode the input string by IA-64 C++ ABI style.
|
||||
|
@ -65,7 +65,7 @@ typedef void (*fn_sym_print)(const GElf_Sym *);
|
||||
typedef int (*fn_filter)(char, const GElf_Sym *, const char *);
|
||||
|
||||
/* output filter list */
|
||||
SLIST_HEAD(filter_head, filter_entry) nm_out_filter =
|
||||
static SLIST_HEAD(filter_head, filter_entry) nm_out_filter =
|
||||
SLIST_HEAD_INITIALIZER(nm_out_filter);
|
||||
|
||||
struct filter_entry {
|
||||
|
@ -75,9 +75,9 @@ enum encoding_style {
|
||||
(encoding == ENCODING_8BIT && (c) > 127)))
|
||||
|
||||
|
||||
int encoding_size, entire_file, min_len, show_filename, show_loc;
|
||||
enum encoding_style encoding;
|
||||
enum radix_style radix;
|
||||
static int encoding_size, entire_file, min_len, show_filename, show_loc;
|
||||
static enum encoding_style encoding;
|
||||
static enum radix_style radix;
|
||||
|
||||
static struct option strings_longopts[] = {
|
||||
{ "all", no_argument, NULL, 'a'},
|
||||
|
Loading…
Reference in New Issue
Block a user