From 6a04e9f02ac6282af4e1e02b49c92c7779aaad8e Mon Sep 17 00:00:00 2001 From: Danny Rawlins Date: Sat, 9 May 2020 22:12:42 +1000 Subject: lld: initial import --- lld/.footprint | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ lld/.signature | 6 ++++++ lld/Pkgfile | 23 +++++++++++++++++++++++ 3 files changed, 87 insertions(+) create mode 100644 lld/.footprint create mode 100644 lld/.signature create mode 100644 lld/Pkgfile (limited to 'lld') diff --git a/lld/.footprint b/lld/.footprint new file mode 100644 index 000000000..366ef5664 --- /dev/null +++ b/lld/.footprint @@ -0,0 +1,58 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +lrwxrwxrwx root/root usr/bin/ld.lld -> lld +lrwxrwxrwx root/root usr/bin/ld64.lld -> lld +-rwxr-xr-x root/root usr/bin/lld +lrwxrwxrwx root/root usr/bin/lld-link -> lld +lrwxrwxrwx root/root usr/bin/wasm-ld -> lld +drwxr-xr-x root/root usr/include/ +drwxr-xr-x root/root usr/include/lld/ +drwxr-xr-x root/root usr/include/lld/Common/ +-rw-r--r-- root/root usr/include/lld/Common/Args.h +-rw-r--r-- root/root usr/include/lld/Common/DWARF.h +-rw-r--r-- root/root usr/include/lld/Common/Driver.h +-rw-r--r-- root/root usr/include/lld/Common/ErrorHandler.h +-rw-r--r-- root/root usr/include/lld/Common/Filesystem.h +-rw-r--r-- root/root usr/include/lld/Common/LLVM.h +-rw-r--r-- root/root usr/include/lld/Common/Memory.h +-rw-r--r-- root/root usr/include/lld/Common/Reproduce.h +-rw-r--r-- root/root usr/include/lld/Common/Strings.h +-rw-r--r-- root/root usr/include/lld/Common/TargetOptionsCommandFlags.h +-rw-r--r-- root/root usr/include/lld/Common/Threads.h +-rw-r--r-- root/root usr/include/lld/Common/Timer.h +-rw-r--r-- root/root usr/include/lld/Common/Version.h +drwxr-xr-x root/root usr/include/lld/Core/ +-rw-r--r-- root/root usr/include/lld/Core/AbsoluteAtom.h +-rw-r--r-- root/root usr/include/lld/Core/ArchiveLibraryFile.h +-rw-r--r-- root/root usr/include/lld/Core/Atom.h +-rw-r--r-- root/root usr/include/lld/Core/DefinedAtom.h +-rw-r--r-- root/root usr/include/lld/Core/Error.h +-rw-r--r-- root/root usr/include/lld/Core/File.h +-rw-r--r-- root/root usr/include/lld/Core/Instrumentation.h +-rw-r--r-- root/root usr/include/lld/Core/LinkingContext.h +-rw-r--r-- root/root usr/include/lld/Core/Node.h +-rw-r--r-- root/root usr/include/lld/Core/Pass.h +-rw-r--r-- root/root usr/include/lld/Core/PassManager.h +-rw-r--r-- root/root usr/include/lld/Core/Reader.h +-rw-r--r-- root/root usr/include/lld/Core/Reference.h +-rw-r--r-- root/root usr/include/lld/Core/Resolver.h +-rw-r--r-- root/root usr/include/lld/Core/SharedLibraryAtom.h +-rw-r--r-- root/root usr/include/lld/Core/SharedLibraryFile.h +-rw-r--r-- root/root usr/include/lld/Core/Simple.h +-rw-r--r-- root/root usr/include/lld/Core/SymbolTable.h +-rw-r--r-- root/root usr/include/lld/Core/UndefinedAtom.h +-rw-r--r-- root/root usr/include/lld/Core/Writer.h +drwxr-xr-x root/root usr/include/lld/ReaderWriter/ +-rw-r--r-- root/root usr/include/lld/ReaderWriter/MachOLinkingContext.h +-rw-r--r-- root/root usr/include/lld/ReaderWriter/YamlContext.h +drwxr-xr-x root/root usr/lib/ +-rw-r--r-- root/root usr/lib/liblldCOFF.a +-rw-r--r-- root/root usr/lib/liblldCommon.a +-rw-r--r-- root/root usr/lib/liblldCore.a +-rw-r--r-- root/root usr/lib/liblldDriver.a +-rw-r--r-- root/root usr/lib/liblldELF.a +-rw-r--r-- root/root usr/lib/liblldMachO.a +-rw-r--r-- root/root usr/lib/liblldMinGW.a +-rw-r--r-- root/root usr/lib/liblldReaderWriter.a +-rw-r--r-- root/root usr/lib/liblldWasm.a +-rw-r--r-- root/root usr/lib/liblldYAML.a diff --git a/lld/.signature b/lld/.signature new file mode 100644 index 000000000..4558ccc0e --- /dev/null +++ b/lld/.signature @@ -0,0 +1,6 @@ +untrusted comment: verify with /etc/ports/opt.pub +RWSE3ohX2g5d/d12cALJ8MdVt+e8RVfjTuSJ9e/LjSCd0BrtSUwpsNKmCKkf9fNESdIcLvcS3+12NmRFMfUQ680+xX8bRrx5qwk= +SHA256 (Pkgfile) = 69c88bb965d3810f48c8dbc8ef33ef8efb6b0a42772424ef8190761f999e841f +SHA256 (.footprint) = a952d9b00432213cdffb1d083a1d6b2beb4063cb549c60e642fa9d955c4118ee +SHA256 (llvm-10.0.0.src.tar.xz) = df83a44b3a9a71029049ec101fb0077ecbbdf5fe41e395215025779099a98fdf +SHA256 (lld-10.0.0.src.tar.xz) = b9a0d7c576eeef05bc06d6e954938a01c5396cee1d1e985891e0b1cf16e3d708 diff --git a/lld/Pkgfile b/lld/Pkgfile new file mode 100644 index 000000000..649f83c7a --- /dev/null +++ b/lld/Pkgfile @@ -0,0 +1,23 @@ +# Description: Linker from the LLVM project +# URL: https:lld.//llvm.org/ +# Maintainer: Danny Rawlins, crux at romster dot me +# Depends on: llvm + +name=lld +version=10.0.0 +release=1 +source=(https://github.com/llvm/llvm-project/releases/download/llvmorg-$version/{llvm,$name}-$version.src.tar.xz) + +build() { + cmake -H$name-$version.src -Bbuild \ + -G Ninja \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLLVM_LINK_LLVM_DYLIB=ON \ + -DLLVM_MAIN_SRC_DIR="$SRC/llvm-$version.src" \ + -DLLVM_PARALLEL_COMPILE_JOBS="${JOBS:-1}" \ + -Wno-dev + + cmake --build build + DESTDIR=$PKG cmake --build build --target install +} -- cgit v1.2.3