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.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user