aboutsummaryrefslogtreecommitdiff
path: root/include/elf/internal.h
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2006-12-19 08:49:38 +0000
committerNathan Sidwell <nathan@codesourcery.com>2006-12-19 08:49:38 +0000
commit3271a81418b2396c04dc040163a579cddcd23e2e (patch)
treefdf3023b1cd22b459db1f2dc0308fb3c3e2a7600 /include/elf/internal.h
parentf6fe8b45149d111b23f3434c3d67dfa80e273cbe (diff)
downloadgdb-3271a81418b2396c04dc040163a579cddcd23e2e.zip
gdb-3271a81418b2396c04dc040163a579cddcd23e2e.tar.gz
gdb-3271a81418b2396c04dc040163a579cddcd23e2e.tar.bz2
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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/elf/internal.h b/include/elf/internal.h
index d368a3f..f2161ff 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