* libelf.h (struct elf_obj_tdata): New member program_header_size.

* elfcode.h (get_program_header_size): New parameters sorted_hdrs,
	count, and maxpagesize.  All callers updated.
	If sorted_hdrs is non-NULL, use it to compute the number of segments.
	Save result in case called again.
	(assign_file_positions_except_relocs): Sort headers before calling
	get_program_header_size.
This commit is contained in:
David Edelsohn 1995-02-01 05:56:53 +00:00
parent e802f0be04
commit ef6fb95dea
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,13 @@
Tue Jan 31 21:53:28 1995 Doug Evans <dje@canuck.cygnus.com>
* libelf.h (struct elf_obj_tdata): New member program_header_size.
* elfcode.h (get_program_header_size): New parameters sorted_hdrs,
count, and maxpagesize. All callers updated.
If sorted_hdrs is non-NULL, use it to compute the number of segments.
Save result in case called again.
(assign_file_positions_except_relocs): Sort headers before calling
get_program_header_size.
Tue Jan 31 15:27:53 1995 Ian Lance Taylor <ian@cygnus.com>
* elfcode.h (map_program_segments): Add sorted_hdrs parameter.

View File

@ -480,6 +480,9 @@ struct elf_obj_tdata
sh_info field in the symbol table header, and always read all the
symbols. */
boolean bad_symtab;
/* Records the result of `get_program_header_size'. */
bfd_size_type program_header_size;
};
#define elf_tdata(bfd) ((bfd) -> tdata.elf_obj_data)