Skip to content

fix alignment calculation from sh_addralign - #42

Merged
mkst merged 1 commit into
mkst:mainfrom
dreamingmoths:patch-1
Jun 22, 2026
Merged

fix alignment calculation from sh_addralign#42
mkst merged 1 commit into
mkst:mainfrom
dreamingmoths:patch-1

Conversation

@dreamingmoths

Copy link
Copy Markdown
Contributor

hi hi! found this today. per https://man7.org/linux/man-pages/man5/elf.5.html, sh_addralign is a power of two or zero, rather than the exponent (log2) of the alignment value

let me know if we need to add a test for this

@mkst
mkst merged commit 147598b into mkst:main Jun 22, 2026
3 checks passed
@dreamingmoths
dreamingmoths deleted the patch-1 branch June 22, 2026 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants