Skip to main content

Questions tagged [linker]

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. ...
Stewart's user avatar
  • 16k
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 ...
Vinod's user avatar
  • 167
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 ...
Patrick B.'s user avatar
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 ...
Xiaochen Cui's user avatar
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 ...
Question's user avatar
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 ...
ibse's user avatar
  • 371
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: ...
Bret Joseph's user avatar
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 ...
user2752471's user avatar
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 ...
Stefan Scherfke's user avatar
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 ...
placid chat's user avatar
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 ...
Engineer999's user avatar
  • 1,233
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-...
Sathvik Swaminathan's user avatar
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 ...
cg79's user avatar
  • 31
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 ...
TheEagle's user avatar
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 ...
tomi7654's user avatar

15 30 50 per page
1
2 3 4 5
8