Hallo,
I tried to use the LLVM Link-Time-Optimization, -Clflto
I compiled/installed fpc llvm with a separate prefix, which was already difficult to set up
Then the default linker did not want to link it.
The wiki says to use the gold linker. I do not know how to change the linker in fpc.cfg. If I use -XP, it changes the prefix. But the gold linker is named ld.gold, so one would need an option to change the suffix.
But I called it directly with ld.gold -T link43117.res.
It says
ld.gold: error: link43117.res:372:8: syntax error, unexpected STRING
I deleted the last line INSERT AFTER .data;. Then it says
ld.gold: internal error in read_script_file, at ../../gold/script.cc:1638
So I gave up on that and tried the llvm linker. ld.lld -T link43117.res
It links, but when I start the program, it gives
Starting program: /home/benito/tmp/a.out
Program received signal SIGSEGV, Segmentation fault. 0x0000000000000000in ??()
(gdb) bt
#0 0x0000000000000000in ??()
#1 0x0000000000000000in ??()
Viele Grüße,
Benito
