Nios® II Software Developer Handbook

ID 683525
Date 8/28/2023
Public
Document Table of Contents

16.5.2.3. add_section_mapping

Usage

add_section_mapping <section_name> <memory_region_name>

Options

  • <section_name>: String with the name of the linker section.
  • <memory_region_name>: String with the name of the memory region to map.

Description

Maps the specified linker section to the specified linker memory region. If the section does not already exist, add_section_mapping creates it. If it already exists, add_section_mapping overrides the existing mapping with the new one. The linker creates the section mappings in the order in which they appear in the linker script.

Example

add_section_mapping .text onchip_ram0