aboutsummaryrefslogtreecommitdiff
path: root/include/elf/internal.h
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/elf/internal.h
parent4bc251014580513b8b4e3e4a5d1547ca2442644e (diff)
downloadfsf-binutils-gdb-2b0bc0884c18624ca338cc984cff5f0a0c0ca9cd.zip
fsf-binutils-gdb-2b0bc0884c18624ca338cc984cff5f0a0c0ca9cd.tar.gz
fsf-binutils-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/elf/internal.h')
-rw-r--r--include/elf/internal.h2
1 files changed, 2 insertions, 0 deletions
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;