soc: riscv: openisa_rv32m1: Conver to new devicetree macros

Convert DT_CODE_PARTITION_{OFFSET,SIZE} to use new
DT_REG_ADDR/DT_REG_SIZE macros instead based on
DT_CHOSEN(zephyr_code_partition).

Signed-off-by: Kumar Gala <a5e5248af4cd4f0ed8c515f61d40a6e2db46a66e@linaro.org>

/*
 * Copyright (c) 2013-2014 Wind River Systems, Inc.
 * Copyright (c) 2016-2017 Jean-Paul Etienne <fractalclone@gmail.com>
 * Copyright (c) 2018 Foundries.io Ltd
 *
 * This file is based on:
 *
 * - include/arch/arm/aarch32/cortex_m/scripts/linker.ld
 * - include/arch/riscv/common/linker.ld
 * - include/arch/riscv/pulpino/linker.ld
 *
 * SPDX-License-Identifier: Apache-2.0
 */

#include <devicetree.h>
#include <autoconf.h>

#include <linker/sections.h>
#include <linker/linker-defs.h>
#include <linker/linker-tool.h>

/*
 * Extra efforts would need to be taken to ensure the IRQ handlers are within
 * jumping distance of the vector table in non-XIP builds, so avoid them.
 */
#define ROMABLE_REGION              ROM
#define RAMABLE_REGION              RAM

#define VECTOR_SIZE 0x100

#ifdef CONFIG_USE_DT_CODE_PARTITION

#ifdef CONFIG_BOOTLOADER_MCUBOOT

#define ROM_BASE (DT_REG_ADDR(DT_CHOSEN(zephyr_code_partition)))
#define ROM_SIZE (DT_REG_SIZE(DT_CHOSEN(zephyr_code_partition)))

#define VECTOR_BASE (ROM_BASE + CONFIG_TEXT_SECTION_OFFSET)

#else

#define ROM_BASE (DT_REG_ADDR(DT_CHOSEN(zephyr_code_partition)))
#define ROM_SIZE (DT_REG_SIZE(DT_CHOSEN(zephyr_code_partition)) - VECTOR_BASE)

#define VECTOR_BASE (ROM_BASE + ROM_SIZE)

#endif

#else

#define ROM_BASE DT_REG_ADDR(DT_CHOSEN(zephyr_flash))
#define ROM_SIZE (DT_REG_SIZE(DT_CHOSEN(zephyr_flash)) - VECTOR_SIZE)

#define VECTOR_BASE (ROM_BASE + ROM_SIZE)

#endif

#define RAM_BASE CONFIG_SRAM_BASE_ADDRESS
#define RAM_SIZE KB(CONFIG_SRAM_SIZE)

MEMORY
    {
    ROM (rx)      : ORIGIN = ROM_BASE,    LENGTH = ROM_SIZE
    /*
     * Each RISC-V core on this chip (RI5CY and ZERO-RISCY) has
     * a vector table at the end of its flash bank. They are relocatable
     * at runtime, but we need to put the reset vectors in hardcoded places.
     *
     * (The Arm core vector tables are at the beginning of each
     * flash bank.)
     */
#ifndef CONFIG_BOOTLOADER_MCUBOOT
    VECTORS (rx)  : ORIGIN = VECTOR_BASE, LENGTH = VECTOR_SIZE
#endif
    RAM (rwx)     : ORIGIN = RAM_BASE,    LENGTH = RAM_SIZE
    /*
     * Special section, not included in the final binary, used
     * to generate interrupt tables. See include/linker/intlist.ld.
     */
    IDT_LIST (wx) : ORIGIN = 0xFFFFF7FF, LENGTH = 2K
    }

ENTRY(CONFIG_KERNEL_ENTRY)

SECTIONS
    {

#include <linker/rel-sections.ld>

    SECTION_PROLOGUE(.plt,,)
	{
		*(.plt)
	}

    SECTION_PROLOGUE(.iplt,,)
	{
		*(.iplt)
	}

    GROUP_START(ROM)
    _image_rom_start = ROM_BASE;

    SECTION_PROLOGUE(_TEXT_SECTION_NAME,,)
	{

/* Located in generated directory. This file is populated by calling
 * zephyr_linker_sources(ROM_START ...). This typically contains the vector
 * table and debug information.
 */
#include <snippets-rom-start.ld>

	_image_text_start = .;

	*(.text .text.*)
	*(.gnu.linkonce.t.*)
	*(.eh_frame)
	} GROUP_LINK_IN(ROM)

    _image_text_end = .;

    _image_rodata_start = .;

#include <linker/common-rom.ld>

    SECTION_PROLOGUE(_RODATA_SECTION_NAME,,)
	{
	. = ALIGN(4);
	*(.srodata)
	*(".srodata.*")
	*(.rodata)
	*(.rodata.*)
	*(.gnu.linkonce.r.*)

/* Located in generated directory. This file is populated by the
 * zephyr_linker_sources() Cmake function.
 */
#include <snippets-rodata.ld>

	} GROUP_LINK_IN(ROMABLE_REGION)

#include <linker/cplusplus-rom.ld>

    _image_rodata_end = .;
    _image_rom_end = .;

#ifndef CONFIG_BOOTLOADER_MCUBOOT
    /* The vector table goes into core-dependent flash locations. */
    SECTION_PROLOGUE(vectors,,)
	{
	_vector_start = .;
	KEEP(*(.vectors.*))
	} GROUP_LINK_IN(VECTORS)
    _vector_end = .;
#endif

    GROUP_END(ROM)

    GROUP_START(RAM)

    SECTION_DATA_PROLOGUE(_DATA_SECTION_NAME,,)
	{
	. = ALIGN(4);
	_image_ram_start = .;
	__data_ram_start = .;

	*(.data)
	*(.data.*)
	*(.gnu.linkonce.s.*)

	/* https://groups.google.com/a/groups.riscv.org/d/msg/sw-dev/60IdaZj27dY/TKT3hbNlAgAJ */
	*(.sdata .sdata.* .gnu.linkonce.s.*)
	*(.sdata2 .sdata2.* .gnu.linkonce.s2.*)

/* Located in generated directory. This file is populated by the
 * zephyr_linker_sources() Cmake function.
 */
#include <snippets-rwdata.ld>

	} GROUP_DATA_LINK_IN(RAMABLE_REGION, ROMABLE_REGION)

#include <linker/common-ram.ld>
#include <linker/cplusplus-ram.ld>

    __data_ram_end = .;
    __data_rom_start = LOADADDR(_DATA_SECTION_NAME);

    SECTION_DATA_PROLOGUE(_BSS_SECTION_NAME,(NOLOAD),)
	{
	/*
	 * For performance, BSS section is assumed to be 4 byte aligned and
	 * a multiple of 4 bytes, so it can be cleared in words.
	 */
	 . = ALIGN(4);
	 __bss_start = .;

	 *(.bss .bss.*)
	 *(.sbss .sbss.*)
	 COMMON_SYMBOLS

	 /* Ensure 4 byte alignment for the entire section. */
	 . = ALIGN(4);
	  __bss_end = .;
	} GROUP_DATA_LINK_IN(RAMABLE_REGION, RAMABLE_REGION)

    SECTION_PROLOGUE(_NOINIT_SECTION_NAME,(NOLOAD),)
	{
	/*
	 * This section is used for non-initialized objects that
	 * will not be cleared during the boot process.
	 */
	 *(.noinit .noinit.*)

/* Located in generated directory. This file is populated by the
 * zephyr_linker_sources() Cmake function.
 */
#include <snippets-noinit.ld>

	} GROUP_LINK_IN(RAMABLE_REGION)

/* Located in generated directory. This file is populated by the
 * zephyr_linker_sources() Cmake function.
 */
#include <snippets-ram-sections.ld>

     _image_ram_end = .;
     _end = .; /* end of image */

     GROUP_END(RAM)

#ifdef CONFIG_CUSTOM_SECTIONS_LD
/* Located in project source directory */
#include <custom-sections.ld>
#endif
/* Located in generated directory. This file is populated by the
 * zephyr_linker_sources() Cmake function.
 */
#include <snippets-sections.ld>

#ifdef CONFIG_GEN_ISR_TABLES
/* Bogus section, post-processed during the build to initialize interrupts. */
#include <linker/intlist.ld>
#endif

#include <linker/debug-sections.ld>

    SECTION_PROLOGUE(.riscv.attributes, 0,)
	{
	KEEP(*(.riscv.attributes))
	KEEP(*(.gnu.attributes))
	}
    /*
     * Pulpino toolchains emit these sections; we don't care about them,
     * but need to avoid build system warnings about orphaned sections.
     */
    SECTION_PROLOGUE(.Pulp_Chip.Info,,)
	{
		*(.Pulp_Chip.*)
	}

    }

/*
 * Copyright (c) 2013-2014 Wind River Systems, Inc.
 * Copyright (c) 2016-2017 Jean-Paul Etienne <fractalclone@gmail.com>
 * Copyright (c) 2018 Foundries.io Ltd
 *
 * This file is based on:
 *
 * - include/arch/arm/aarch32/cortex_m/scripts/linker.ld
 * - include/arch/riscv/common/linker.ld
 * - include/arch/riscv/pulpino/linker.ld
 *
 * SPDX-License-Identifier: Apache-2.0
 */

#include <devicetree.h>
#include <autoconf.h>

#include <linker/sections.h>
#include <linker/linker-defs.h>
#include <linker/linker-tool.h>

