ref: a81d383f752e3c1a38f79d13bd31486a04261895
parent: 60019cf47611ff85608ba8f91bc50961cd9a7f33
author: daid <daid303@gmail.com>
date: Thu Mar 11 07:53:08 EST 2021
Alignment mask was incorrectly checked for 1 instead of 0 This caused an `ALIGN[1]` to be ignored.
--- a/src/link/section.c
+++ b/src/link/section.c
@@ -248,7 +248,7 @@
* Check if alignment is reasonable, this is important to avoid UB
* An alignment of zero is equivalent to no alignment, basically
*/
- if (section->isAlignFixed && section->alignMask == 1)
+ if (section->isAlignFixed && section->alignMask == 0)
section->isAlignFixed = false;
/* Too large an alignment may not be satisfiable */