Category "linker"

Can you relink/modify relative shared library look up paths?

I am running into the following situation. Project A has libraries A1, A2, A3... That follow their own directory structure. For example: Libaries/ | |--Dir1/ |

Can I change the default linker script/flags of ld?

I am using a software, which modifies some bytes in an executable. I don't know what it does exactly, but I use it for license protection of the already built b

How can I set “Other Linker Flags” to include -ObjC with CMake?

I am trying to generate an XCode project with CMake, but I can't define "Other linker flags" in project settings. I have tried using the following: set(CMAKE_SH

LD linker script, get current position of LOAD address

In linker scripts, I can get the LMA of a section like this .got : ALIGN(4) { __global_offset_table_flash_start__ = LOADADDR(.got) ; ... } >SRAM_DTC

ilink64 Error Fatal: Error detected (EXE1829)

Error (ilink64) Error Fatal: Error detected (EXE1829) occurs during link of Win64/Release static library using C++ Builder 10.2.3. Win64/Debug links fine as wel

How to set CMAKE_INSTALL_RPATH with multiple directories?

On the question CMAKE RPATH not working - could not find shared object file I see how to set CMAKE_INSTALL_RPATH for a single path, but I need it for multiple p

Link nasm with ld.lld linker

I have main.s file. extern printf extern exit section .data fmt: db "hi!", 0xa section .text global _start _start: mov rax, 0 mov rdi, fmt call printf

modify ld library search path on cluster (no root access)

I am compiling gcc 8.5 from source on a linux cluster in my home directory (no root access). I have exported -L/MYHOME/lib/' to CFLAGS, LDFLAGS, LD_LIBRARY_PATH

How to use the mold linker with cargo?

I'm using lld as my linker currently for Rust, but recently encountered the mold project, which is faster than lld. I'd like to try it for Rust compilation, but

Static linking search for dynamic symbols (VS 2015)

I'm trying to compile a project and link it with a static library that I compiled before. My file compile, however it doesn't link. I'm getting these messages

Eclipse can't find linked libraries

I am working with the windows.h functions and everything works fine so far. But when I try to use functions which require me to link external libraries somethin

Compiling emWin simulation on newer Visual Studio

I've downloaded Segger simulation of emWin but it won't compile on my Visual Studio 2015 Express. The following linker problems occurred: 1>libcmtd.lib(_ini

On Windows MSVC, is it possible to merge some .obj into one .obj? If yes, how should I do that?

For example, there is three object files a.obj b.obj c.obj just compiled out with cl, and it is desired to combine them into one combined.obj. A comment of an S

relocation R_X86_64_32 against symbol `G8' can not be used when making a PIE object; recompile with -fPIE

I'm trying to compile lambda-expressions from scheme to llvm-ir and am having trouble with position independet code. source: (lambda (x) (display x)) targe

Improving Rust binary build times

I’m just starting a Rust project and already it takes ~7.6s to build what I’d consider a simple binary. I’m using async/await a lot and comme

How can I make sure `iostream` is available to the linker?

I have the following C++ code in a file called helloworld.cpp: #include<iostream> int main() { std::cout << "Hello, World!\n"; } I would like

relocation error when implementing my own elf loader

I am currently implementing an elf loader to emulate binaries with the unicorn engine. To avoid implementing my own dynamic linker, I load the ld-linux-x86-64.s

go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1 /usr/bin/ld: cannot find -lgdal

I am trying to run go build on my sources. go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1 /usr/bin/ld: cannot find -lgdal collect2: error: ld

Why does ld need /lib/x86_64-linux-gnu/ld-linux-x86-64.so.2 while its default dynamic linker is /lib64/ld-linux-x86-64.so.2?

In x86-64 target Debian, most of the programs are link against shared objects with the /lib64/ld-linux-x86-64.so.2. And there is also one in /lib/x86_64-linux-g

How is an 'undefined symbol' error possible if shared dependencies provide that symbol?

I'm trying to compile GTK 3.24.33 from source. At some point in the build process I got the following error Cannot load module /home/felix/apps/src/libraries/gt