aboutsummaryrefslogtreecommitdiff
path: root/bfd/libelf.h
diff options
context:
space:
mode:
authorDavid Edelsohn <dje.gcc@gmail.com>1995-02-01 05:56:53 +0000
committerDavid Edelsohn <dje.gcc@gmail.com>1995-02-01 05:56:53 +0000
commitef6fb95dea3183ce9dbe74be7b3f986f307718ce (patch)
treefe60159e91dfd194de6a899eb220358420a84d8a /bfd/libelf.h
parente802f0be04f551980508893f172a7b2642eda098 (diff)
downloadgdb-ef6fb95dea3183ce9dbe74be7b3f986f307718ce.zip
gdb-ef6fb95dea3183ce9dbe74be7b3f986f307718ce.tar.gz
gdb-ef6fb95dea3183ce9dbe74be7b3f986f307718ce.tar.bz2
* 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.
Diffstat (limited to 'bfd/libelf.h')
-rw-r--r--bfd/libelf.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/bfd/libelf.h b/bfd/libelf.h
index 3bbde89..2620077 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)