diff options
author | Alan Modra <amodra@gmail.com> | 2014-05-24 22:40:11 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2014-05-25 00:54:22 +0930 |
commit | 0ef76c43d739e436ad7f1cccd253cc5713d2d63d (patch) | |
tree | 3fe81553c595098ee6d38e1df9499de6a98f8319 /ld | |
parent | 697aa1b7d399d80cf164f190d3743513085f1009 (diff) | |
download | gdb-0ef76c43d739e436ad7f1cccd253cc5713d2d63d.zip gdb-0ef76c43d739e436ad7f1cccd253cc5713d2d63d.tar.gz gdb-0ef76c43d739e436ad7f1cccd253cc5713d2d63d.tar.bz2 |
Localize varible to avoid warning
* ldlang.c (base): Move variable to..
* mri.c: ..here, and make static.
* ldlang.h (base): Delete declaration.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 6 | ||||
-rw-r--r-- | ld/ldlang.c | 2 | ||||
-rw-r--r-- | ld/ldlang.h | 1 | ||||
-rw-r--r-- | ld/mri.c | 2 |
4 files changed, 8 insertions, 3 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index b3e696d..4e1ab6c 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +2014-05-24 Alan Modra <amodra@gmail.com> + + * ldlang.c (base): Move variable to.. + * mri.c: ..here, and make static. + * ldlang.h (base): Delete declaration. + 2014-05-20 Hans-Peter Nilsson <hp@axis.com> * Makefile.am (ALL_EMULATION_SOURCES): Add missing eelf32mbel_linux.c. diff --git a/ld/ldlang.c b/ld/ldlang.c index 7c076a2..b48a9b3 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -112,8 +112,6 @@ struct asneeded_minfo **asneeded_list_tail; DEFINED() need to increment this at the start of the traversal. */ int lang_statement_iteration = 0; -etree_type *base; /* Relocation base - or null */ - /* Return TRUE if the PATTERN argument is a wildcard pattern. Although backslashes are treated specially if a pattern contains wildcards, we do not consider the mere presence of a backslash to diff --git a/ld/ldlang.h b/ld/ldlang.h index 47cc4df..7d69c56 100644 --- a/ld/ldlang.h +++ b/ld/ldlang.h @@ -505,7 +505,6 @@ extern lang_output_section_statement_type *abs_output_section; extern lang_statement_list_type lang_output_section_statement; extern struct lang_input_statement_flags input_flags; extern bfd_boolean lang_has_input_file; -extern etree_type *base; extern lang_statement_list_type *stat_ptr; extern bfd_boolean delete_output_file_on_failure; @@ -44,6 +44,8 @@ struct section_name_struct { }; static unsigned int symbol_truncate = 10000; +static etree_type *base; /* Relocation base - or null */ + static struct section_name_struct *order; static struct section_name_struct *only_load; static struct section_name_struct *address; |