Cortex-M3 low level assert issue.

David Nadlinger code at klickverbot.at
Sun May 5 15:40:58 UTC 2019


On 5 May 2019, at 8:29, Jack Applegame via digitalmars-d-ldc wrote:
> On Saturday, 4 May 2019 at 19:06:26 UTC, kinke wrote:
>> This seems to be the perfectly corresponding C++ question (string 
>> literals placed shared readonly section) with a nice answer:
>> https://stackoverflow.com/questions/54996229/is-ffunction-sections-fdata-sections-and-gc-sections-not-working
>>
>> LDC emits these strings as private constants in LLVM IR.
>
> Thanks. Now I see.

Next question: How do we fix this?

It seems like GCC might handle this by default: 
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=192

  —David



More information about the digitalmars-d-ldc mailing list