[Issue 22483] DMD generates invalid string sections that work by coincidence

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Dec 20 13:12:02 UTC 2023


https://issues.dlang.org/show_bug.cgi?id=22483

Dlang Bot <dlang-bot at dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/dmd pull request #15915 "fix Issue 22483 - DMD generates invalid string
sections that work by coincidence" was merged into stable:

- 4542057926be4f456d6411059231a2ede7ae33b6 by Siarhei Siamashka:
  fix Issue 22483 - DMD generates invalid string sections that work by
coincidence

  DMD generates bogus ".rodata.str" segment, which isn't really mergeable
  by proper linkers and this trips https://github.com/rui314/mold linker
  up. As a workaround, just don't set the SHF_MERGE | SHF_STRINGS flags.

https://github.com/dlang/dmd/pull/15915

--


More information about the Digitalmars-d-bugs mailing list