/*
 * Extra efforts would need to be taken to ensure the IRQ handlers are within
 * jumping distance of the vector table in non-XIP builds, so avoid them.
 */
#define ROMABLE_REGION              ROM
#define RAMABLE_REGION              RAM

#define VECTOR_SIZE 0x100

#ifdef CONFIG_USE_DT_CODE_PARTITION

#ifdef CONFIG_BOOTLOADER_MCUBOOT

#define ROM_BASE (DT_CODE_PARTITION_OFFSET)
#define ROM_SIZE (DT_CODE_PARTITION_SIZE)

#define VECTOR_BASE (ROM_BASE + CONFIG_TEXT_SECTION_OFFSET)

#else

#define ROM_BASE DT_CODE_PARTITION_OFFSET
#define ROM_SIZE (DT_CODE_PARTITION_SIZE - VECTOR_SIZE)

#define VECTOR_BASE (ROM_BASE + ROM_SIZE)

#endif

#else

#define ROM_BASE DT_REG_ADDR(DT_CHOSEN(zephyr_flash))
#define ROM_SIZE (DT_REG_SIZE(DT_CHOSEN(zephyr_flash)) - VECTOR_SIZE)

#define VECTOR_BASE (ROM_BASE + ROM_SIZE)

#endif

#define RAM_BASE CONFIG_SRAM_BASE_ADDRESS
#define RAM_SIZE KB(CONFIG_SRAM_SIZE)

MEMORY
    {
    ROM (rx)      : ORIGIN = ROM_BASE,    LENGTH = ROM_SIZE
    /*
     * Each RISC-V core on this chip (RI5CY and ZERO-RISCY) has
     * a vector table at the end of its flash bank. They are relocatable
     * at runtime, but we need to put the reset vectors in hardcoded places.
     *
     * (The Arm core vector tables are at the beginning of each
     * flash bank.)
     */
#ifndef CONFIG_BOOTLOADER_MCUBOOT
    VECTORS (rx)  : ORIGIN = VECTOR_BASE, LENGTH = VECTOR_SIZE
#endif
    RAM (rwx)     : ORIGIN = RAM_BASE,    LENGTH = RAM_SIZE
    /*
     * Special section, not included in the final binary, used
     * to generate interrupt tables. See include/linker/intlist.ld.
     */
    IDT_LIST (wx) : ORIGIN = 0xFFFFF7FF, LENGTH = 2K
    }

ENTRY(CONFIG_KERNEL_ENTRY)

SECTIONS
    {

#include <linker/rel-sections.ld>

    SECTION_PROLOGUE(.plt,,)
	{
		*(.plt)
	}

    SECTION_PROLOGUE(.iplt,,)
	{
		*(.iplt)
	}

    GROUP_START(ROM)
    _image_rom_start = ROM_BASE;

    SECTION_PROLOGUE(_TEXT_SECTION_NAME,,)
	{

/* Located in generated directory. This file is populated by calling
 * zephyr_linker_sources(ROM_START ...). This typically contains the vector
 * table and debug information.
 */
#include <snippets-rom-start.ld>

	_image_text_start = .;

	*(.text .text.*)
	*(.gnu.linkonce.t.*)
	*(.eh_frame)
	} GROUP_LINK_IN(ROM)

    _image_text_end = .;

    _image_rodata_start = .;

#include <linker/common-rom.ld>

    SECTION_PROLOGUE(_RODATA_SECTION_NAME,,)
	{
	. = ALIGN(4);
	*(.srodata)
	*(".srodata.*")
	*(.rodata)
	*(.rodata.*)
	*(.gnu.linkonce.r.*)

/* Located in generated directory. This file is populated by the
 * zephyr_linker_sources() Cmake function.
 */
#include <snippets-rodata.ld>

	} GROUP_LINK_IN(ROMABLE_REGION)

#include <linker/cplusplus-rom.ld>

    _image_rodata_end = .;
    _image_rom_end = .;

#ifndef CONFIG_BOOTLOADER_MCUBOOT
    /* The vector table goes into core-dependent flash locations. */
    SECTION_PROLOGUE(vectors,,)
	{
	_vector_start = .;
	KEEP(*(.vectors.*))
	} GROUP_LINK_IN(VECTORS)
    _vector_end = .;
#endif

    GROUP_END(ROM)

    GROUP_START(RAM)

    SECTION_DATA_PROLOGUE(_DATA_SECTION_NAME,,)
	{
	. = ALIGN(4);
	_image_ram_start = .;
	__data_ram_start = .;

	*(.data)
	*(.data.*)
	*(.gnu.linkonce.s.*)

	/* https://groups.google.com/a/groups.riscv.org/d/msg/sw-dev/60IdaZj27dY/TKT3hbNlAgAJ */
	*(.sdata .sdata.* .gnu.linkonce.s.*)
	*(.sdata2 .sdata2.* .gnu.linkonce.s2.*)

/* Located in generated directory. This file is populated by the
 * zephyr_linker_sources() Cmake function.
 */
#include <snippets-rwdata.ld>

	} GROUP_DATA_LINK_IN(RAMABLE_REGION, ROMABLE_REGION)

#include <linker/common-ram.ld>
#include <linker/cplusplus-ram.ld>

    __data_ram_end = .;
    __data_rom_start = LOADADDR(_DATA_SECTION_NAME);

    SECTION_DATA_PROLOGUE(_BSS_SECTION_NAME,(NOLOAD),)
	{
	/*
	 * For performance, BSS section is assumed to be 4 byte aligned and
	 * a multiple of 4 bytes, so it can be cleared in words.
	 */
	 . = ALIGN(4);
	 __bss_start = .;

	 *(.bss .bss.*)
	 *(.sbss .sbss.*)
	 COMMON_SYMBOLS

	 /* Ensure 4 byte alignment for the entire section. */
	 . = ALIGN(4);
	  __bss_end = .;
	} GROUP_DATA_LINK_IN(RAMABLE_REGION, RAMABLE_REGION)

    SECTION_PROLOGUE(_NOINIT_SECTION_NAME,(NOLOAD),)
	{
	/*
	 * This section is used for non-initialized objects that
	 * will not be cleared during the boot process.
	 */
	 *(.noinit .noinit.*)

/* Located in generated directory. This file is populated by the
 * zephyr_linker_sources() Cmake function.
 */
#include <snippets-noinit.ld>

	} GROUP_LINK_IN(RAMABLE_REGION)

/* Located in generated directory. This file is populated by the
 * zephyr_linker_sources() Cmake function.
 */
#include <snippets-ram-sections.ld>

     _image_ram_end = .;
     _end = .; /* end of image */

     GROUP_END(RAM)

#ifdef CONFIG_CUSTOM_SECTIONS_LD
/* Located in project source directory */
#include <custom-sections.ld>
#endif
/* Located in generated directory. This file is populated by the
 * zephyr_linker_sources() Cmake function.
 */
#include <snippets-sections.ld>

#ifdef CONFIG_GEN_ISR_TABLES
/* Bogus section, post-processed during the build to initialize interrupts. */
#include <linker/intlist.ld>
#endif

#include <linker/debug-sections.ld>

    SECTION_PROLOGUE(.riscv.attributes, 0,)
	{
	KEEP(*(.riscv.attributes))
	KEEP(*(.gnu.attributes))
	}
    /*
     * Pulpino toolchains emit these sections; we don't care about them,
     * but need to avoid build system warnings about orphaned sections.
     */
    SECTION_PROLOGUE(.Pulp_Chip.Info,,)
	{
		*(.Pulp_Chip.*)
	}

    }


Compile network and RTOS with GCC_ARM

Compile network and RTOS with GCC_ARM

/* Linker script for mbed LPC1768 */

/* Linker script to configure memory regions. */
MEMORY
{
  FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 512K
  RAM (rwx) : ORIGIN = 0x100000C8, LENGTH = 0x7F38

  USB_RAM(rwx) : ORIGIN = 0x2007C000, LENGTH = 16K
  ETH_RAM(rwx) : ORIGIN = 0x20080000, LENGTH = 16K
}

/* Linker script to place sections and symbol values. Should be used together
 * with other linker script that defines memory regions FLASH and RAM.
 * It references following symbols, which must be defined in code:
 *   Reset_Handler : Entry of reset handler
 *
 * It defines following symbols, which code can use without definition:
 *   __exidx_start
 *   __exidx_end
 *   __etext
 *   __data_start__
 *   __preinit_array_start
 *   __preinit_array_end
 *   __init_array_start
 *   __init_array_end
 *   __fini_array_start
 *   __fini_array_end
 *   __data_end__
 *   __bss_start__
 *   __bss_end__
 *   __end__
 *   end
 *   __HeapLimit
 *   __StackLimit
 *   __StackTop
 *   __stack
 */
ENTRY(Reset_Handler)

