Cortex-M3 low level assert issue.

Jack Applegame japplegame at gmail.com
Thu May 9 11:23:27 UTC 2019


On Wednesday, 8 May 2019 at 15:16:26 UTC, kinke wrote:
> On Wednesday, 8 May 2019 at 09:18:23 UTC, Jack Applegame wrote:
>> How difficult to fix it? I could donate money for the work.
>
> Should be straight-forward, but I fully agree with David and 
> would rather have LLVM provide that functionality - maybe it 
> already does and we just don't know about it yet. ;)

I tried to use `lld` instead of `arm-none-eabi-ld` and got some 
interesting results.
`lld` successfully removed unused string constants.

I found that there is special SFH_MERGE flag. The linker should 
remove unused constants and merge duplicates in sections marked 
with this flag. But it seems that the GNU linker ignores it.




More information about the digitalmars-d-ldc mailing list