Skip to main content

Questions tagged [ld]

These questions are about ld: a dynamic linker/loader which combines object files, archive files and shared libraries before the final compilation of a program.

1 vote
2 answers
85 views

How to specify ELF shared objects in `LD_PRELOAD` if their path contains a space character?

Paths to ELF shared objects in LD_PRELOAD cannot contain spaces, as space is one of the two list separators, and it cannot be escaped: LD_PRELOAD A list of additional, user-specified, ELF shared ...
finefoot's user avatar
  • 3,554
2 votes
1 answer
59 views

Why can I not intercept `write` in `seq`?

Based on Limit file IO speed I have built https://git.data.coop/tange/tangetools/src/branch/master/iothrottle It works for some programs: iothrottle -i 10M cat foo > bar # Yes, here you could just ...
Ole Tange's user avatar
  • 37.5k
1 vote
0 answers
109 views

Why does ldd behave differently on the ldconfig binary?

When we run ldd on some file, there are two possible results: If the file is dynamic executable, the shared dependencies are shown, for example: # ldd /usr/bin/sleep linux-vdso.so.1 (...
melonfsck - she her's user avatar
2 votes
1 answer
445 views

LD_DEBUG_OUTPUT does not work

touch /tmp/debug.log LD_DEBUG=all LD_DEBUG_OUTPUT=/tmp/debug.log ls After doing this I expect debug info to be written to the /tmp/debug.log file, but it is empty. Ubuntu 20.04
ibse's user avatar
  • 371
1 vote
1 answer
836 views

musl ld maps libc.so.6 to ld-musl-x86_64.so.1

/lib # ./ld-musl-x86_64.so.1 --list /usr/lib/libEGL.so.1 ./ld-musl-x86_64.so.1 (0x7f2b06797000) libdl.so.2 => ./ld-musl-x86_64.so.1 (0x7f2b06797000) libm.so.6 => ./ld-...
Szymon Marczak's user avatar
0 votes
1 answer
183 views

Who is the original author of GNU ld?

Author information can be difficult to find for projects whose histories go back long before their git repositories. According to Wikipedia, Richard Stallman wrote gcc, and Dean Elsner wrote GNU as. ...
clarkep's user avatar
  • 109
8 votes
2 answers
3k views

LD_PRELOAD does not work and LD_DEBUG shows nothing

I use LD_PRELOAD to overwrite the read function. For a minimal test application it works fine, but if I test it with a larger application it does not work anymore. Also LD_DEBUG=all does not show ...
Kevin Meier's user avatar
0 votes
0 answers
393 views

ld error with clangs when compiling vdso

i am trying to compile a kernel but it always return this error: LD arch/arm64/kernel/vdso/built-in.o ld.lld: error: cannot find linker script -r make[2]: *** [scripts/Makefile.build:507: arch/...
xxjoe's user avatar
  • 11
1 vote
0 answers
154 views

Behavior of running ldconfig with a directory argument

I have installed some shared libraries to the non-standard directory /usr/lib64/mylib. Then I run sudo ldconfig /usr/lib64/mylib. I can assert by running ldconfig -p that my libraries are indeed ...
Nick's user avatar
  • 111
0 votes
2 answers
683 views

No rule to make target `scripts/extract-cert' when building Linux Kernel - Centos 7, devtoolset-9

I'm trying to debug my build environment for compiling a linux kernel with some patch sets. I installed devtoolset-9 in my CentOS 7 environment to satisfy the minimum gcc version requirement of the 5....
merlin's user avatar
  • 1
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
2k views

How do I edit '/etc/ld.so.conf' in a yocto recipe?

As suggested by Zac Anger, i copy this question over here: I have a yocto recipe in which I copy/install some stuff to an image. After that, I want to add a line to the /etc/ld.so.conf file like this, ...
schande's user avatar
  • 115
1 vote
2 answers
1k views

gdbus symbol look up error

I'm using Archlinux. After a recent update, I find that the gdbus doesn't work and it presents a symbol lookup error: ➜ tidedra@ZgrArch ~ gdbus gdbus: symbol lookup error: /usr/lib/libgobject-2.0.so....
GearyZhang's user avatar
1 vote
2 answers
643 views

Hacking LD_LIBRARY_PATH to use a recent bash from a chroot

I try to get a more up to date version of bash from LinuxMint. I have a chroot with Debian Sid in my box. What I try to do in a bash wrapper script, early in my PATH #!/bin/bash LD_LIBRARY_PATH=/path/...
Mévatlavé Kraspek's user avatar
2 votes
1 answer
2k views

GCC linker search path when cross-compiling

I have various tool chain directories on my linux machine for compiling under specific compiler versions. I have a problem where the linker (in the tool chain dir) is selecting a library file from ...
kfank's user avatar
  • 21

15 30 50 per page
1
2 3 4 5
8