aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2008-11-14 14:44:09 +0000
committerNick Clifton <nickc@redhat.com>2008-11-14 14:44:09 +0000
commit2b0bc0884c18624ca338cc984cff5f0a0c0ca9cd (patch)
treee818e0cb8aa9f6c1a34211e4c9b5f52047d7bdbe /include
parent4bc251014580513b8b4e3e4a5d1547ca2442644e (diff)
downloadgdb-2b0bc0884c18624ca338cc984cff5f0a0c0ca9cd.zip
gdb-2b0bc0884c18624ca338cc984cff5f0a0c0ca9cd.tar.gz
gdb-2b0bc0884c18624ca338cc984cff5f0a0c0ca9cd.tar.bz2
bfd/
* elf.c (assign_file_positions_for_load_sections): Use header_size to avoid moving the load address of file headers. (assign_file_positions_for_load_sections): Set header_size for segments containing the file header. include/elf/ * internal.h (struct elf_segment_map): Add header_size field.
Diffstat (limited to 'include')
-rw-r--r--include/elf/ChangeLog4
-rw-r--r--include/elf/internal.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/include/elf/ChangeLog b/include/elf/ChangeLog
index 2699b03..3cfc24f 100644
--- a/include/elf/ChangeLog
+++ b/include/elf/ChangeLog
@@ -1,3 +1,7 @@
+2008-11-14 Nathan Sidwell <nathan@codesourcery.com>
+
+ * internal.h (struct elf_segment_map): Add header_size field.
+
2008-10-13 Ulrich Weigand <uweigand@de.ibm.com>
* common.h (AT_BASE_PLATFORM, AT_EXECFN): Define.
diff --git a/include/elf/internal.h b/include/elf/internal.h
index 513f676..9ea175c 100644
--- a/include/elf/internal.h
+++ b/include/elf/internal.h
@@ -266,6 +266,8 @@ struct elf_segment_map
bfd_vma p_align;
/* Segment size in file and memory */
bfd_vma p_size;
+ /* Required size of filehdr + phdrs, if non-zero */
+ bfd_vma header_size;
/* Whether the p_flags field is valid; if not, the flags are based
on the section flags. */
unsigned int p_flags_valid : 1;