summaryrefslogtreecommitdiff
path: root/include
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
commitc72f61d67a429f3b925b6fa13cd8d5d480ce1a5a (patch)
tree20e49a9435096e872f04f02c085c2b76066dd59d /include
parentaf49a50647d60839d94e40921a3e3d3a14c4118c (diff)
downloadgdb-c72f61d67a429f3b925b6fa13cd8d5d480ce1a5a.tar.gz
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')
-rw-r--r--include/elf/ChangeLog4
-rw-r--r--include/elf/internal.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/include/elf/ChangeLog b/include/elf/ChangeLog
index 6481c7bc6ad..0c857ae0c6c 100644
--- a/include/elf/ChangeLog
+++ b/include/elf/ChangeLog
@@ -1,3 +1,7 @@
+2006-12-19 Nathan Sidwell <nathan@codesourcery.com>
+
+ * internal.h (struct elf_segment_map): Add p_vaddr_offset field.
+
2006-12-07 Kazu Hirata <kazu@codesourcery.com>
* m68k.h (EF_M68K_ISA_MASK, EF_M68K_ISA_A_NODIV,
diff --git a/include/elf/internal.h b/include/elf/internal.h
index d368a3fa6e7..f2161ff9d8e 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