https://llvm.org/bugs/show_bug.cgi?id=31582
Bug ID: 31582
Summary: ld.lld -v reports "no input files" error, conflicts
with libtool test
Product: lld
Version: unspecified
Hardware: PC
OS: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: ELF
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
libtool has some rather fragile code to check the linker in use, based on the
output from -v:
# Check to see if the program is GNU ld. I'd rather use --version,
# but apparently some variants of GNU ld only accept -v.
# Break only if it was the GNU/non-GNU ld that we prefer.
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
ld.bfd -v and ld.gold -v (with no other args) reports the version and then
exits:
% ld.bfd -v
GNU ld 2.17.50 [FreeBSD] 2007-07-03
ld.lld emits an error:
% build-nodebug/bin/ld.lld -v
LLD 4.0.0 (http://llvm.org/git/lld 6a0a1412fb7e571c8d7843ab7ecf802291bff4c5)
build-nodebug/bin/ld.lld: error: no input files
build-nodebug/bin/ld.lld: error: target emulation unknown: -m or at least one
.o file required
See also the resolved PR 31057 for the same issue with the related --version
arg. With --version all three linkers (lld, bfd, gold) currently print the
version and exit, even if provided with a link command line.
With -v all three linkers print the version and then carry on with the link if
specified by remaining cmdline args:
% ld.bfd -v foo.o
ld.bfd: warning: cannot find entry symbol _start; defaulting to
0000000000400078
The only differing case is ld.lld -v with no other args.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs