"--oformat" is not supported [windows]
sdvcn at 126.com
sdvcn at 126.com
Tue Dec 29 13:08:26 UTC 2020
On Tuesday, 29 December 2020 at 09:24:49 UTC, kinke wrote:
> On Sunday, 27 December 2020 at 14:55:59 UTC, sdvcn wrote:
>> lld m2.o -o m2 --oformat=elf
>> lld: error: unknown argument '--oformat=elf', did you mean
>> '--format=elf'
>> Error: linking with LLD failed
>
> AFAIK, that linker option isn't implicitly added by LDC.
Windows version of clang
ld.lld --oformat binary --version
LLD 11.0.0 (compatible with GNU linkers)
clang can be executed normally
"clang -target armv7em-none-eabi -Xlinker --oformat -Xlinker
binary --static -nostdinc++ -fuse-ld=lld -fdeclspec -Bstatic
-nogpulib -xc -o o1.bin test.c -v -L/usr/arm-none-eabi/lib/
-femulated-tls"
ldc2 mm.d --mtriple=arm-none-eabi --link-internally -L"--version"
-L="--oformat binary" -v
binary D:\D\ldc2\bin\ldc2.exe
version 1.24.0 (DMD v2.094.1, LLVM 11.0.0)
config D:\D\ldc2\etc\ldc2.conf (arm-none-unknown-eabi)
predefs LDC all D_Version2 assert D_BetterC ARM ARM_SoftFP
D_HardFloat LittleEndian LDC_LLVM_1100
lld mm.o -static -o mm -nostdlib --version --oformat binary
lld: error: unknown argument '--oformat binary'
LLD 11.0.0 (https://github.com/ldc-developers/llvm-project
7d41290105aa8d0485099de9d5dc850f02b60859) (compatible with GNU
linkers)
Error: linking with LLD failed
More information about the digitalmars-d-ldc
mailing list