Questions tagged [linker]
The linker tag has no summary.
111 questions
9
votes
1
answer
870
views
dlopen() fails after Debian trixie libc transition: "Cannot enable executable stack"
I've been running the same 32-bit, 3rd-party, closed-source binary since 2018. This week on debian trixie/testing servers (possible due to a libc6 transition?) the program began to crash on startup. ...
0
votes
2
answers
126
views
cc/gcc -R flag to linker
Reference:
Weak symbol
In the link the following linker option is mentioned:
cc main.o -L`pwd` -Wl,-R`pwd` -lpowerslow -o main2
The purpose of all of the above flags have been documented in the GCC ...
1
vote
0
answers
285
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
120
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
1
answer
250
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
218
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 ...
1
vote
1
answer
178
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
970
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
1k
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
4k
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
780
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
2k
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
642
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
316
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 ...