mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-22 02:50:08 +08:00
2006-10-15 H.J. Lu <hongjiu.lu@intel.com>
PR ld/3314 * elf.c (assign_file_positions_for_non_load_sections): Don't page align empty SHF_ALLOC sections.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2006-10-15 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
PR ld/3314
|
||||||
|
* elf.c (assign_file_positions_for_non_load_sections): Don't
|
||||||
|
page align empty SHF_ALLOC sections.
|
||||||
|
|
||||||
2006-10-13 Jakub Jelinek <jakub@redhat.com>
|
2006-10-13 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
* elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_sections): Set
|
* elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_sections): Set
|
||||||
|
@ -4669,7 +4669,8 @@ assign_file_positions_for_non_load_sections (bfd *abfd,
|
|||||||
(hdr->bfd_section == NULL
|
(hdr->bfd_section == NULL
|
||||||
? "*unknown*"
|
? "*unknown*"
|
||||||
: hdr->bfd_section->name)));
|
: hdr->bfd_section->name)));
|
||||||
if ((abfd->flags & D_PAGED) != 0)
|
/* We don't need to page align empty sections. */
|
||||||
|
if ((abfd->flags & D_PAGED) != 0 && hdr->sh_size != 0)
|
||||||
off += vma_page_aligned_bias (hdr->sh_addr, off,
|
off += vma_page_aligned_bias (hdr->sh_addr, off,
|
||||||
bed->maxpagesize);
|
bed->maxpagesize);
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user