Top "Linker-scripts" questions

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

What does KEEP mean in a linker script?

The LD manual does not explain what the KEEP command does. Below is a snippet from a third-party linker script …

linker ld linker-scripts
understanding the __libc_init_array

I viewed the source code of __libc_init_array from http://newlib.sourcearchive.com/documentation/1.18.0/init_8c-source.html . But I …

gcc startup elf linker-scripts newlib
Limiting visibility of symbols when linking shared libraries

Some platforms mandate that you provide a list of a shared library's external symbols to the linker. However, on most …

linker shared-libraries gnu linker-scripts
How to correctly use a simple linker script? Executable gets SIGKILL when run

I'm trying to understand deeper linking process and linker scripts...looking at binutils doc i found a simple linker script …

gcc linker linker-scripts
linking problem: i386:x86-64 architecture of input file *.o is incompatible with i386 output

I got a problem in linking when I moved my osdev to linux where it worked previously on gcc 3.5.* and …

c gcc assembly linker linker-scripts
ALIGN in Linker Scripts

What does the ALIGN keyword do in linker scripts? I read many tutorials about linker scripts but I cant understand …

linker linker-scripts
Linker Script - Placing a section at the end of a memory region

I have searched far and wide for how to do this and have failed to come up with an answer. …

c++ c memory linker linker-scripts
Difference between Program header and Section Header in ELF

Q1 What is the difference between Program header and Section Header in ELF? Q1.1 What is the difference between segment …

c arm gnu elf linker-scripts
When is .ARM.exidx is used

I am working on Contiki 2.7 with the mbxxx target. While building my code the linker complained about an overlap of .…

arm stm32 linker-scripts contiki codesourcery
GNU LD: How to override a symbol value (an address) defined by the linker script specified using -T

My usecase is as follows: I am using a typical SDK that comes with Makefile based projects I belive the …

gcc ld linker-scripts