return true;
}
-/* Align to the maximum file alignment that could be required for any
- ELF data structure. */
-
-static inline file_ptr
-align_file_position (file_ptr off, int align)
-{
- return (off + align - 1) & ~(align - 1);
-}
-
/* Assign a file position to a section, optionally aligning to the
required section alignment. */
/* Place the section headers. */
i_ehdrp = elf_elfheader (abfd);
- off = align_file_position (off, 1 << bed->s->log_file_align);
+ off = BFD_ALIGN (off, 1u << bed->s->log_file_align);
i_ehdrp->e_shoff = off;
off += i_ehdrp->e_shnum * i_ehdrp->e_shentsize;
elf_next_file_pos (abfd) = off;