Update build glue for lld (MK_LLD=yes). Also update invocation of

elf::link() in lld.cpp.
This commit is contained in:
Dimitry Andric 2020-01-26 21:55:17 +00:00
parent b1ae91026f
commit 56e766af41
2 changed files with 3 additions and 1 deletions

View File

@ -148,7 +148,7 @@ int main(int argc, const char **argv) {
std::vector<const char *> args(argv, argv + argc);
#ifdef __FreeBSD__
return !elf::link(args, true);
return !elf::link(args, canExitEarly(), llvm::outs(), llvm::errs());
#else
switch (parseFlavor(args)) {
case Gnu:

View File

@ -27,6 +27,7 @@ CFLAGS+= -I${OBJTOP}/lib/clang/libllvm
SRCDIR= lld
SRCS+= Common/Args.cpp
SRCS+= Common/DWARF.cpp
SRCS+= Common/ErrorHandler.cpp
SRCS+= Common/Filesystem.cpp
SRCS+= Common/Memory.cpp
@ -36,6 +37,7 @@ SRCS+= Common/TargetOptionsCommandFlags.cpp
SRCS+= Common/Threads.cpp
SRCS+= Common/Version.cpp
SRCS+= ELF/AArch64ErrataFix.cpp
SRCS+= ELF/ARMErrataFix.cpp
SRCS+= ELF/Arch/AArch64.cpp
SRCS+= ELF/Arch/AMDGPU.cpp
SRCS+= ELF/Arch/ARM.cpp