From 5025372c283e42ace799636c71d460a2b432ab4e Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 14 Nov 2008 14:44:09 +0000 Subject: [PATCH] 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. --- include/elf/ChangeLog | 4 ++++ include/elf/internal.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/include/elf/ChangeLog b/include/elf/ChangeLog index 2699b03d4..3cfc24fe4 100644 --- a/include/elf/ChangeLog +++ b/include/elf/ChangeLog @@ -1,3 +1,7 @@ +2008-11-14 Nathan Sidwell + + * internal.h (struct elf_segment_map): Add header_size field. + 2008-10-13 Ulrich Weigand * common.h (AT_BASE_PLATFORM, AT_EXECFN): Define. diff --git a/include/elf/internal.h b/include/elf/internal.h index 513f6763c..9ea175c9d 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;