diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2006-12-19 11:49:38 +0300 |
---|---|---|
committer | Nathan Sidwell <nathan@codesourcery.com> | 2006-12-19 11:49:38 +0300 |
commit | 94f3d968152f1f6ee2a5c9603a408950eeb2c4c9 (patch) | |
tree | eb50ccc5b42b3573bee59c9f815f00a085cea3b6 /include/elf/internal.h | |
parent | a4b117829f0733d898c64cbc58565fe5ce6e1359 (diff) |
bfd/
* elf.c (assign_file_positions_for_load_sections): Adjust p_vaddr
by p_vaddr_offset. Copy alignment & use if it is valid.
(rewrite_elf_program_headers): Cope with leading padding in a
segment that does not contain file or program headers.
(copy_elf_program_header): Likewise.
include/elf/
* internal.h (struct elf_segment_map): Add p_vaddr_offset field.
Diffstat (limited to 'include/elf/internal.h')
-rw-r--r-- | include/elf/internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/elf/internal.h b/include/elf/internal.h index d368a3fa6..f2161ff9d 100644 --- a/include/elf/internal.h +++ b/include/elf/internal.h @@ -235,6 +235,8 @@ struct elf_segment_map unsigned long p_flags; /* Program segment physical address. */ bfd_vma p_paddr; + /* Program segment virtual address offset from section vma. */ + bfd_vma p_vaddr_offset; /* Program segment alignment. */ bfd_vma p_align; /* Whether the p_flags field is valid; if not, the flags are based |