aboutsummaryrefslogtreecommitdiff
path: root/ld/ldfile.c
diff options
context:
space:
mode:
authorBen Elliston <bje@au.ibm.com>2005-04-28 23:54:33 +0000
committerBen Elliston <bje@au.ibm.com>2005-04-28 23:54:33 +0000
commit279e75dcef1313cc67233e11c43ec6538cb8706f (patch)
tree6640866e1add13c0e36d228a76264e3f2dc8b1cc /ld/ldfile.c
parentf07e55f031dad1c65dfe580853117375e50c3a56 (diff)
downloadfsf-binutils-gdb-279e75dcef1313cc67233e11c43ec6538cb8706f.zip
fsf-binutils-gdb-279e75dcef1313cc67233e11c43ec6538cb8706f.tar.gz
fsf-binutils-gdb-279e75dcef1313cc67233e11c43ec6538cb8706f.tar.bz2
* ldgram.y (lang_memory_region_type): Make static.
(ldgram_want_filename): Likewise. * ldemul.c (ld_emulation): Make static. * ldfile.h (ldfile_find_command_file): Remove extern. * ldfile.c (ldfile_find_command_file): Make static. * ldlang.h (unique_section_list): Remove extern declaration. * ldlang.c (unique_section_list): Make static. * mri.h (symbol_truncate): Remove extern declaration. * mri.c (symbol_truncate): Make static. (order, only_load, address, alias): Likewise. (alignment, subalignment): Likewise.
Diffstat (limited to 'ld/ldfile.c')
-rw-r--r--ld/ldfile.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ld/ldfile.c b/ld/ldfile.c
index 372f79e..13021d8 100644
--- a/ld/ldfile.c
+++ b/ld/ldfile.c
@@ -45,12 +45,12 @@ enum bfd_architecture ldfile_output_architecture;
search_dirs_type * search_head;
#ifdef VMS
-char * slash = "";
+static char * slash = "";
#else
#if defined (_WIN32) && ! defined (__CYGWIN32__)
-char * slash = "\\";
+static char * slash = "\\";
#else
-char * slash = "/";
+static char * slash = "/";
#endif
#endif
@@ -462,7 +462,7 @@ try_open (const char *name, const char *exten)
/* Try to open NAME; if that fails, look for it in any directories
specified with -L, without and with EXTEND appended. */
-FILE *
+static FILE *
ldfile_find_command_file (const char *name, const char *extend)
{
search_dirs_type *search;