forked from Imagelibrary/binutils-gdb
* ldlang.h (lang_input_statement_type): Remove fields subfiles,
total_size, superfile and chain. * ldfile.c (open_a): Don't clear search_dirs_flag. (ldfile_open_file): Don't try to open superfile. Assert that file has not already been opened. * ldlang.c (new_afile): Don't initialize superfile. * ldmain.c (add_archive_element): Don't initialize subfiles or chain or superfile. Initialize search_dirs_flag to false.
This commit is contained in:
17
ld/ldmain.c
17
ld/ldmain.c
@@ -552,22 +552,17 @@ add_archive_element (info, abfd, name)
|
||||
input->local_sym_name = abfd->filename;
|
||||
input->the_bfd = abfd;
|
||||
input->asymbols = NULL;
|
||||
input->subfiles = NULL;
|
||||
input->next = NULL;
|
||||
input->just_syms_flag = false;
|
||||
input->loaded = false;
|
||||
input->chain = NULL;
|
||||
|
||||
/* FIXME: This is wrong. It should point to an entry for the
|
||||
archive itself. However, it doesn't seem to matter. */
|
||||
input->superfile = NULL;
|
||||
input->search_dirs_flag = false;
|
||||
|
||||
/* FIXME: The following fields are not set: header.next,
|
||||
header.type, closed, passive_position, symbol_count, total_size,
|
||||
next_real_file, is_archive, search_dirs_flag, target, real,
|
||||
common_section, common_output_section, complained. This bit of
|
||||
code is from the old decode_library_subfile function. I don't
|
||||
know whether any of those fields matters. */
|
||||
header.type, closed, passive_position, symbol_count,
|
||||
next_real_file, is_archive, target, real, common_section,
|
||||
common_output_section, complained. This bit of code is from the
|
||||
old decode_library_subfile function. I don't know whether any of
|
||||
those fields matters. */
|
||||
|
||||
ldlang_add_file (input);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user