From: David Edelsohn Date: Wed, 1 Feb 1995 05:56:53 +0000 (+0000) Subject: * libelf.h (struct elf_obj_tdata): New member program_header_size. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ef6fb95dea3183ce9dbe74be7b3f986f307718ce;p=binutils-gdb.git * 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. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index f007ca15d9a..f06535d25b9 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,13 @@ +Tue Jan 31 21:53:28 1995 Doug Evans + + * 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 * elfcode.h (map_program_segments): Add sorted_hdrs parameter. diff --git a/bfd/libelf.h b/bfd/libelf.h index 3bbde899623..262007767ff 100644 --- a/bfd/libelf.h +++ b/bfd/libelf.h @@ -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)