mirror of
				https://github.com/espressif/esp-idf.git
				synced 2025-11-04 00:51:42 +01:00 
			
		
		
		
	
		
			
	
	
		
			36 lines
		
	
	
		
			552 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
		
		
			
		
	
	
			36 lines
		
	
	
		
			552 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| 
								 | 
							
								#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))
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								}
							 |