SECTIONS
{
    .text :
    {
        KEEP(*(.isr_vector))
        *(.text*)

        KEEP(*(.init))
        KEEP(*(.fini))

        /* .ctors */
        *crtbegin.o(.ctors)
        *crtbegin?.o(.ctors)
        *(EXCLUDE_FILE(*crtend?.o *crtend.o) .ctors)
        *(SORT(.ctors.*))
        *(.ctors)

        /* .dtors */
        *crtbegin.o(.dtors)
        *crtbegin?.o(.dtors)
        *(EXCLUDE_FILE(*crtend?.o *crtend.o) .dtors)
        *(SORT(.dtors.*))
        *(.dtors)

        *(.rodata*)

        KEEP(*(.eh_frame*))
    } > FLASH

    .ARM.extab :
    {
        *(.ARM.extab* .gnu.linkonce.armextab.*)
    } > FLASH

    __exidx_start = .;
    .ARM.exidx :
    {
        *(.ARM.exidx* .gnu.linkonce.armexidx.*)
    } > FLASH
    __exidx_end = .;

    __etext = .;

    .data : AT (__etext)
    {
        __data_start__ = .;
        *(vtable)
        *(.data*)

        . = ALIGN(4);
        /* preinit data */
        PROVIDE (__preinit_array_start = .);
        KEEP(*(.preinit_array))
        PROVIDE (__preinit_array_end = .);

        . = ALIGN(4);
        /* init data */
        PROVIDE (__init_array_start = .);
        KEEP(*(SORT(.init_array.*)))
        KEEP(*(.init_array))
        PROVIDE (__init_array_end = .);

        . = ALIGN(4);
        /* finit data */
        PROVIDE (__fini_array_start = .);
        KEEP(*(SORT(.fini_array.*)))
        KEEP(*(.fini_array))
        PROVIDE (__fini_array_end = .);

        . = ALIGN(4);
        /* All data end */
        __data_end__ = .;

    } > RAM

    /* Code can explicitly ask for data to be
       placed in these higher RAM banks where
       they will be left uninitialized.
    */
    .AHBSRAM0 (NOLOAD):
    {
        Image$$RW_IRAM2$$Base = . ;
        *(AHBSRAM0)
        Image$$RW_IRAM2$$ZI$$Limit = .;
    } > USB_RAM

    .AHBSRAM1 (NOLOAD):
    {
        Image$$RW_IRAM3$$Base = . ;
        *(AHBSRAM1)
        Image$$RW_IRAM3$$ZI$$Limit = .;
    } > ETH_RAM

    .bss :
    {
        __bss_start__ = .;
        *(.bss*)
        *(COMMON)
        __bss_end__ = .;
    } > RAM

    .heap :
    {
        __end__ = .;
        end = __end__;
        *(.heap*)
        __HeapLimit = .;
    } > RAM

    /* .stack_dummy section doesn't contains any symbols. It is only
     * used for linker to calculate size of stack sections, and assign
     * values to stack symbols later */
    .stack_dummy :
    {
        *(.stack)
    } > RAM

    /* Set stack top to end of RAM, and stack limit move down by
     * size of stack_dummy section */
    __StackTop = ORIGIN(RAM) + LENGTH(RAM);
    __StackLimit = __StackTop - SIZEOF(.stack_dummy);
    PROVIDE(__stack = __StackTop);

    /* Check if data + heap + stack exceeds RAM limit */
    ASSERT(__StackLimit >= __HeapLimit, "region RAM overflowed with stack")
}

/* Linker script for mbed LPC1768 */

/* Linker script to configure memory regions. */
MEMORY
{
  FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 512K
  RAM (rwx) : ORIGIN = 0x100000C8, LENGTH = 0x7F38

  USB_RAM(rwx) : ORIGIN = 0x2007C000, LENGTH = 16K
  ETH_RAM(rwx) : ORIGIN = 0x20080000, LENGTH = 16K
}

/* Linker script to place sections and symbol values. Should be used together
 * with other linker script that defines memory regions FLASH and RAM.
 * It references following symbols, which must be defined in code:
 *   Reset_Handler : Entry of reset handler
 *
 * It defines following symbols, which code can use without definition:
 *   __exidx_start
 *   __exidx_end
 *   __etext
 *   __data_start__
 *   __preinit_array_start
 *   __preinit_array_end
 *   __init_array_start
 *   __init_array_end
 *   __fini_array_start
 *   __fini_array_end
 *   __data_end__
 *   __bss_start__
 *   __bss_end__
 *   __end__
 *   end
 *   __HeapLimit
 *   __StackLimit
 *   __StackTop
 *   __stack
 */
ENTRY(Reset_Handler)

SECTIONS
{
    .text :
    {
        KEEP(*(.isr_vector))
        *(.text*)

        KEEP(*(.init))
        KEEP(*(.fini))

        /* .ctors */
        *crtbegin.o(.ctors)
        *crtbegin?.o(.ctors)
        *(EXCLUDE_FILE(*crtend?.o *crtend.o) .ctors)
        *(SORT(.ctors.*))
        *(.ctors)

        /* .dtors */
        *crtbegin.o(.dtors)
        *crtbegin?.o(.dtors)
        *(EXCLUDE_FILE(*crtend?.o *crtend.o) .dtors)
        *(SORT(.dtors.*))
        *(.dtors)

        *(.rodata*)

        KEEP(*(.eh_frame*))
    } > FLASH

    .ARM.extab :
    {
        *(.ARM.extab* .gnu.linkonce.armextab.*)
    } > FLASH

    __exidx_start = .;
    .ARM.exidx :
    {
        *(.ARM.exidx* .gnu.linkonce.armexidx.*)
    } > FLASH
    __exidx_end = .;

    __etext = .;

    .data : AT (__etext)
    {
        __data_start__ = .;
        *(vtable)
        *(.data*)

        . = ALIGN(4);
        /* preinit data */
        PROVIDE (__preinit_array_start = .);
        KEEP(*(.preinit_array))
        PROVIDE (__preinit_array_end = .);

        . = ALIGN(4);
        /* init data */
        PROVIDE (__init_array_start = .);
        KEEP(*(SORT(.init_array.*)))
        KEEP(*(.init_array))
        PROVIDE (__init_array_end = .);

        . = ALIGN(4);
        /* finit data */
        PROVIDE (__fini_array_start = .);
        KEEP(*(SORT(.fini_array.*)))
        KEEP(*(.fini_array))
        PROVIDE (__fini_array_end = .);

        . = ALIGN(4);
        /* All data end */
        __data_end__ = .;

    } > RAM

    /* Code can explicitly ask for data to be
       placed in these higher RAM banks where
       they will be left uninitialized.
    */
    .AHBSRAM0 (NOLOAD):
    {
        Image$$RW_IRAM2$$Base = . ;
        *(AHBSRAM0)
        Image$$RW_IRAM2$$ZI$$Limit = .;
    } > USB_RAM

    .AHBSRAM1 (NOLOAD):
    {
        Image$$RW_IRAM3$$Base = . ;
        *(AHBSRAM1)
        Image$$RW_IRAM3$$ZI$$Limit = .;
    } > ETH_RAM

    /* .data_RAM2 : ALIGN(4)
    {
       FILL(0xff)
        *(.data.$RAM2*)
        *(.data.$ETH_RAM*)
       . = ALIGN(4) ;
    } > ETH_RAM AT>FLASH

    .bss_RAM2 : ALIGN(4)
    {
        *(.bss.$RAM2*)
        *(.bss.$ETH_RAM*)
       . = ALIGN(4) ;
    } > ETH_RAM
    */

    .bss :
    {
        __bss_start__ = .;
        *(.bss*)
        *(COMMON)
        __bss_end__ = .;
    } > RAM

    .heap :
    {
        __end__ = .;
        end = __end__;
        *(.heap*)
        __HeapLimit = .;
    } > RAM

    /* .stack_dummy section doesn't contains any symbols. It is only
     * used for linker to calculate size of stack sections, and assign
     * values to stack symbols later */
    .stack_dummy :
    {
        *(.stack)
    } > RAM

    /* Set stack top to end of RAM, and stack limit move down by
     * size of stack_dummy section */
    __StackTop = ORIGIN(RAM) + LENGTH(RAM);
    __StackLimit = __StackTop - SIZEOF(.stack_dummy);
    PROVIDE(__stack = __StackTop);

    /* Check if data + heap + stack exceeds RAM limit */
    ASSERT(__StackLimit >= __HeapLimit, "region RAM overflowed with stack")
}


testsuite: coverage: align rodata section

This adds an ALIGN statement to the rodata linker snippet
for coverage. Without this, sometimes the section is not
aligned, but __init_array_start indicates an aligned
address, resulting in incorrect function pointers.
So align it.

Signed-off-by: Daniel Leung <d94e04d205b5962d7873a139ef298b03c1717f72@intel.com>

/*
 * Copyright (c) 2019 Intel Corporation
 * SPDX-License-Identifier: Apache-2.0
 */

. = ALIGN(4);

PROVIDE_HIDDEN (__init_array_start = .);
KEEP (*(SORT(.init_array.*)))
KEEP (*(.init_array*))
PROVIDE_HIDDEN (__init_array_end = .);

/*
 * Copyright (c) 2019 Intel Corporation
 * SPDX-License-Identifier: Apache-2.0
 */

PROVIDE_HIDDEN (__init_array_start = .);
KEEP (*(SORT(.init_array.*)))
KEEP (*(.init_array*))
PROVIDE_HIDDEN (__init_array_end = .);


Added mbed layout file

Added mbed layout file

fatal: unable to access 'https://github.com/farcaller/arm-demos.git/': The requested URL returned error: 403


PCIe: fix section name for eth control structure

fatal: unable to access 'https://github.com/kalray/odp-mppa.git/': The requested URL returned error: 403


trivial: add linker script for armhf

trivial: add linker script for armhf

fixes FTBFS in Debian:
https://buildd.debian.org/status/fetch.php?pkg=fwupd&arch=armhf&ver=1.5.7-1&stamp=1614100547&raw=0

fatal: unable to access 'https://github.com/hughsie/fwupd.git/': The requested URL returned error: 403


