Questions tagged [linker-scripts]

The linker command language used to control the memory layout of computer programs and details of the linking process.

Linker scripts contain a command language processed by the linker to determine how sections in input files are mapped into the output file. Most often used to control the memory layout in computer programs, they can also exercise fine control over details of the linking process.

453 questions
-2
votes
1 answer

can i allocate a variable to a certain address during run time using linker script?

I'm new to using the linker script and there is a concept I'm not sure that i really understand. I know that i can use the linker script to allocate sections in the memory at certain addresses, but that's during compilation time, so can that address…
Mostafa
  • 1
  • 3
-3
votes
2 answers

Array partially empty

I have written a startup and liker script for my C++ application, running on STM32F407VG. The problem is i have an array of structure, where the structure field str is always zero despite the initialization. The other field in the struct are…
mauro
  • 69
  • 1
  • 5
-4
votes
2 answers

Is it possible to allocate same address to two different global variables in C?

Is it possible to allocate same address to two different global variables in C in same build? I have tried several ways using linker but I was not successful. If it is not allowed, can someone please elaborate why? And if it is allowed, how to do…
1 2 3
30
31