Questions tagged [ld]
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. Linking is usually the final step of compiling a program.
2,875
questions
1
vote
0
answers
50
views
Why are the __bss_start and __bss_end names NOT addresses?
I'm building for a Xilinx 7000 Zynq dual ARM processor. I thought the linker was gnu, but now I'm not sure whether it is or not.
I can create a memory section in the linker script, with something like ...
1
vote
1
answer
44
views
ld cannot find -lblas -llapack while installing R package clarabel (no root access)
I totally understand if this is an incredibly specific situation which would be better directed to my system administrators instead of StackOverflow, but I thought I'd give it a shot anyway.
I am ...
1
vote
0
answers
18
views
Select specific version present in ld version script
Consider the setup present in this question:
GNU LD symbol versioning & C++ binary backwards-compatibility
Consider the version script. Is it possible to explicitly tell ld to limit the exposed ...
1
vote
0
answers
77
views
/usr/bin/ld multiple definition of during compile
I just want to mention that I didnt write this code or modify it in any way prior to trying to compile it. I have just been copying the source from EL5 to 6 to 7 and compiling it. I think when it went ...
0
votes
0
answers
93
views
How to resolve architecture incompatibility errors when building Qt from source on Windows 10?
I have been trying to install Qt on my Windows 10 laptop. I originally downloaded the online installer and used it to get Qt and Qt Creator, but I was not able to add a plugin that I needed: QtSQL: ...
-1
votes
0
answers
38
views
Undefined reference to `??3@YAXPEAX@Z' [duplicate]
I tried to Link my c++ programm with the Rockey library (Rockey is a company that produces usb hardware keys) but during compilation I get the following error [R4ND_Random]+0x12f): undefined reference ...
0
votes
0
answers
101
views
Linux Assembler bss data is overlapping?
I have the following 2 modules that have overlapping address's
You can see that n_Companies extends into savedRegisters causing untold problems.
Can anyone shed some light on this for me ?
MODULE=...
3
votes
0
answers
95
views
How to intentionally leave undefined symbols?
I'm compiling a rust project, and want to include some static with a value not known at compile time, which will only later be linked into a final executable.
I figured I should be able to create some ...
0
votes
0
answers
116
views
cannot execute: required file not found, linking -lc wth ld command
So basically, I am working on a compiler ... long story short, I codegen and i want to use libc with the x86_64 AT&T Assembly. The object file is generated with 64bit elf architecture. I want to ...
0
votes
0
answers
38
views
ld return some error when link some object file with other
I use nasm to compile this assembly code and link it with some other output file 'i686-elf':
global x86_Video_GetVbeInfo
x86_Video_GetVbeInfo:
; make new call frame
push ebp ; ...
1
vote
1
answer
74
views
ld and gcc fails to link glibc for assembly code
I am trying to compile an assembly program that calls upon C functions. As a test I am making a terrible hello world calling printf from stdio.h. The C version should look something like
#include <...
0
votes
0
answers
18
views
Write Custom IDs to specific address with OpenOCD (BlueNRG-2)
Hej Folks,
I try to store unique IDs (serialnumbers) of my BlueNRG-2 into there flash.
Currently I program my controllers using OpenOCD. ".\bin\openocd.exe" -f .\scripts\interface\stlink.cfg ...
0
votes
0
answers
22
views
Compile a PIE ELF program with different offsets in different sections
I am working on a research project where I need to compile a program with multiple sections. These sections need to be loaded with different PIE offsets. I am wondering how I can do it in GCC.
See ...
0
votes
1
answer
20
views
Significance of Line in LD GNU Linker Command Language
I am trying to decipher the LD GNU linker command language. In my linker script, what is the significance of the bolded line? Obviously, I expect it to give a FLASH memory location, but don't ...
0
votes
1
answer
52
views
Troubleshooting Execution Failure of the musl-libc Shared Library
Problem Description
I am currently working on a project involving shared library reconstruction (on a x64, Linux virtual machine), specifically targeting the musl-libc (verion: 1.1.15).
After ...