Thread overview
[Issue 22483] DMD generates invalid string sections that work by coincidence
Nov 05, 2021
FeepingCreature
Nov 05, 2021
Ketmar Dark
Dec 21, 2021
ZombineDev
Dec 17, 2022
Iain Buclaw
Dec 16, 2023
Dlang Bot
Dec 20, 2023
Dlang Bot
Jan 01, 2024
Dlang Bot
November 05, 2021
https://issues.dlang.org/show_bug.cgi?id=22483

--- Comment #1 from FeepingCreature <default_357-line@yahoo.de> ---
relocations*

--
November 05, 2021
https://issues.dlang.org/show_bug.cgi?id=22483

Ketmar Dark <ketmar@ketmar.no-ip.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ketmar@ketmar.no-ip.org

--
December 21, 2021
https://issues.dlang.org/show_bug.cgi?id=22483

ZombineDev <petar.p.kirov@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |backend, wrong-code
                 CC|                            |petar.p.kirov@gmail.com
           Severity|enhancement                 |minor

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=22483

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3

--
December 16, 2023
https://issues.dlang.org/show_bug.cgi?id=22483

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> ---
@ssvb created dlang/dmd pull request #15915 "fix Issue 22483 - DMD generates invalid string sections that work by coincidence" fixing this issue:

- 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

--
December 20, 2023
https://issues.dlang.org/show_bug.cgi?id=22483

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

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

--- Comment #3 from Dlang Bot <dlang-bot@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

--
January 01, 2024
https://issues.dlang.org/show_bug.cgi?id=22483

--- Comment #4 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #15978 "merge stable" was merged into master:

- 3a85e6bdbee15235d12f714f608a757ad1983bc3 by Siarhei Siamashka:
  fix Issue 22483 - DMD generates invalid string sections that work by
coincidence (#15915)

  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/15978

--