Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

boot/startup: Add user_section.ld.h #3297

Merged
merged 3 commits into from
Sep 10, 2024

Conversation

kasjer
Copy link
Contributor

@kasjer kasjer commented Aug 22, 2024

Some MCU/applications may require special sections
in linker script

So far memory_regions.ld.h could add non standard
memory regions, newt link_tables could add filters
to read only data for easy link time table generations.

This adds way to add whole sections and or symbol
definitions if required

Signed-off-by: Jerzy Kasenberg [email protected]

Some MCU/applications may require special sections
in linker script

So far memory_regions.ld.h could add non standard
memory regions, newt link_tables could add filters
to read only data for easy link time table generations.

This adds way to add whole sections and or symbol
definitions if required

Signed-off-by: Jerzy Kasenberg <[email protected]>
Now all cortex linker script files have region for
interrupt stack.
It can be provided by memory_regions.ld.h if
stack is to be placed in separate memory region.
If MCU/BSP specific region is defined (no definition
of STACk_REGION)
STACK_RAM region is created at the end of RAM.
This simplifies check for heap.

mtb section is removed for now from all linker script
templates as it is not present in any MCU that has
generated linker script.

Few templates had duplicating section .bssnz that is now removed.

bss sections now have (NOLOAD) attribute

Signed-off-by: Jerzy Kasenberg <[email protected]>
When BSP switched to use autogenerated linker script
definitions for _dtcmram_start and _itcmram_start
were not present in generated script.

Now STM32H7 MCU adds user_sections.ld.h that provides
missing symbols.

Signed-off-by: Jerzy Kasenberg <[email protected]>
@github-actions github-actions bot added STM STM32 related size/m labels Aug 22, 2024
@kasjer kasjer merged commit cd5c257 into apache:master Sep 10, 2024
19 checks passed
@kasjer kasjer deleted the kasjer/linker-script-unification branch September 10, 2024 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/m STM STM32 related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants