Questions tagged [linker]
107 questions
77
votes
2 answers
Getting "Not found" message when running a 32-bit binary on a 64-bit system
I have currently a strange problem on debian (wheezy/amd64).
I have created a chroot to install a server (i can't give any more detail about it, sorry). Let's call its path /chr_path/.
To make things easy, I have initialized this chroot with a…
Elenaher
- 949
- 1
- 7
- 8
53
votes
1 answer
What are stripped and not-stripped executables in Unix?
From man file,
EXAMPLES
$ file file.c file /dev/{wd0a,hda}
file.c: C program text
file: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
dynamically linked (uses shared libs), stripped
/dev/wd0a: block special…
Lazer
- 34,477
- 25
- 70
- 75
34
votes
2 answers
Changing linked library for a given executable (CentOs 6)
I have an executable linked like this:
$ ldd a.out
libboost_system-mt.so.1.47.0 => /usr/lib64/libboost_system-mt.so.1.47.0 (0x00007f4881f56000)
libssl.so.10 => /usr/lib64/libssl.so.10 (0x00007f4881cfb000)
libcrypto.so.10 =>…
Fixee
- 1,891
- 3
- 17
- 24
31
votes
4 answers
What is the gold linker?
Has anyone used the gold linker before? To link a fairly large project, I had to use this as opposed to the GNU ld, which threw up a few errors and failed to link.
How is the gold linker able to link large projects where ld fails? Is there some kind…
placid chat
- 691
- 1
- 6
- 19
20
votes
3 answers
ldd does not find path, How to add
I know this question isn't very new but it seems as if I didn't be able to fix my problem on myself.
ldd generate the following output
u123@PC-Ubuntu:~$ ldd /home/u123/Programme/TestPr/Debug/TestPr
linux-vdso.so.1 => (0x00007ffcb6d99000)
…
C-Jay
- 311
- 1
- 2
- 5
18
votes
1 answer
What is AT&T’s Link Editor Command Language?
The man page for ld makes reference to AT&T’s Link Editor Command Language, however a Google search does not offer a satisfactory explanation as to what AT&T’s Link Editor Command Language is or was, other than pointing to said man pages, whereas I…
mydoghasworms
- 1,429
- 1
- 13
- 19
17
votes
3 answers
Creating Static Binary
I installed an application [ e.g. fdisk ]. But it required libraries for execution. I am looking for utility/tool which will help me to create a static binary from already installed binaries. So that I can use it anywhere.
The only reliable tools…
SHW
- 14,454
- 14
- 63
- 101
15
votes
1 answer
Linker script in .so file? (libc.so) Is that right?
I am currently trying to get python to run on my NAS which is a Zyxel NSA325.
I did manage to get python 2.7 and pip running and I was able to successfully install the watchdog module with pip. I followed these instructions to get python and pip…
Forivin
- 779
- 5
- 18
- 37
14
votes
1 answer
Difference between 'ld' and 'ld.so'?
While both are called "linker" and are used to link binaries, I can't really figure out how they differ from each other. Can anyone tell me their differences?
iBug
- 3,428
- 1
- 24
- 57
10
votes
3 answers
what's the name of ubuntu package contains llvm linker lld
Would like to try this lld from LLVM. The doc on apt could be found here, but I don't know which package contains the lld executable.
It seems the purpose of lld is to remove the system dependency, but clang doesn't have lld built-in. (Not…
Albert Netymk
- 203
- 1
- 2
- 6
8
votes
1 answer
How to change the paths to shared libraries (.so files) for a single terminal instance
I want to remove some of the paths the linker uses to find .so libraries for testing purposes.
I have found a way to add library paths:
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/path/to/library"
Are there a variable similar to LD_LIBRARY_PATH that…
Simon Streicher
- 183
- 1
- 1
- 5
8
votes
2 answers
Is there a way to check whether a .so has been compiled with -Bsymbolic-functions flag?
My application loads custom code using dlopen on the fly.
For common symbols, the global symbol table is used by default.
However, I want to provide the functionality where - if the user has linked their so with -Bsymbolic-functions, I pass the…
amisax
- 2,957
- 17
- 23
7
votes
1 answer
Understanding SPL & U-Boot Memory Map using bdinfo?
We are using beaglebone black based custom board, I want to write some test results into RAM location from SPL, and read that log and send it via tftpput to the host PC.
So far I'm able to do tftpput from RAM to the host PC. But on the safer side I…
ART
- 1,111
- 3
- 20
- 35
6
votes
2 answers
error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory
anisha@linux-y3pi:~/> google-earth
./googleearth-bin: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory
anisha@linux-y3pi:~/> locate…
Aquarius_Girl
- 1,235
- 6
- 27
- 48
6
votes
1 answer
undefined reference, even when the linked library does exist
I'm trying to compile VTK from source and I received the following error. I'm running Fedora 27, kernel version 4.14.11-300.fc27.x86_64
/usr/lib64/libSM.so: undefined reference to `uuid_generate@UUID_1.0'
/usr/lib64/libSM.so: undefined reference to…
senthil ramamurthy
- 61
- 2