Import CM7 ram link script

Import CM7 ram link script

GitOrigin-RevId: 22b0ac13db442a4989d6b3ca7997af83a2a986d2

fatal: unable to access 'https://github.com/google-coral/coralmicro.git/': The requested URL returned error: 403


Architecture: Linker: Remove stm32_itcm.ld. Useless.

fatal: unable to access 'https://github.com/dergraaf/xpcc.git/': The requested URL returned error: 403


chip/STMicroelectronics/STM32F4: add STM32F4xxxG.ld

fatal: unable to access 'https://github.com/jasmin-j/distortos.git/': The requested URL returned error: 403


build/configs/rtl8721csm/scripts: Update memory region

Signed-off-by: Nitish Ambastha <fe3fdc39e03194843ec106698f0d3de8d8813ae6@samsung.com>

fatal: unable to access 'https://github.com/Samsung/TizenRT.git/': The requested URL returned error: 403


Reference startup file from linker script to put reset handerl at top of mem.

fatal: unable to access 'https://github.com/mgiannikouris/vi-firmware.git/': The requested URL returned error: 403


added the linker script

added the linker script

fatal: unable to access 'https://github.com/Ciusss89/STM32nucleo.git/': The requested URL returned error: 403


Add LDoc configuration file

Add LDoc configuration file

fatal: unable to access 'https://github.com/robooo/luarocks.git/': The requested URL returned error: 403


LPC11C24 linking alignment fix

LPC11C24 linking alignment fix

fatal: unable to access 'https://github.com/nuft/uavcan.git/': The requested URL returned error: 403


Try to avoid erasing section

Try to avoid erasing section

fatal: unable to access 'https://github.com/Tutul-/tumuxOS.git/': The requested URL returned error: 403


Added linker64.ld files to fimrware/pc-bios folder

fatal: unable to access 'https://github.com/beyondsociety/ibox.git/': The requested URL returned error: 403


Combined extra sections

Combined extra sections

fatal: unable to access 'https://github.com/daveshep666/davos.git/': The requested URL returned error: 403


K64F: Explicitly set the start of .uvisor.bss

fatal: unable to access 'https://github.com/RonEld/mbed.git/': The requested URL returned error: 403


Linker script added

Linker script added

fatal: unable to access 'https://github.com/rksdna/swamp-m0.git/': GnuTLS recv error (-54): Error in the pull function.


add linker script template for F407

add linker script template for F407

fatal: unable to access 'https://github.com/IntergatedCircuits/STM32_XPD.git/': The requested URL returned error: 403


add gcc.ld

add gcc.ld

fatal: unable to access 'https://github.com/igou/rt-thread.git/': The requested URL returned error: 403


qemu won't load the vectors, only stuff starting at 0x10000 so we dont put the vectors in a separate section

fatal: unable to access 'https://github.com/matildah/octocabbit.git/': The requested URL returned error: 403


Linker script

Linker script

fatal: unable to access 'https://github.com/smaeul/quarto.git/': The requested URL returned error: 403


store default linker script for reference

fatal: unable to access 'https://github.com/wilseypa/llamaOS.git/': The requested URL returned error: 403


libfdt: Add version.lds file

libfdt: Add version.lds file

Add the initial symbol versioning file as groundwork for creating
a libfdt shared library

Signed-off-by: Josh Boyer <94755a79aca753e683bb6d0e796d473b797056eb@linux.vnet.ibm.com>

fatal: unable to access 'https://github.com/detule/lk-g2-spr.git/': The requested URL returned error: 403


mimxrt/boards: Set __heap_size__ to 0 in MIMXRT1011.ld.

Do not use the traditional C heap in order to save memory, because the
traditional C heap is unused in MicroPython.

fatal: unable to access 'https://github.com/kerneltask/micropython.git/': The requested URL returned error: 403


cpu/cortexm: added base linkerscript

cpu/cortexm: added base linkerscript

fatal: unable to access 'https://github.com/Josar/RIOT.git/': The requested URL returned error: 403


config.ld: add basic configuration for LDoc

fatal: unable to access 'https://github.com/RyanSquared/FusionScript.git/': The requested URL returned error: 403


Moved constructor pointers to read only data


Added linker script

Added linker script

fatal: unable to access 'https://github.com/Mendelt/lpc810-blink.git/': The requested URL returned error: 403


Add a basic linker script

Add a basic linker script

Ensures that the multiboot header is early in the executable.

fatal: unable to access 'https://github.com/phil-opp/blogOS.git/': The requested URL returned error: 403


add custom linker script for calling out locations in memory

fatal: unable to access 'https://github.com/PDXostc/can_firewall_software.git/': The requested URL returned error: 403


Add linker script for S120

Add linker script for S120

fatal: unable to access 'https://github.com/jf87/nrf51-pure-gcc-setup.git/': The requested URL returned error: 403


stm32/boards: Add stm32h743.ld linker script.

fatal: unable to access 'https://github.com/pfalcon/micropython.git/': The requested URL returned error: 403


stm32_alt.ld: add an alternate linker script

fatal: unable to access 'https://github.com/raphui/rnk.git/': The requested URL returned error: 403


added simple kernel linker script

added simple kernel linker script

fatal: unable to access 'https://github.com/ReturnInfinity/BareMetal-kernel.git/': The requested URL returned error: 403


cpu/cortexm_common/ldscripts: add common linker script for cortexm family


Added ldscripts

Added ldscripts

fatal: unable to access 'https://github.com/MITEVT/lpc11cx4-library.git/': The requested URL returned error: 403


Cancel 16-bit emergency code

Cancel 16-bit emergency code

fatal: unable to access 'https://github.com/Tutul-/tumuxOS.git/': The requested URL returned error: 403


cpu/stm32f1: add opencm9-04 specific linker script


cpu/sam0_common: add support for MCU used in Arduino MKR1000 board


LD - space reserved for vectors in RAM

LD - space reserved for vectors in RAM

fatal: unable to access 'https://github.com/nvlsianpu/mbed.git/': The requested URL returned error: 403


produce an elf file, instead of a flat binary

fatal: unable to access 'https://github.com/ReturnInfinity/Alloy.git/': The requested URL returned error: 403


Lpc: Linker: lpc11c24 only has 8kbit of RAM

fatal: unable to access 'https://github.com/dergraaf/xpcc.git/': The requested URL returned error: 403


Adds missing memory map.

Adds missing memory map.

fatal: unable to access 'https://github.com/bakerstu/openmrn.git/': The requested URL returned error: 403


Fix linker error

Fix linker error


Issue #102 chose replacement file as official file. Resolved the conflict.

Former-commit-id: a95174d04b09b89e937dd68c0c966b7332571c9e

fatal: unable to access 'https://github.com/ricklon/chipKIT32-MAX.git/': The requested URL returned error: 403


the bootloader linker script

the bootloader linker script

fatal: unable to access 'https://github.com/TorstenRobitzki/bluetoe.git/': The requested URL returned error: 403


copy of L476RG ld file

copy of L476RG ld file

fatal: unable to access 'https://github.com/kjbracey-arm/mbed.git/': The requested URL returned error: 403


tiva_c: Add dummy iomem.ld to appease build system

fatal: unable to access 'https://github.com/troplin/zinc.git/': The requested URL returned error: 403


cpu/stm32f1: add linkerscript for stm32f103rb

fatal: unable to access 'https://github.com/Josar/RIOT.git/': The requested URL returned error: 403


cortexm_common/ldscript: add common script for rom_offset calculation

fatal: unable to access 'https://github.com/toonst/RIOT.git/': The requested URL returned error: 403


cpu/cortexm_common/ldscripts: add multislot variables


new file

new file

fatal: unable to access 'https://github.com/hirakuni45/RL78.git/': The requested URL returned error: 403


Linker file for the kernel

Linker file for the kernel

fatal: unable to access 'https://github.com/mikehabibi/osdev.git/': The requested URL returned error: 403


asm: link user.ld -> gpio.ld

asm: link user.ld -> gpio.ld

fatal: unable to access 'https://github.com/bwitherspoon/core.git/': The requested URL returned error: 403


Force a bit more stuff into CCM ram

Force a bit more stuff into CCM ram

fatal: unable to access 'https://github.com/abhishyantkhare/tenshi.git/': The requested URL returned error: 403


nrf5: Adding new linker script for nrf52840.

fatal: unable to access 'https://github.com/tralamazza/micropython.git/': The requested URL returned error: 403


added linker script

added linker script

fatal: unable to access 'https://github.com/kwagyeman/openmv.git/': The requested URL returned error: 403


esp32c3: added 2nd bootloader project linker file

fatal: unable to access 'https://github.com/espressif/esp-idf.git/': The requested URL returned error: 403


cpu: stm32f2: ldscripts: change flash map.

fatal: unable to access 'https://github.com/centurysys/RIOT.git/': The requested URL returned error: 403


Add linker

Add linker

fatal: unable to access 'https://github.com/ReturnInfinity/Alloy.git/': The requested URL returned error: 403


Create linker.ld

Create linker.ld

Copied sample code from OSDev

fatal: unable to access 'https://github.com/NETponents/HiveOS.git/': The requested URL returned error: 403


Add linker script for running from boot loader.

fatal: unable to access 'https://github.com/mlaz/mynewt-core.git/': The requested URL returned error: 403


cleaned up linker script

cleaned up linker script

fatal: unable to access 'https://github.com/DavidDiPaola/DirtOS.git/': The requested URL returned error: 403


