Merge remote-tracking branch 'johannkoenig/master'

This commit is contained in:
H. Peter Anvin 2022-11-07 12:54:22 -08:00
commit ed70640526

View File

@ -324,15 +324,6 @@ static inline uint32_t coff_sectalign_flags(unsigned int align)
return (alignlog2_32(align) + 1) << 20;
}
/*
* Get the alignment value from a flags field.
* Returns 0 if no alignment defined.
*/
static inline unsigned int coff_alignment(uint32_t flags)
{
return (1U << ((flags & IMAGE_SCN_ALIGN_MASK) >> 20)) >> 1;
}
/*
* Get the default section flags (based on section name)
*/