Skip to main content
0 votes
0 answers
44 views

.elf file has no sections

I'm currently trying to recreate the blinky example using low-level C++ using vscode for the STM32F446RE Nucleo-64 board. I took the linkerscript and startup code from dwelch67's stm32 sample code and ...
SneakyTurtle's user avatar
3 votes
1 answer
33 views

Calling C function from the .init3 section of a AVR-GCC compiled program

I am working on a project that contains a firmware update failure feature that : notifies user/host that firmware update failed whenever the device gets unplugged in the middle of a firmware update ...
Tom MacDonald's user avatar
0 votes
0 answers
17 views

How to control the memory distribution of INSERT SECTIONS when using INSERT in Linker Script

I have two linker scripts one for generating specific SECTIONS INSERT in my main linker script like this SECTIONS { .bss.extra : { . = ALIGN(8); __am_apps_bss_start = .; *(__am_apps.bss*)...
user28040357's user avatar
0 votes
1 answer
107 views

How to Initialize memory section during startup?

I have allocated a memory section my_data in the linker file to store some shared variables. However, I noticed that after startup, I see some (???) values when I take a memory dump. Below is my ...
user2986042's user avatar
  • 1,258
0 votes
0 answers
33 views

Problem custom linker script (ld) section that has WX bits

Premise: I want to compile my Rust code with a custom linker script, cargo uses this script, and compiles and links my binary without any errors. Problem: I want to have a custom section in "...
Andreja Janković's user avatar
0 votes
0 answers
34 views

Cortex M4/M7 linker script section placement

i'm working with an NXP RT1052 MCU that loads code from Flash into SDRAM and executes it there. My application uses FreeRTOS+TCP and i'd like to place the network code inside the ITC SRAM. The kernel ...
dinocroc123's user avatar
0 votes
0 answers
37 views

How can I prevent interleaving sections in a linker script?

I’m working with a linker script and I need to ensure that two specific sections, .feature.rodata and .feature.text, are placed contiguously in memory without any other sections (like .eh_frame) being ...
lol lol's user avatar
  • 491
1 vote
0 answers
20 views

gnu ld linker script LONG() not placing value as expected (ARM Cortex-M3) [duplicate]

gnu .ld linker script -- I have added a MEMORY definition to hold a checksum: _CRC_Value = 0x12345678; MEMORY { RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 80K FLASH (rx) : ORIGIN = ...
Hunter Ritchie's user avatar
1 vote
0 answers
42 views

GNU linker uses 0x200000000 as a base address for LMA and VMA

boot.s .code16 .text .global start start: jmp start boot.ld ENTRY(start) SECTIONS { . = 0x00007C00; /* Set the location counter to 0x7C00 */ .text : { *(.text) } ...
Korsarq's user avatar
  • 795
0 votes
1 answer
76 views

The use of linker files (.ld files) in embedded bare-metal programming

After the .LD file(linker file) of an embedded bare metal specifies that FLASH is not writable, for example: MEMORY { { FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 64K RAM (rwx) : ORIGIN = ...
james lebron's user avatar
1 vote
1 answer
146 views

Identifiers with leading underscore defined in a linker script

Per the C standard section 7.1.3 Reserved identifiers All identifiers that begin with an underscore are always reserved for use as identifiers with file scope in both the ordinary and tag name spaces....
Eugene Sh.'s user avatar
  • 18.3k
0 votes
0 answers
98 views

how to initialize my values ​in my table declare with an _attribute__((section())), of a section in my linker script

`Hello everyone, I'm new in that domain (linker script and memory section). I have an array that I want to declare in a section of my address space of my processor (neorv32). I do this for various ...
etienne lattion's user avatar
0 votes
0 answers
38 views

Gnu linker disregards linker script and pulls in unrequested code

I am writing a cpm-like os for a Cortex-m microprocessor (Ti Tiva-C) using Ti CCS v12 IDE. It is a teaching/student project for junior students. The project will be divided in sub-project and ...
Stefano Di Pascoli's user avatar
5 votes
1 answer
237 views

How to set alignment of a brand new section

in a software project of mine, on linux, I need to create a special section that needs to be populated with 40 bytes large structures. Then I would like to treat this section as an array. For that I ...
mastupristi's user avatar
  • 1,458
3 votes
1 answer
183 views

Data Integrity Issue with Custom .rawdata Section in Linker Script

I'm working on an embedded project using an ARM Cortex-M4 processor (specifically, an STM32F4 microcontroller) and I've encountered a peculiar issue related to memory sections defined in my linker ...
Giackkk's user avatar
  • 121

15 30 50 per page
1
2 3 4 5
32