You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
eld should be reporting its own name/info in --version output #138
Currently, eld's --version doesn't actually output anything saying that it is eld. Currently it looks something like below:
$ ld.eld --version
Supported Targets: arm aarch64 riscv x86_64
Linker from <vendor name> Version 21.0.0
Linker based on LLVM version: 21.0
Linker Plugin Support Enabled
Linker Plugin Interface Version 4.0
LTO Support Enabled
Granted, people could check against something like "Linker" and "LLVM", but given that these are so generic I don't think that's a great direction to steer people. I think it makes most sense to just to report "eld" or "ELD" somewhere in the --version output to give something clear to parse.
I think this might have come up in the past, but would it be worth also establishing an eld-specific version while we're here? Or should build systems be looking at the associated LLVM version?
Seems reasonable to me. FWIW, I don't mind the extra Linker from <vendor name> Version 21.0.0 \ Linker based on LLVM version: 21.0 \ Linker Plugin Support Enabled \ Linker Plugin Interface Version 4.0 \ LTO Support Enabled info being present if the eld <version> (GNU compatible linker) is first
Activity
quic-seaswara commentedon Jun 9, 2025
i agree having eld in the version output will allow scripts to parse that the linker being used is eld.
jonathonpenix commentedon Jun 9, 2025
I think this might have come up in the past, but would it be worth also establishing an eld-specific version while we're here? Or should build systems be looking at the associated LLVM version?
quic-seaswara commentedon Jun 9, 2025
How does this sound ?
jonathonpenix commentedon Jun 9, 2025
Seems reasonable to me. FWIW, I don't mind the extra
Linker from <vendor name> Version 21.0.0 \ Linker based on LLVM version: 21.0 \ Linker Plugin Support Enabled \ Linker Plugin Interface Version 4.0 \ LTO Support Enabledinfo being present if theeld <version> (GNU compatible linker)is firstquic-seaswara commentedon Jun 9, 2025
I will add an --about or --info option if we want more details about the linker
eld should report version information