diff options
author | Nick Clifton <nickc@redhat.com> | 2008-11-14 14:44:09 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2008-11-14 14:44:09 +0000 |
commit | 5025372c283e42ace799636c71d460a2b432ab4e (patch) | |
tree | d1787640cf0e80ab0f2bc66f64283cfc371f8ddf | |
parent | c34ce411144e8354bae63c83a0eddf959a82282a (diff) | |
download | cygnal-5025372c283e42ace799636c71d460a2b432ab4e.tar.gz cygnal-5025372c283e42ace799636c71d460a2b432ab4e.tar.bz2 cygnal-5025372c283e42ace799636c71d460a2b432ab4e.zip |
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.
-rw-r--r-- | include/elf/ChangeLog | 4 | ||||
-rw-r--r-- | include/elf/internal.h | 2 |
2 files changed, 6 insertions, 0 deletions
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 <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 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; |