Top "Ld" questions

The ld (linker or loader) program combines object files, archive files and (references from) shared libraries, relocates their data and addresses together with symbol references.

How to add shared library search path to a executable file?

I build the ffmpeg with librtmp. My librtmp is at /opt/librtmp/lib. When I execute the ffmpeg, it said: ./…

shared-libraries ld ldd
Cannot find crtn.o, linking 32 bit code on 64 bit system

I'm attempting to assemble some 32-bit code using NASM and GCC on a 64-bit system. I use the following two …

gcc 64-bit nasm ld
How to configure gcc to use -no-pie by default?

I want to compile the following program on Linux: .global _start .text _start: mov $1, %rax mov $1, %rdi mov $msg, %rsi …

gcc configuration ld gnu-assembler position-independent-code
How do I specify output sections in C files compiled using GCC?

In assembly language I use .section directive to tell the assembler what section to output to e.g .section init …

c gcc ld
How to install gnu ld on mac os x 10.6?

I'm having a lot of trouble compiling the otherwise excellent Contiki OS on my macbook pro (with mac os x 10.6). …

macos ld binutils
How to build a C program using a custom version of glibc and static linking?

I have built glibc 2.14 and installed it in directory ~/GLIBC/glibc_install. Now I want to build and run programs …

c ld glibc static-linking
cmake undefined reference to function

The project structure below is a simplified example. I tried to boil it down to the minimal amount of files …

cmake ld undefined-reference
Convert a Static Library to a Shared Library (create libsome.so from libsome.a): where's my symbols?

the title of this question is an exact dupe, but the answers in that question don't help me. I have …

c++ g++ shared-libraries static-libraries ld
How to set 2 byte wchar_t output?

The GCC uses a 4-byte wchar_t by default. I can set the option -fshort-wchar to get 2 bytes per wchar_…

gcc ld binutils eabi
g++ Optimization Flags: -fuse-linker-plugin vs -fwhole-program

I am reading: http://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html It first suggests: In combination with -flto using this …

c++ linux g++ x86-64 ld