lld Questions

1

Solved

I have started on the "zero to performance in rust" book. This discusses using the lld linker instead of the standard rust linker to speed up compile times. However, the book is now about...
Clog asked 3/6, 2023 at 23:30

3

Solved

The linker from the LLVM project lld is currently developed with new features added week by week. Its developers promise that lld is faster than ld. How does it compete compared to gold? Is lld a ...
Soldo asked 31/3, 2015 at 6:12

1

Solved

I have a CMake project with several subprojects that create static libraries built with -flto=thin. The project has a lot of tests that are linked against the aforementioned libraries. With LTO it ...
Hepzi asked 10/5, 2022 at 17:2

1

Solved

I've been writing some x64 assembly on linux - exactly what it is is not relevant - and I've come across a strange problem. In my assembly code, I've declared printf as an external label, and call ...
Septum asked 5/1, 2022 at 18:44

3

Solved

I would like to make rustc use lld as a linker instead of ld in a particular crate. So I create .cargo/config in my project directory with the following: [target.x86_64-unknown-linux-gnu] linker ...
Sterne asked 5/9, 2019 at 20:59

1

I'm trying to compile SDL2 (https://www.libsdl.org/download-2.0.php) using CMake with clang + lld (http://releases.llvm.org/) + mingw (https://sourceforge.net/projects/mingw-w64/) headers on Window...
Khoury asked 5/10, 2019 at 23:29

2

Solved

Trying to link a simple program using LLVM 4.0.0 release (Clang, LLD) on Mac OS Sierra. Note, this is fully achievable in Linux. My current path is prefixed with the LLVM's bin directory (i.e. /op...
Mostly asked 22/5, 2017 at 6:51

2

Solved

I am using Clang 10 (not AppleClang) on macOS 10.15 and am trying to link with LLD by specifying -fuse-ld=lld in the CMake flags CMAKE_EXE_LINKER_FLAGS. However, I am getting the following error w...
Dependable asked 31/3, 2020 at 6:37

1

Solved

I recently discovered the LLVM's linker, lld that was praised for very fast linking. Indeed, I tested it and the results were awesome, the linking time in my case being reduced dramatically compari...
Indamine asked 24/9, 2019 at 16:13

2

What I'm trying to achieve is to compile an GNU independent and isolated LLVM toolchain using musl as clib. Recently LLVM 4.0 has been released with lot's of new cool features, including productio...
Seymour asked 21/3, 2017 at 6:45

2

My cpp code: int main(int argc, char** argv) {} I use the following command to compile and link it: // I want to read the result ir clang -S -emit-llvm main.cpp // I want to compile directly ...
Dyanna asked 22/4, 2016 at 2:31

2

Solved

The man for gold states: -L DIR, --library-path DIR Add directory to search path --rpath-link DIR Add DIR to link time shared library search path The man for bfd ld makes it sort of sound l...
Davies asked 6/3, 2018 at 19:3

1

Solved

I am working on cross compiling an experimental GNU free Linux toolchain using clang (instead of gcc), compiler-rt (instead of libgcc), libunwind (available at http://llvm.org/git/libunwind.git) (i...
Vega asked 14/11, 2015 at 15:40

3

Solved

In GCC, I can use the linker flags -Wl,--start-group and -Wl,--end-group to resolve linking problems with libraries that have circular dependencies. I'd like to do the same with clang, but it seems...
Ogbomosho asked 23/9, 2014 at 3:5
1

© 2022 - 2024 — McMap. All rights reserved.