Top "Linker-scripts" questions

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

How to use the INCLUDE command in ld linker script

I have two linker scripts: common.ld which defines some symbols, and app.ld which positions the sections, using these …

gcc include linker-scripts
Actual default linker script and settings gcc uses

Where can I find the actual linker script and settings gcc uses? Things I've tried: For concreteness, let's consider a …

gcc linker linker-scripts
what is the difference between LD_LIBRARY_PATH and -rpath

When linking libraries, -rpath is used to pass the address of dynamic libraries to ld. My question is if I …

g++ linker-scripts
Understanding the Location Counter of GNU Linker Scripts

I'm working on a university project where I'm writing software for an Atmel SAM7S256 microcontroller from the ground up. …

linker embedded arm gnu linker-scripts
It is possible to get linker script symbols addresses as compile time constant values in C code?

I want to get the address of the end of my program and check at compilation/linker time if I …

c gcc embedded linker-scripts bare-metal
GCC: how to tell GCC to put the 'main' function at the start of the .text section?

I've just started learning some ARM programming and I've got stuck in a slightly annoying problem. The toolchain I'm using …

gcc main ld linker-scripts objcopy
Understanding the linkerscript for an ARM Cortex-M microcontroller

I am using the STM32F746NG microcontroller from STMicroelectronics. This device is based on the ARM Cortex-M7 architecture. I …

linker arm cortex-m linker-scripts newlib