aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2011-01-10 13:13:32 +0000
committerH.J. Lu <hjl.tools@gmail.com>2011-01-10 13:13:32 +0000
commit1e91580429f7200d6dfd78660b2ac603a621e0da (patch)
tree2b128d3b65c28bb123c9c0273884a5e69f8ab236 /ld
parentf39a75d0cd43b47ae2f8775d461e65baeefcbc9b (diff)
downloadgdb-1e91580429f7200d6dfd78660b2ac603a621e0da.zip
gdb-1e91580429f7200d6dfd78660b2ac603a621e0da.tar.gz
gdb-1e91580429f7200d6dfd78660b2ac603a621e0da.tar.bz2
Remove startup_file from ldlang.c.
2011-01-10 H.J. Lu <hongjiu.lu@intel.com> * ldlang.c (startup_file): Removed. (lang_startup): Updated.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog5
-rw-r--r--ld/ldlang.c5
2 files changed, 6 insertions, 4 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index e9e8898..be66386 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@
+2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
+
+ * ldlang.c (startup_file): Removed.
+ (lang_startup): Updated.
+
2011-01-05 H.J. Lu <hongjiu.lu@intel.com>
PR ld/12364
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 097c390..5251804 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -55,7 +55,6 @@ static struct obstack map_obstack;
#define obstack_chunk_alloc xmalloc
#define obstack_chunk_free free
-static const char *startup_file;
static const char *entry_symbol_default = "start";
static bfd_boolean placed_commons = FALSE;
static bfd_boolean stripped_excluded_sections = FALSE;
@@ -6705,15 +6704,13 @@ lang_add_attribute (enum statement_enum attribute)
void
lang_startup (const char *name)
{
- if (startup_file != NULL)
+ if (first_file->filename != NULL)
{
einfo (_("%P%F: multiple STARTUP files\n"));
}
first_file->filename = name;
first_file->local_sym_name = name;
first_file->real = TRUE;
-
- startup_file = name;
}
void