Post #4326503
2026-07-27 01:50 UTC
Found an issue with Risc-V ILP32E ABI in GCC today and am looking for guidance.
ILP32E stack need only be aligned to 4-bytes, however types wider than 4 bytes are listed as having wider alignment requirements in current GCC source.
So, when you take the address of an 8-byte value on the stack which is not 8-byte aligned and try to use it with -fsanitize=undefined, you get a UB fault.
Question: Is this a bug in ubsan? Or should all type alignment restrictions be relaxed under ILP32E?
Replies (0)
No replies.