From 0c447946e972ac3cc97017673bb1afd74d45d56e Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 16 Oct 2003 18:55:48 +0000 Subject: 2003-10-07 Roland McGrath * elf.c (_bfd_elf_make_section_from_phdr): Set alignment_power of new section from p_align header field. --- bfd/elf.c | 1 + 1 file changed, 1 insertion(+) (limited to 'bfd/elf.c') diff --git a/bfd/elf.c b/bfd/elf.c index 2d66ced8d4..417fd50beb 100644 --- a/bfd/elf.c +++ b/bfd/elf.c @@ -2206,6 +2206,7 @@ _bfd_elf_make_section_from_phdr (bfd *abfd, newsect->_raw_size = hdr->p_filesz; newsect->filepos = hdr->p_offset; newsect->flags |= SEC_HAS_CONTENTS; + newsect->alignment_power = bfd_log2 (hdr->p_align); if (hdr->p_type == PT_LOAD) { newsect->flags |= SEC_ALLOC; -- cgit v1.2.1