Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modlib: Implement sh_addralign handling #3546

Merged
merged 1 commit into from
Apr 15, 2021

Conversation

yamt
Copy link
Contributor

@yamt yamt commented Apr 14, 2021

Summary

I've seen a module with 16 bytes .rodata alignment for xmm operations.
It was getting SEGV on sim/Linux because of the alignment issue.

Impact

CONFIG_MODULE

Testing

The same module binary seems working fine after applying this patch.

Also, tested on sim/macOS and esp32 on qemu,
using a module with an artificially large alignment. (64 bytes)

I've seen a module with 16 bytes .rodata alignment for xmm operations.
It was getting SEGV on sim/Linux because of the alignment issue.
The same module binary seems working fine after applying this patch.

Also, tested on sim/macOS and esp32 on qemu,
using a module with an artificially large alignment. (64 bytes)
@xiaoxiang781216 xiaoxiang781216 merged commit 51490ba into apache:master Apr 15, 2021
@xiaoxiang781216 xiaoxiang781216 linked an issue Apr 15, 2021 that may be closed by this pull request
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.

binfmt/libelf should honor sh_addralign
2 participants