Files
wasmtime/crates
Trevor Elliott dde2c5a3b6 Align functions according to their ISA's requirements (#4826)
Add a function_alignment function to the TargetIsa trait, and use it to align functions when generating objects. Additionally, collect the maximum alignment required for pc-relative constants in functions and pass that value out. Use the max of these two values when padding functions for alignment.

This fixes a bug on x86_64 where rip-relative loads to sse registers could cause a segfault, as functions weren't always guaranteed to be aligned to 16-byte addresses.

Fixes #4812
2022-08-31 14:41:44 -07:00
..
2022-08-30 09:08:26 -05:00
2022-08-04 20:02:19 -05:00
2022-08-04 20:02:19 -05:00
2022-08-04 20:02:19 -05:00
2022-08-04 20:02:19 -05:00
2022-08-04 20:02:19 -05:00