mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 18:08:24 +08:00
* elf.c (assign_file_positions_for_load_sections): Trust
p_align_valid. (copy_elf_program_header): Copy PT_NULL segments.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2007-09-24 Daniel Jacobowitz <dan@codesourcery.com>
|
||||||
|
|
||||||
|
* elf.c (assign_file_positions_for_load_sections): Trust
|
||||||
|
p_align_valid.
|
||||||
|
(copy_elf_program_header): Copy PT_NULL segments.
|
||||||
|
|
||||||
2007-09-24 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
|
2007-09-24 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
|
||||||
|
|
||||||
* elf32-spu.c (is_indirect_branch): New function.
|
* elf32-spu.c (is_indirect_branch): New function.
|
||||||
|
@ -4146,10 +4146,10 @@ assign_file_positions_for_load_sections (bfd *abfd,
|
|||||||
|
|
||||||
p->p_align = maxpagesize;
|
p->p_align = maxpagesize;
|
||||||
}
|
}
|
||||||
else if (m->count == 0)
|
|
||||||
p->p_align = 1 << bed->s->log_file_align;
|
|
||||||
else if (m->p_align_valid)
|
else if (m->p_align_valid)
|
||||||
p->p_align = m->p_align;
|
p->p_align = m->p_align;
|
||||||
|
else if (m->count == 0)
|
||||||
|
p->p_align = 1 << bed->s->log_file_align;
|
||||||
else
|
else
|
||||||
p->p_align = 0;
|
p->p_align = 0;
|
||||||
|
|
||||||
@ -5666,10 +5666,6 @@ copy_elf_program_header (bfd *ibfd, bfd *obfd)
|
|||||||
asection *first_section = NULL;
|
asection *first_section = NULL;
|
||||||
asection *lowest_section = NULL;
|
asection *lowest_section = NULL;
|
||||||
|
|
||||||
/* FIXME: Do we need to copy PT_NULL segment? */
|
|
||||||
if (segment->p_type == PT_NULL)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
/* Compute how many sections are in this segment. */
|
/* Compute how many sections are in this segment. */
|
||||||
for (section = ibfd->sections, section_count = 0;
|
for (section = ibfd->sections, section_count = 0;
|
||||||
section != NULL;
|
section != NULL;
|
||||||
|
Reference in New Issue
Block a user