[Issue 19148] Alignment of section does not reflect the maximum alignment of its contents
https://issues.dlang.org/show_bug.cgi?id=19148 Iain Buclaw changed: What|Removed |Added Priority|P1 |P2 --
[Issue 19148] Alignment of section does not reflect the maximum alignment of its contents
https://issues.dlang.org/show_bug.cgi?id=19148 --- Comment #9 from Yuxuan Shui --- (In reply to Joakim from comment #8) > OK, if you're so sure it's a problem in dmd's backend, a pull request is > welcome. While I know where the problem is, I don't know what is the proper fix. So I would need some help. --
[Issue 19148] Alignment of section does not reflect the maximum alignment of its contents
https://issues.dlang.org/show_bug.cgi?id=19148 --- Comment #8 from Joakim --- OK, if you're so sure it's a problem in dmd's backend, a pull request is welcome. --
[Issue 19148] Alignment of section does not reflect the maximum alignment of its contents
https://issues.dlang.org/show_bug.cgi?id=19148 --- Comment #7 from Yuxuan Shui --- (In reply to Joakim from comment #6) > There was an issue with a ldc header mismatch that kinke found when merging > the 2.081 frontend into ldc: are you sure that's not what you're seeing > instead? > > https://github.com/ldc-developers/ldc/pull/2752#issuecomment-398897813 > https://github.com/ldc-developers/ldc/pull/2752#issuecomment-399691107 > > It's a known bug that DMD 2.081 won't build a working ldc 1.10, have to use > 1.11. I have inspected the generated binary, and found problem in DMD's code. This bug is real. Please read comment #3 --
[Issue 19148] Alignment of section does not reflect the maximum alignment of its contents
https://issues.dlang.org/show_bug.cgi?id=19148 --- Comment #6 from Joakim --- There was an issue with a ldc header mismatch that kinke found when merging the 2.081 frontend into ldc: are you sure that's not what you're seeing instead? https://github.com/ldc-developers/ldc/pull/2752#issuecomment-398897813 https://github.com/ldc-developers/ldc/pull/2752#issuecomment-399691107 It's a known bug that DMD 2.081 won't build a working ldc 1.10, have to use 1.11. --
[Issue 19148] Alignment of section does not reflect the maximum alignment of its contents
https://issues.dlang.org/show_bug.cgi?id=19148 --- Comment #5 from Yuxuan Shui --- (In reply to Joakim from comment #4) > Which ldc and DMD versions? Does the just-released LDC 1.11 have this > problem? Most recent ldc release fix the build problem. But this is a dmd bug nonetheless. This bug still exists in dmd master --
[Issue 19148] Alignment of section does not reflect the maximum alignment of its contents
https://issues.dlang.org/show_bug.cgi?id=19148 --- Comment #4 from Joakim --- Which ldc and DMD versions? Does the just-released LDC 1.11 have this problem? --
[Issue 19148] Alignment of section does not reflect the maximum alignment of its contents
https://issues.dlang.org/show_bug.cgi?id=19148 --- Comment #3 from Yuxuan Shui --- I found the actual bug in codegen. In elfobj.c data_start(), when a symbol doesn't have a explicit alignment (Salignment <= 0), the symbol itself is aligned, but its section's alignment is not updated. To reproduce: __gshared real x; pragma(msg, x.alignof); Compiling it prints: 16LU, but the .data section of the resulting object file is only aligned to 8 bytes. --
[Issue 19148] Alignment of section does not reflect the maximum alignment of its contents
https://issues.dlang.org/show_bug.cgi?id=19148 Yuxuan Shui changed: What|Removed |Added Priority|P4 |P1 --
[Issue 19148] Alignment of section does not reflect the maximum alignment of its contents
https://issues.dlang.org/show_bug.cgi?id=19148 Yuxuan Shui changed: What|Removed |Added Priority|P3 |P4 --
[Issue 19148] Alignment of section does not reflect the maximum alignment of its contents
https://issues.dlang.org/show_bug.cgi?id=19148 Yuxuan Shui changed: What|Removed |Added Priority|P1 |P3 Severity|enhancement |major --
[Issue 19148] Alignment of section does not reflect the maximum alignment of its contents
https://issues.dlang.org/show_bug.cgi?id=19148 Yuxuan Shui changed: What|Removed |Added Summary|ldc compiled with dmd and |Alignment of section does |musl segment faults on |not reflect the maximum |unaligned SIMD instruction. |alignment of its contents --