diff options
author | Roland McGrath <roland@gnu.org> | 2003-10-16 18:55:48 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2003-10-16 18:55:48 +0000 |
commit | 57e24cbffc58b4d0ef616819b655dd4d3c00fd23 (patch) | |
tree | 91be7a2aa7a0756b33e28df855fd2ac87b79aaf9 /bfd/elf.c | |
parent | 65815ea1330d1fcb97eb177105826dd5c7961aea (diff) | |
download | gdb-57e24cbffc58b4d0ef616819b655dd4d3c00fd23.zip gdb-57e24cbffc58b4d0ef616819b655dd4d3c00fd23.tar.gz gdb-57e24cbffc58b4d0ef616819b655dd4d3c00fd23.tar.bz2 |
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.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r-- | bfd/elf.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |