Alignment of symbol is not kept during linking
Yuxuan Shui
yshuiv7 at gmail.com
Thu Aug 9 13:38:21 UTC 2018
Clarifications:
On Thursday, 9 August 2018 at 13:30:38 UTC, Yuxuan Shui wrote:
> I'm trying to build LDC with dmd and Musl, but the result ldc
> will always crash. I track that down to an unalignment SIMD
> access to a global variable. Apparently C++ compiler thinks the
> variable should be aligned to 16 bytes, but it's only aligned
> to 8 bytes.
SIMD is generated by the C++ compiler, the unaligned read happens
in C++ code.
The accessed variable is a __gshared global variable.
More information about the Digitalmars-d
mailing list