mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 17:40:49 +00:00
Remove startup_file from ldlang.c.
2011-01-10 H.J. Lu <hongjiu.lu@intel.com> * ldlang.c (startup_file): Removed. (lang_startup): Updated.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user