[linker] add file for stm32f0 with 128k flash and 16k ram

fatal: unable to access 'https://github.com/dergraaf/xpcc.git/': The requested URL returned error: 403


Add missing linker script.

Add missing linker script.

fatal: unable to access 'https://github.com/anchovieshat/cathode-old.git/': The requested URL returned error: 403


forgot the flash.4m1m linker script?

forgot the flash.4m1m linker script?

fatal: unable to access 'https://github.com/Adam5Wu/Arduino.git/': The requested URL returned error: 403


Should put things in a right-er place now.

fatal: unable to access 'https://github.com/Gen-OS/bbb-proof-of-concept.git/': The requested URL returned error: 403


new file:   bsp/ls1cdev/ls1b_ram.lds

new file:   bsp/ls1cdev/ls1b_ram.lds

fatal: unable to access 'https://github.com/igou/rt-thread.git/': The requested URL returned error: 403


Add config.ld for documentation, only documenting some libraries right now

fatal: unable to access 'https://github.com/Quenty/NevermoreEngine.git/': The requested URL returned error: 403


Adds memory map for MX530.

Adds memory map for MX530.

fatal: unable to access 'https://github.com/bakerstu/openmrn.git/': The requested URL returned error: 403


stm32: add missing ld script

stm32: add missing ld script

Signed-off-by: Fabien Parent <2a93cde040adee823a667eed2882d05f12a84573@gmail.com>

fatal: unable to access 'https://github.com/mtitinger/phabos.git/': The requested URL returned error: 403


nrf/boards: Add linker script for nrf52840 Open Bootloader 1.2.0.

fatal: unable to access 'https://github.com/henriknelson/micropython.git/': The requested URL returned error: 403


forgot the flash.4m1m linker script?

forgot the flash.4m1m linker script?

fatal: unable to access 'https://github.com/mateuszdw/Arduino.git/': The requested URL returned error: 403


hw/mcu/stm: Add missing ld file for nucleo-l073rz BSP

File stm32l073.ld should have been added when BSP for
nucleo-l073rz was committed by 'Add nucleo-l073rz BSP'


.library_info put to address (instead of load address)

    The relevant FIXME comment included (this is a problem in the nRF5 SDK
  and this "fix" is just a workaround).

fatal: unable to access 'https://github.com/PulseOn/Embedded_Build_System.git/': The requested URL returned error: 403


fix memory for central role

fix memory for central role

fatal: unable to access 'https://github.com/muet/Espruino.git/': The requested URL returned error: 403


nRF52 xxAB variant 256KB FLASH, 32KB RAM

fatal: unable to access 'https://github.com/I-SYST/EHAL.git/': The requested URL returned error: 403


cpu/cc26xx_cc13xx: add custom ld script

cpu/cc26xx_cc13xx: add custom ld script

This add a custom ldscript for cc26xx_cc13xx CPUs,
which allows linking CCFG configuration, usage of GPRAM,
etc.

Signed-off-by: Jean Pierre Dudey <b1c1d8736f20db3fb6c1c66bb1455ed43909f0d8@jeandudey.tech>

fatal: unable to access 'https://github.com/kaspar030/RIOT.git/': The requested URL returned error: 403


Add: linker script (RX62N7)

Add: linker script (RX62N7)

fatal: unable to access 'https://github.com/hirakuni45/RX.git/': The requested URL returned error: 403


Linking the kernel

Linking the kernel

fatal: unable to access 'https://github.com/GalacticOne/StarOS.git/': The requested URL returned error: 403


Omitted linker script added

Omitted linker script added

fatal: unable to access 'https://github.com/akoskovacs/Akosix.git/': The requested URL returned error: 403


Added cart.ld file

Added cart.ld file

fatal: unable to access 'https://github.com/jesusatc/libgba.git/': The requested URL returned error: 403


