mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 13:27:26 +08:00
2003-10-07 Roland McGrath <roland@redhat.com>
* elf.c (_bfd_elf_make_section_from_phdr): Set alignment_power of new section from p_align header field.
This commit is contained in:
@ -2206,6 +2206,7 @@ _bfd_elf_make_section_from_phdr (bfd *abfd,
|
|||||||
newsect->_raw_size = hdr->p_filesz;
|
newsect->_raw_size = hdr->p_filesz;
|
||||||
newsect->filepos = hdr->p_offset;
|
newsect->filepos = hdr->p_offset;
|
||||||
newsect->flags |= SEC_HAS_CONTENTS;
|
newsect->flags |= SEC_HAS_CONTENTS;
|
||||||
|
newsect->alignment_power = bfd_log2 (hdr->p_align);
|
||||||
if (hdr->p_type == PT_LOAD)
|
if (hdr->p_type == PT_LOAD)
|
||||||
{
|
{
|
||||||
newsect->flags |= SEC_ALLOC;
|
newsect->flags |= SEC_ALLOC;
|
||||||
|
Reference in New Issue
Block a user