* exec.c (exec_close, exec_file_attach): Update.

(add_to_section_table): Initialize 'key' field.
	(add_target_sections, remove_target_sections): Add 'key' argument.
	* exec.h (add_target_sections, remove_target_sections): Add
	'key' argument.
	* solib.c (solib_map_sections, update_solib_list, clear_solib)
	(reload_shared_libraries_1): Update.
	* target.h (struct target_section) <key>: New field.
This commit is contained in:
Tom Tromey
2012-08-22 15:01:50 +00:00
parent b4893d4828
commit ed9eebafbc
5 changed files with 37 additions and 13 deletions

View File

@ -1804,6 +1804,12 @@ struct target_section
struct bfd_section *the_bfd_section;
/* A given BFD may appear multiple times in the target section
list, so each BFD is associated with a given key. The key is
just some convenient pointer that can be used to differentiate
the BFDs. These are managed only by convention. */
void *key;
bfd *bfd; /* BFD file pointer */
};