Add .ARM.exidx section (#521)

Add .ARM.exidx section (#521)

fatal: unable to access 'https://github.com/jwhui/openthread.git/': The requested URL returned error: 403


Simplified linker script handling of libc.

Having ascertained that the SDK itself has no (zero, zilch, nada) dependencies
on the standard C library, the NodeMCU linker script now puts any and all
libc functions into irom, rather than carefully picking the ones that
were used by NodeMCU some months ago. This should help keep iram free for
the things which really need to be in iram (such as ISRs).

fatal: unable to access 'https://github.com/FrankX0/nodemcu-firmware.git/': The requested URL returned error: 403


cpu/nrf51: added linkerscript for 128kb variant

fatal: unable to access 'https://github.com/Josar/RIOT.git/': The requested URL returned error: 403


Added a basic linker script.

Added a basic linker script.

fatal: unable to access 'https://github.com/JackScottAU/Synergy-OS.git/': The requested URL returned error: 403


add ldoc config

add ldoc config

fatal: unable to access 'https://github.com/bakins/stardust.git/': The requested URL returned error: 403


Create linker.ld

Create linker.ld

fatal: unable to access 'https://github.com/Star-Corporation/StarOS.git/': The requested URL returned error: 403


nRF linker script cleanup.

nRF linker script cleanup.

fatal: unable to access 'https://github.com/nkolban/Espruino.git/': The requested URL returned error: 403


Create tlink_ap6.ld

Create tlink_ap6.ld

fatal: unable to access 'https://github.com/izard/RTBench.git/': The requested URL returned error: 403


stm32_flash: Add BKPSRAM section.

stm32_flash: Add BKPSRAM section.

This is taken from the datasheet.  We can place variables in there by
declaring them in the C code like this:

/*!
 * User preferences
 */
static struct prefs_t {
    /*! Serial number */
    uint64_t serial;
    /*! Menu frequency */
    uint16_t menu_freq;
    /*! Menu speed */
    uint8_t menu_speed;
    /*! Menu volume (attenuation) */
    uint8_t menu_vol;
    /*! Default operating mode */
    uint8_t op_mode;
} prefs __attribute__((section(".bkpsram")));

git-svn-id: 3db15d9df66343e7f944511864f914adee1f7549@2408 01035d8c-6547-0410-b346-abe4f91aad63

fatal: unable to access 'https://github.com/freedv/codec2.git/': The requested URL returned error: 403


Use internal RAM only.

Use internal RAM only.

fatal: unable to access 'https://github.com/FreeRTOS/FreeRTOS-Kernel.git/': The requested URL returned error: 403


Fix bad linker

Fix bad linker

fatal: unable to access 'https://github.com/Tutul-/tumuxOS.git/': The requested URL returned error: 403


Use the correct dtb section declaration

Use the correct dtb section declaration

(cherry picked from commit 66200b3fad4fc8f836cc3d5ef3545fe2ee6ab2cb)

fatal: unable to access 'https://github.com/kalray/odp-mppa.git/': The requested URL returned error: 403


Removed the labels that were in there as they're not really required. Added some more sections.

fatal: unable to access 'https://github.com/Lucretia/bare_bones.git/': The requested URL returned error: 403


Fix missing fallback into kernel image

Fix missing fallback into kernel image


Allow clang for kernel compilation

Allow clang for kernel compilation

Remove .ident sections, and force separations of .text and
.data sections into separate program headers, for the benefit
of the check done by MINIX boot monitor in multiboot mode.

fatal: unable to access 'https://github.com/veritas-shine/minix3-rpi.git/': The requested URL returned error: 403


fixed font segment size

fixed font segment size

fatal: unable to access 'https://github.com/andrei7c4/esptwitterclient.git/': The requested URL returned error: 403


fixed the fixed the gcc compiling error in ubuntu host OS

git-svn-id: 839522a79b1d56a78fa446d2fd3a0c499f8e535e@2511 bbd45198-f89e-11dd-88c7-29a3b14d5316

fatal: unable to access 'https://github.com/igou/rt-thread.git/': The requested URL returned error: 403


And this one.

And this one.

git-svn-id: fb278a52ad97f7fbef074986829f2c6a2a3c4b34@474 c25cc9d1-44fa-0310-b259-ad778cb1d433

fatal: unable to access 'https://github.com/zhouxh1023/newos.git/': The requested URL returned error: 403


Forgot to include this debug linker script.

Former-commit-id: 0567531f9e8bed863f44ac2320d3016059aff755

fatal: unable to access 'https://github.com/ricklon/chipKIT32-MAX.git/': The requested URL returned error: 403


set up ldoc and documented rima.lib.object for a test

fatal: unable to access 'https://github.com/geoffleyland/rima.git/': The requested URL returned error: 403


cpu/stm32f1: added stm32f103c8 linkerscript

Added stm32f103c8 memory definitions for cortexm common linkerscript

fatal: unable to access 'https://github.com/Josar/RIOT.git/': The requested URL returned error: 403


Common daplink.ld gcc linker script.

Common daplink.ld gcc linker script.

fatal: unable to access 'https://github.com/google/DAPLink-port.git/': The requested URL returned error: 403


add GNU ld script.

add GNU ld script.

git-svn-id: 839522a79b1d56a78fa446d2fd3a0c499f8e535e@1918 bbd45198-f89e-11dd-88c7-29a3b14d5316


stm32_flash: Add a section for EEPROM data.

This allocates a few sectors of flash for the following purposes:
- Sector 0: ISR vector data.  (This gets mapped to address 0; so we have
  no choice, the ISR data *must* reside here.)
- Sector 1..3: Virtual EEPROM.  We'll stash our configuration parameters
  here.  We have 48kB available.
- Sector 4.. onwards: Program data

Credit: clive1, ST e2e Communities.
https://my.st.com/public/STe2ecommunities/mcu/_layouts/st/getshorturl.aspx?List={697285D7-A9CA-445D-B16C-F23BF0E3B1A3}&ItemId=24079

git-svn-id: 3db15d9df66343e7f944511864f914adee1f7549@2390 01035d8c-6547-0410-b346-abe4f91aad63


config.ld: add LDoc config

config.ld: add LDoc config

fatal: unable to access 'https://github.com/ChickenNuggers/Moon-Moon.git/': The requested URL returned error: 403


K66F: Move bss section to m_data_2 Section

Signed-off-by: Mahadevan Mahesh <778f93d13cb34f99fc4522dcbb13a8dffe2c8547@nxp.com>

fatal: unable to access 'https://github.com/netzimme/mbed-os.git/': The requested URL returned error: 403


BaseTools GCC: add unified GCC linker script for all archs and versions

This unifies all GCC linker scripts into a single parametrised GCC
linker script that can be used for all GCC versions and architectures.

The two parameters that can be set on the linker command line are:
- PECOFF_HEADER_SIZE, this is a build time property of GenFw, but
  its value is different between 32-bit and 64-bit;
- common-page-size, this can be set using -z on the ld command line,
  and controls the value of the COMMONPAGESIZE constant when used in
  a linker script. This value is used for the minimum section alignment.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Tested-by: Liming Gao <liming.gao@intel.com>
Tested-by: Leif Lindholm <leif.lindholm@linaro.org>

git-svn-id: 3158a46dfd52e07d1fda3e32e1ab2e353a00b20f@18135 6f19259b-4bc3-4df7-8a09-765794883524

fatal: unable to access 'https://github.com/MattDevo/edk2.git/': The requested URL returned error: 403


Fork boards/st-stm32f303re-nucleo/memory_map.ld to boards/st-stm32l432kc-nucleo/memory_map.ld step 3

fatal: unable to access 'https://github.com/bakerstu/openmrn.git/': The requested URL returned error: 403


nios2: add missing linker script

nios2: add missing linker script

Got lost in the .gitignore when these files had .cmd
extension.

Change-Id: I8a8d51014b621026b739525f3f9a3e8a20cb5ad0
Signed-off-by: Andrew Boie <aab045b28152628be6af0e556050d0381fd0a34d@intel.com>

fatal: unable to access 'https://github.com/finikorg/zephyr.git/': The requested URL returned error: 403


add missing underscoree

add missing underscoree

fatal: unable to access 'https://github.com/ashleygwilliams/x86-kernel.git/': The requested URL returned error: 403


src: actually add single linker script

src: actually add single linker script

fatal: unable to access 'https://github.com/bwitherspoon/core.git/': The requested URL returned error: 403


hide symbols from statically linked stdlibc++

fatal: unable to access 'https://github.com/mapycz/python-mapnik.git/': GnuTLS recv error (-54): Error in the pull function.


Forgot this one. BTW, library link scripts need to be factored out.

git-svn-id: fb278a52ad97f7fbef074986829f2c6a2a3c4b34@525 c25cc9d1-44fa-0310-b259-ad778cb1d433

fatal: unable to access 'https://github.com/travisg/newos.git/': The requested URL returned error: 403


Provide end symbol in RISC-V linker script

The kernel needs this symbol in order to know where it ends.

fatal: unable to access 'https://github.com/jeffreyrogers/pv6.git/': The requested URL returned error: 403


Add symbol before critical loader data (need to keep until memory managment is ready)

fatal: unable to access 'https://github.com/Tutul-/tumuxOS.git/': The requested URL returned error: 403


Fixed GCC ARM linker script for STM32L1  (STM32L152XE.ld)

Fixed Flash and RAM definitions in GCC ARM linker script for STM32L1
(STM32L152XE.ld)

fatal: unable to access 'https://github.com/nvlsianpu/mbed.git/': The requested URL returned error: 403


stm32_flash: Fill EEPROM section with 0xff.

Filling it with 0x00 (the default) makes the virtual EEPROM code think
the sectors are depleted.

git-svn-id: 3db15d9df66343e7f944511864f914adee1f7549@2395 01035d8c-6547-0410-b346-abe4f91aad63

fatal: unable to access 'https://github.com/freedv/codec2.git/': The requested URL returned error: 403


Added nrf51 ac variant

Added nrf51 ac variant


Nordic: update application start address in GCC linker script

The S110 linker script is still using start address 0x16000, which was
required by version 7.1 of the s110 SoftDevice. Update it to the current
address, required by S110 v8.0.0.


fatal: unable to access 'https://github.com/sharkspeed/dororis.git/': The requested URL returned error: 403


Fix linker file

Fix linker file

Padding to 4KB?! No thanks..

fatal: unable to access 'https://github.com/ReturnInfinity/Alloy.git/': The requested URL returned error: 403


Use the correct dtb section declaration

Use the correct dtb section declaration

fatal: unable to access 'https://github.com/kalray/odp-mppa.git/': The requested URL returned error: 403


add microbit_v2 layout

add microbit_v2 layout

fatal: unable to access 'https://github.com/tock/libtock-rs.git/': The requested URL returned error: 403


linker script fix for stress test wip commit

fatal: unable to access 'https://github.com/origintfj/riscv.git/': The requested URL returned error: 403


arduino due version still under construction, pieces are missing

fatal: unable to access 'https://github.com/980f/dro.git/': The requested URL returned error: 403


bootloader: keep bootloader_common code to retention region

It is possible to utilize some of the routines related to otadata
partition validation, after firmware image is downloaded to RAM. Hence
these routines should be part of app cpu cache, so that they do not
get overwritten by firmware.

Signed-off-by: Mahavir Jain <9c73e8379fd97c516d9a7b9d112e2d11ad3c8e4a@espressif.com>

fatal: unable to access 'https://github.com/mashaoze/esp-idf.git/': The requested URL returned error: 403


新しいリンカスクリプトを追加

新しいリンカスクリプトを追加

fatal: unable to access 'https://github.com/AkihiroTakai/yuri.git/': The requested URL returned error: 403


load and run from flash

load and run from flash

fatal: unable to access 'https://github.com/ageron/tensorflow.git/': The requested URL returned error: 403


Linker script added

Linker script added

fatal: unable to access 'https://github.com/rksdna/swamp-m3.git/': The requested URL returned error: 403


Initial linker script for raspberry pi

Initial linker script for raspberry pi

fatal: unable to access 'https://github.com/ferrous26/cs452-flaming-meme.git/': The requested URL returned error: 403


architecture/ARM/ARMv7-M: add ARMv7-M.ld

fatal: unable to access 'https://github.com/jasmin-j/distortos.git/': The requested URL returned error: 403


ADD: added link script for lpc 4088

ADD: added link script for lpc 4088

Signed-off-by: Giuseppe Monteleone <59bd0a3ff43b32849b319e645d4798d8a5d1e889@ing-monteleone.com>

fatal: unable to access 'https://github.com/kobrabyte/YasminOS.git/': The requested URL returned error: 403


AT91SAM7A3. Added linker script for A3 (just a copy of X256).

git-svn-id: 30f789d7039adee4ab6dc5f7dbec2df9251e516b@4802 35acf78f-673a-0410-8e92-d51de3d6d3f4

fatal: unable to access 'https://github.com/roboknight/chibios-lpc43xx.git/': GnuTLS recv error (-54): Error in the pull function.


move libstdc++ to flash (#2804)

move libstdc++ to flash (#2804)

* move stdc++ to flash

* Update : change tab to leading spaces, correct indentation

fatal: unable to access 'https://github.com/Adam5Wu/Arduino.git/': The requested URL returned error: 403


factory: simple PE linker script

factory: simple PE linker script

fatal: unable to access 'https://github.com/gdelugre/shell-factory.git/': The requested URL returned error: 403


Fix linker script

Fix linker script

fatal: unable to access 'https://github.com/Lacaranian/redox.git/': The requested URL returned error: 403


Issue #235 issue resolved by adding 32MX340F512H.ld from local file system to github.

Former-commit-id: 2c9fc9e82cf046b6d95f50fdd77d75aa9925c9df

fatal: unable to access 'https://github.com/majenkotech/chipKIT-core.git/': The requested URL returned error: 403


add gcc.ld to bsp/simulator

add gcc.ld to bsp/simulator

fatal: unable to access 'https://github.com/igou/rt-thread.git/': The requested URL returned error: 403


Create tlink_ap.ld

Create tlink_ap.ld

fatal: unable to access 'https://github.com/izard/RTBench.git/': The requested URL returned error: 403


Linker

Linker

fatal: unable to access 'https://github.com/prp-e/NanOS-old.git/': The requested URL returned error: 403


hp.geojson with ld error

hp.geojson with ld error

fatal: unable to access 'https://github.com/y12studio/y12io.git/': The requested URL returned error: 403


Common daplink.ld gcc linker script.

Common daplink.ld gcc linker script.

fatal: unable to access 'https://github.com/google/DAPLink-port.git/': The requested URL returned error: 403


added custom ld file for samd51 no crystal, ext flash

fatal: unable to access 'https://github.com/adafruit/micropython.git/': The requested URL returned error: 403


linker: Don't link all of 'soc' into IRAM

Moves any code in *_perpih.c, memory_layout_utils.c to flash

fatal: unable to access 'https://github.com/mashaoze/esp-idf.git/': The requested URL returned error: 403


Create W25Q128JV.ld

Create W25Q128JV.ld

Add flash file needed for Teensy MicroMod,

fatal: unable to access 'https://github.com/adafruit/circuitpython.git/': The requested URL returned error: 403


Fix linker script.

Fix linker script.

Signed-off-by: Gerd Zellweger <1d6e1cf70ec6f9ab28d3ea4b27a49a77654d370e@gerdzellweger.com>

fatal: unable to access 'https://github.com/gz/bespin.git/': The requested URL returned error: 403


stm32/boards/STM32F769DISC: Fix length of FLASH_APP section.

Fixes issue #4924.

fatal: unable to access 'https://github.com/pfalcon/micropython.git/': The requested URL returned error: 403


new file

new file

fatal: unable to access 'https://github.com/hirakuni45/RX.git/': The requested URL returned error: 403


building ldoc documentation

building ldoc documentation

fatal: unable to access 'https://github.com/cjtallman/LDoc.git/': The requested URL returned error: 403


Create linker.ld

Create linker.ld

fatal: unable to access 'https://github.com/ColinMoulds/SWAT-OS.git/': The requested URL returned error: 403


Added linker script. Seems a good place for it as all the memory is internal so there's nothing board specific here.

fatal: unable to access 'https://github.com/thejpster/lm4f120.git/': The requested URL returned error: 403


hide symbols from statically linked stdlibc++

fatal: unable to access 'https://github.com/mapycz/python-mapnik.git/': The requested URL returned error: 403


new file

new file


temporarily disabled CCMRAM

temporarily disabled CCMRAM

fatal: unable to access 'https://github.com/craigsacco/invetech-sumobot.git/': The requested URL returned error: 403


Linker: Add F100xB linkerscript.

Linker: Add F100xB linkerscript.

fatal: unable to access 'https://github.com/dergraaf/xpcc.git/': The requested URL returned error: 403


cpu/stm32_common/ldscripts: add stm32_common.ld to manage specific ST ccmram

fatal: unable to access 'https://github.com/Josar/RIOT.git/': The requested URL returned error: 403


Rename linker file

Rename linker file

fatal: unable to access 'https://github.com/1nv1/OpenKL25Z.git/': The requested URL returned error: 403


LDoc config for documentation

LDoc config for documentation

Signed-off-by: Vadim A. Misbakh-Soloviov <0317e6896132b03afd1b7513bbabbb42f0b8d888@mva.name>

fatal: unable to access 'https://github.com/Lua-cURL/Lua-cURLv3.git/': The requested URL returned error: 403


added linker script. makefile is still missing

fatal: unable to access 'https://github.com/ornitorrincos/OS.git/': The requested URL returned error: 403


Added new linker file

Added new linker file


new file:   cortex-m3.ld

new file:   cortex-m3.ld

fatal: unable to access 'https://github.com/masilvabustos/CabbageOS.git/': The requested URL returned error: 403


Use the correct name for dtb_size

Use the correct name for dtb_size

(cherry picked from commit 1bb6bfee23440d78c0fb883174fc4d11eafff49d)

fatal: unable to access 'https://github.com/kalray/odp-mppa.git/': The requested URL returned error: 403


Create linker.ld

Create linker.ld

fatal: unable to access 'https://github.com/salahalami/BruteOS.git/': The requested URL returned error: 403


stm32/boards: Add common_basic.ld for a board to have a single section.


cpu/cc2538: added linkerscript for cc2538sf53


Fix odp with change in device tree

Fix odp with change in device tree


arm: ip_k66f: Introduce board specific linker.ld file

This patch introduces linker.ld file specific for ip_k66f board.
It reuses the "common" linker script for other NXP SoCs with defined
NETWORK_RAM_SECTIONS() macro for explicit placement of network
interfaces on ip_k66f board.

grep -A13 net_if_area zephyr/zephyr.map
net_if_area 0x00000000200012a0 0x820 load address 0x0000000000024ac4
            0x00000000200012a0                _net_if_list_start = .
*(SORT_BY_ALIGNMENT(._net_if.static.dts*))
._net_if.static.dts_ord_51
          0x00000000200012a0 0x208 zephyr/libzephyr.a(eth_mcux.c.obj)
*(SORT_BY_NAME(SORT_BY_ALIGNMENT(._net_if.static.dsa_slave*)))
._net_if.static.dsa_slave_port_DT_N_S_soc_S_spi_4002d000_S_dsa_0_S_lan_1
          0x00000000200014a8 0x208 zephyr/libzephyr.a(dsa_ksz8794.c.obj)
._net_if.static.dsa_slave_port_DT_N_S_soc_S_spi_4002d000_S_dsa_0_S_lan_2
          0x00000000200016b0 0x208 zephyr/libzephyr.a(dsa_ksz8794.c.obj)
._net_if.static.dsa_slave_port_DT_N_S_soc_S_spi_4002d000_S_dsa_0_S_lan_3
          0x00000000200018b8 0x208 zephyr/libzephyr.a(dsa_ksz8794.c.obj)
          0x0000000020001ac0                _net_if_list_end = .

As a result the eth0 (master DSA interface) is explicitly placed as the
first one (with the 'dts_ord_51' automatically assigned name) followed
by lan{123} interfaces (with 'dsa_slave_port' name assigned in
dsa_ksz8794.c).

After this patch network interfaces are explicitly placed in correct
order, so 'net_if_get_by_index()' will work correctly.

Signed-off-by: Lukasz Majewski <7acbb0643e3da1a0f6f894ebd720fb3807e67dff@denx.de>

fatal: unable to access 'https://github.com/nashif/zephyr.git/': The requested URL returned error: 403


cpu: stm32f2: add linker-script.

cpu: stm32f2: add linker-script.

Signed-off-by: Takeyoshi Kikuchi <af72ecfe6d0bf60ad0be9363518c74b6bed5ff74@centurysys.co.jp>
(cherry picked from commit 26ac0a621c7472bad79fee6f29058203779e3beb)

fatal: unable to access 'https://github.com/centurysys/RIOT.git/': The requested URL returned error: 403


stm32_flash: Add a section for EEPROM data.

This allocates a few sectors of flash for the following purposes:
- Sector 0: ISR vector data.  (This gets mapped to address 0; so we have
  no choice, the ISR data *must* reside here.)
- Sector 1..3: Virtual EEPROM.  We'll stash our configuration parameters
  here.  We have 48kB available.
- Sector 4.. onwards: Program data

Credit: clive1, ST e2e Communities.
https://my.st.com/public/STe2ecommunities/mcu/_layouts/st/getshorturl.aspx?List={697285D7-A9CA-445D-B16C-F23BF0E3B1A3}&ItemId=24079

fatal: unable to access 'https://github.com/timofonic/codec2-dev.git/': The requested URL returned error: 403


Add linker script for S310

Add linker script for S310

fatal: unable to access 'https://github.com/jf87/nrf51-pure-gcc-setup.git/': The requested URL returned error: 403


Create linker.ld

Create linker.ld

fatal: unable to access 'https://github.com/LambdaSix/Kerni.git/': The requested URL returned error: 403


New linker script

New linker script

fatal: unable to access 'https://github.com/farcaller/arm-demos.git/': The requested URL returned error: 403


regent: Add LDoc config.

regent: Add LDoc config.

fatal: unable to access 'https://github.com/StanfordLegion/legion.git/': The requested URL returned error: 403


Create nasm.ld

Create nasm.ld

fatal: unable to access 'https://github.com/ReturnInfinity/BareMetal-kernel.git/': The requested URL returned error: 403


stm32/boards/PYBD_SF2: Put BTstack library in external QSPI XIP flash.

In the same way the nimble stack is put there.

fatal: unable to access 'https://github.com/kerneltask/micropython.git/': The requested URL returned error: 403


Seperate loader code/data

Seperate loader code/data

fatal: unable to access 'https://github.com/Tutul-/tumuxOS.git/': The requested URL returned error: 403


stm32_flash: Fill EEPROM section with 0xff.

Filling it with 0x00 (the default) makes the virtual EEPROM code think
the sectors are depleted.


added linker script (bx1 18.05) with license

fatal: unable to access 'https://github.com/tensorflow/tensorflow-experimental_link_static_libraries_once.git/': The requested URL returned error: 403


added teensy linkerscript

added teensy linkerscript

fatal: unable to access 'https://github.com/hdznrrd/braindump.git/': The requested URL returned error: 403


Adding placeholder linker script for BL

Adding placeholder linker script for BL

fatal: unable to access 'https://github.com/MickMad/ArduinoCore-samd.git/': The requested URL returned error: 403


fatal: unable to access 'https://github.com/sharkspeed/dororis.git/': The requested URL returned error: 403


LPCCAPPUCCINO] initial port LPCCAPPUCCINO is the breakboard that has LPC11U37, https://strawberry-linux.com/catalog/items?code=12045 Schematic: https://strawberry-linux.com/pub/cappuccino-sch.pdf

fatal: unable to access 'https://github.com/Psykar/kubos.git/': The requested URL returned error: 403


needs underscore

needs underscore


Forgot to include this debug linker script.

Former-commit-id: 0567531f9e8bed863f44ac2320d3016059aff755

fatal: unable to access 'https://github.com/majenkotech/chipKIT-core.git/': The requested URL returned error: 403


add ldoc config

add ldoc config

fatal: unable to access 'https://github.com/remakeelectric/lua-libmodbus.git/': The requested URL returned error: 403


linker script added

linker script added

fatal: unable to access 'https://github.com/m-rinaldi/emuk86.git/': The requested URL returned error: 403


Add ldoc config (config.ld)

Add ldoc config (config.ld)

fatal: unable to access 'https://github.com/Xamla/torch-moveit.git/': The requested URL returned error: 403


keeping a spare copy of the flash loader script in case I have to reinstall the board package.

fatal: unable to access 'https://github.com/980f/dro.git/': The requested URL returned error: 403


Set correct size/length for FLASH memory region

fatal: unable to access 'https://github.com/mbains/bare-metal-arm.git/': The requested URL returned error: 403


NCS36510 - decrease reserved heap space

NCS36510 - decrease reserved heap space

Decrease the minimum space reserved for the heap from 16K down to
2K for GCC. This does not have an effect on the actual heap size since
the heap takes up all free RAM. This just allows code to compile in
configurations where the heap is smaller than 16K.

fatal: unable to access 'https://github.com/RonEld/mbed.git/': The requested URL returned error: 403


Add default linker script for CI builds

Add default linker script for CI builds

fatal: unable to access 'https://github.com/Adam5Wu/Arduino.git/': The requested URL returned error: 403


bootloader: Fix crash enabling flash encryption

Regression in 9c715d7946a9595bad53307cf0a141d4226d0a5a

fatal: unable to access 'https://github.com/mashaoze/esp-idf.git/': The requested URL returned error: 403


Add workaround for bug in spike

Add workaround for bug in spike

fatal: unable to access 'https://github.com/jeffreyrogers/pv6.git/': The requested URL returned error: 403


Create link.ld

Create link.ld

fatal: unable to access 'https://github.com/TheJJ100100/Q-OS.git/': The requested URL returned error: 403


Fix bad linker

Fix bad linker

fatal: unable to access 'https://github.com/Tutul-/tumuxOS.git/': The requested URL returned error: 403


Added linker script for STM32F103xD line.

git-svn-id: 30f789d7039adee4ab6dc5f7dbec2df9251e516b@4466 35acf78f-673a-0410-8e92-d51de3d6d3f4

fatal: unable to access 'https://github.com/roboknight/chibios-lpc43xx.git/': The requested URL returned error: 403


Moved constructor pointers back to own section

fatal: unable to access 'https://github.com/daveshep666/davos.git/': The requested URL returned error: 403


[#120927185] Fix library_info.ld to follow Nordic SDK 12 conventions

fatal: unable to access 'https://github.com/PulseOn/Embedded_Build_System.git/': The requested URL returned error: 403


cpu/sam0: adapt support for samd21j18a with bootloader

fatal: unable to access 'https://github.com/Josar/RIOT.git/': The requested URL returned error: 403


Create tlink_ap4.ld

Create tlink_ap4.ld

fatal: unable to access 'https://github.com/izard/RTBench.git/': The requested URL returned error: 403


Our little linker script

Our little linker script

fatal: unable to access 'https://github.com/nicholatian/saturn.git/': The requested URL returned error: 403


Oops, forgot to tell `ld` where to start looking

fatal: unable to access 'https://github.com/Gen-OS/bbb-proof-of-concept.git/': The requested URL returned error: 403


Add lds

Add lds

fatal: unable to access 'https://github.com/mycspring/ClaveChain.git/': The requested URL returned error: 403


fatal: unable to access 'https://github.com/sharkspeed/dororis.git/': The requested URL returned error: 403


Add linker file for multiboot headers and boot file

fatal: unable to access 'https://github.com/awesomeaniruddh/sOS.git/': The requested URL returned error: 403


Added the linker script for UCB-BF512.

Added the linker script for UCB-BF512.

fatal: unable to access 'https://github.com/shintamainjp/MISO-DEV-2014.git/': The requested URL returned error: 403


firmware: netedev: linker.ld: fix eth_control section position

fatal: unable to access 'https://github.com/kalray/odp-mppa.git/': The requested URL returned error: 403


Updated linker script to reserve space for BootRAM

Updated linker script to reserve space for BootRAM at 0x138

fatal: unable to access 'https://github.com/nvlsianpu/mbed.git/': The requested URL returned error: 403


The old linker script (nrf51dk.ld) is now the linker script for building an image that runs with a bootloader. This linker script should be used when running without a bootloader

fatal: unable to access 'https://github.com/mlaz/mynewt-core.git/': The requested URL returned error: 403


Add linker file

Add linker file

fatal: unable to access 'https://github.com/Tech4Race/nrf5x-base.git/': The requested URL returned error: 403


add S130 support

add S130 support

fatal: unable to access 'https://github.com/I-SYST/EHAL.git/': The requested URL returned error: 403


forgot linkerscript

forgot linkerscript

fatal: unable to access 'https://github.com/cycl0ne/poweros_x86.git/': The requested URL returned error: 403


K66F: Move bss section to m_data_2 Section

Signed-off-by: Mahadevan Mahesh <778f93d13cb34f99fc4522dcbb13a8dffe2c8547@nxp.com>

fatal: unable to access 'https://github.com/j-greffe/mbed-os.git/': The requested URL returned error: 403


Create stm32f030f4p6.ld

Create stm32f030f4p6.ld

fatal: unable to access 'https://github.com/crteensy/STM32F030F4P6-breakout-board.git/': The requested URL returned error: 403


Adding placeholder linker script for BL

Adding placeholder linker script for BL

fatal: unable to access 'https://github.com/MickMad/ArduinoCore-samd.git/': The requested URL returned error: 403


Hide hwloc symbols in libtensorflow_framework.so

fatal: unable to access 'https://github.com/Intel-tensorflow/tensorflow.git/': The requested URL returned error: 403


[LPC11U35][GCC_ARM][GCC_CR]: Modificatins for build.
1. Added to the export table in export_test.py.
2. Added to the build table in build_release.py
3. Added the compilation directives to RTX os files.

Notice:
 It would be better to change WORDS_STACK_SIZE definition in libraries/rtos/rtx/cmsis_os.h
 from 512 to 128 for LPC11U35 and LPC1114 micros compiled by GCC toolchain with newlib-nano,
 but I don't know the good way at this moment.

fatal: unable to access 'https://github.com/Psykar/kubos.git/': The requested URL returned error: 403


cpu: stm32f2: ldscripts: add linker script for firmup build.

fatal: unable to access 'https://github.com/centurysys/RIOT.git/': The requested URL returned error: 403


add missed F373 linker script

add missed F373 linker script

fatal: unable to access 'https://github.com/dmitrystu/libusb_stm32.git/': The requested URL returned error: 403


nrf/boards: Add linker script for nrf52840 Open Bootloader 1.2.0.

fatal: unable to access 'https://github.com/pfalcon/micropython.git/': The requested URL returned error: 403


stm32/boards: Add common_bl.ld for boards that need a bootloader.


Use the correct name for dtb_size

Use the correct name for dtb_size


Align dedicated linker script to feet with new tools one


Linker script for the new x86 setup code

Linker script to define the layout of the new x86 setup code.
Includes assert for size overflow and a misaligned setup header.

Signed-off-by: H. Peter Anvin <8a453bad9912ffe59bc0f0b8abe03df9be19379e@zytor.com>
Signed-off-by: Linus Torvalds <69652caca27c8b940640ad396ab71f93cacec34f@linux-foundation.org>

fatal: unable to access 'https://github.com/TeamVee-Kanas/android_kernel_samsung_kanas.git/': The requested URL returned error: 403


Add kernel.ld in rpiboot dir

Add kernel.ld in rpiboot dir

fatal: unable to access 'https://github.com/aviatorRHK/rpiForth.git/': The requested URL returned error: 403


nrf5/boards: Adding linker script for nrf52832 s132 v.2.0.1.

fatal: unable to access 'https://github.com/tralamazza/micropython.git/': The requested URL returned error: 403


Fix nrf52840 linker script. (#1671)

Fix nrf52840 linker script. (#1671)

fatal: unable to access 'https://github.com/jwhui/openthread.git/': The requested URL returned error: 403


atmel-samd: Add linker file for bootloaderless board with external flash.

fatal: unable to access 'https://github.com/adafruit/micropython.git/': The requested URL returned error: 403


Generic linker script

Generic linker script


Add comments to boot linker script.

Add comments to boot linker script.

fatal: unable to access 'https://github.com/mlaz/mynewt-core.git/': The requested URL returned error: 403


Architecture: Linker: Spaces -> Tabs.

Architecture: Linker: Spaces -> Tabs.

fatal: unable to access 'https://github.com/dergraaf/xpcc.git/': GnuTLS recv error (-54): Error in the pull function.


remove obsolete file

remove obsolete file

fatal: unable to access 'https://github.com/RWTH-OS/HermitCore.git/': The requested URL returned error: 403


Fix KL05Z GCC_ARM linker script

Fix KL05Z GCC_ARM linker script

Issue originally reported on mbed site here:
https://developer.mbed.org/questions/5695/FRDM-KL05z-hardfault-when-compiled-with-/

The RAM base address was incorrectly set to the beginning of RAM
instead of at a 0xC0 byte offset to reserve room for the interrupt
vectors. Without this fix, the global variables and the interrupt
vectors were occupying the same space in RAM once the user enabled the
timer interrupt.

The user who originally reported the issue on the mbed site has tested
this fix and verified that it corrected the hard fault issue that they
were encountering.

fatal: unable to access 'https://github.com/nvlsianpu/mbed.git/': The requested URL returned error: 403