mirror of
https://github.com/espressif/esp-idf.git
synced 2026-08-18 06:35:35 +03:00
Register ULP memory linker scripts with target_linker_script so CMake v2 handles preprocessing and attachment through the component graph. Keep the generated legacy outputs named .ld by stripping only the .in suffix, and pass full linker script paths to support direct ld invocation.
41 lines
664 B
Plaintext
41 lines
664 B
Plaintext
/*
|
|
* SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
#include "sdkconfig.h"
|
|
|
|
#define ULP_BIN_MAGIC 0x00706c75
|
|
#define HEADER_SIZE 12
|
|
MEMORY
|
|
{
|
|
ram(RW) : ORIGIN = 0, LENGTH = CONFIG_ULP_COPROC_RESERVE_MEM
|
|
}
|
|
|
|
SECTIONS
|
|
{
|
|
.text : AT(HEADER_SIZE)
|
|
{
|
|
*(.text)
|
|
} >ram
|
|
.data :
|
|
{
|
|
. = ALIGN(4);
|
|
*(.data)
|
|
} >ram
|
|
.bss :
|
|
{
|
|
. = ALIGN(4);
|
|
*(.bss)
|
|
} >ram
|
|
|
|
.header : AT(0)
|
|
{
|
|
LONG(ULP_BIN_MAGIC)
|
|
SHORT(LOADADDR(.text))
|
|
SHORT(SIZEOF(.text))
|
|
SHORT(SIZEOF(.data))
|
|
SHORT(SIZEOF(.bss))
|
|
}
|
|
}
|