Questions tagged [linker]
The linker tag has no usage guidance.
110
questions
1
vote
0
answers
10
views
Why might RUNPATH be ignored by the loader after system libraries are found?
I have an executable which is linked with several dynamic libraries (.so). These libraries are found in 2 different local folders. When linking the executable, the RUNPATH of the executable is ...
1
vote
0
answers
22
views
The library path of gold linker (ld.gold)
How to set library search path through environment variables? (since I'm using bazel)
How to print library search path used by ld.gold (so I can check if I set it correctly)
Context:
I'm compiling a ...
0
votes
0
answers
52
views
Calculation of relocation address; ELF
I am learning about the relocation from the ELF reference and this blog, but I can't get my head around calculating the relocation address.
Suppose we have two files A and B of type ET_REL, we want ...
1
vote
0
answers
119
views
Runtime library search order on AIX
If I understand correctly, the variables LIBPATH and LD_LIBRARY_PATH have a higher priority than the argument to the linker -blibpath. I'm looking for how to tell the loader to search for libraries ...
0
votes
0
answers
43
views
cc linker error
I'm writing a C application based on GTKlibrary on Debian 12.
The program is build by a Makefile, generated from cmake.
The compile phase of the source files is correct but when the linker is fired I ...
1
vote
1
answer
81
views
How to load android binaries in Debian environment?
I am trying to run adbd from within a chrooted environment. I can run it fine with Android's LD_LIBRARY_PATH=$PWD ./linker64 $PWD/adbd.
When I try to run ./adbd I get:
bash: ./adbd: cannot execute: ...
0
votes
1
answer
664
views
Linker cannot find libpthread
I am trying to build 32bit versions of two programs, and both shows the same error message
/usr/bin/ld: cannot find /media/34GB/Arquivos-de-Programas-Linux/Glibc-2.17-32bit/lib/libpthread.so.0
I ...
4
votes
1
answer
2k
views
Existing .so file cannot be loaded even though it exists, seems to depend on Docker host OS
I have built Qt6 in an Alma8 based Docker container, with the Docker host being Fedora 35.
Under some circumstances (described below), all Qt libs cannot load libQt6Core.so[.6[.2.4]]. But that file ...
0
votes
1
answer
655
views
How to get meson to use a library in a different lib directory?
I have two versions of a library, zita-convolver3 and zita-convolver4. The system library is zita-convolver3, but i want to link against zita-convolver4, which is stored in a local user directory.
How ...
0
votes
1
answer
3k
views
How does RAM get divided into Kernel Space and User Space
I understand that with Linux, RAM gets divided into kernel space and user space. Kernel space is reserved for running the kernel, and user space applications should not have direct access to the ...
0
votes
1
answer
707
views
Linker unable to find header and library files
I've installed the CHERI simulator from this link.
It allows me to use the clang compiler for both risc-v and a capability extended risc-v architecture.
I've defined the following aliases
alias clang-...
0
votes
0
answers
1k
views
Usage of objcopy / elfedit to patchelf symbol (versions) in elf file
The context is as follows: on my o.s. there is (already) liba.so.v2 of "liba" which contains the string 'symbol_version-2' as the symbol version for its functions , e.g. functionX@version-2 ...
0
votes
1
answer
479
views
Weird linking issue with libldap using cmake
I am trying to build SimGear from the FlightGear project using the download_an_compile.sh script (which uses CMake to build the binaries). The build went fine so far, but when the script tried linking ...
0
votes
1
answer
245
views
FreeBSD - problem with linking protobuf
I have a small application that was tested on Linux and it worked. Now I would like to build the same code on FreeBSD. To build it on FreeBSD I needed to change a little my Makefile. Here is my ...
0
votes
0
answers
441
views
Project links during compile but ldd shows library not found. why?
When i run through the compile process of a project, quite often i need to use a custom library compiled and stored somewhere that is not in the path. At the start of the compile, I can specify the ...