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.
The LD manual does not explain what the KEEP command does. Below is a snippet from a third-party linker script …
linker ld linker-scriptsWhen I try to build the following program: #include <stdio.h> int main(void) { printf("hello world\n"); …
macos gcc ldto clarify, my question refers to wrapping/intercepting calls from one function/symbol to another function/symbol when the caller …
gcc linker mocking ld interceptorIf you are trying to understand dynamic linking, this question is likely to be of interest. One of the answers …
macos gcc linker ld dynamic-libraryI recently installed the hdf5 library on an ubuntu machine, and am now having trouble linking to the exported functions. …
g++ shared-libraries ld hdf5 undefined-referenceWhy am I getting an "undefined reference" error using gcc? I am trying to create a shared object (.so) that …
c gcc ld shared-librariesI have a working linker script. I want to add another data section whose contents is pulled directly from a …
binary gnu ld