mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-10-31 03:58:17 +00:00 
			
		
		
		
	The current support for updating variables in a binary is hard-coded to work with U-Boot: - It assumes the image starts at __image_copy_start - It uses the existing U-Boot-specific entry types It is useful for other projects to use these feature. Add properties to enable writing symbols for any blob, a way of specifying the base symbol and a way of providing the ELF filename to allow symbol lookup to take place. With this it is possible to update a Zephyr image, such as zephyr.bin after it has been built. Signed-off-by: Simon Glass <sjg@chromium.org>
		
			
				
	
	
		
			31 lines
		
	
	
		
			430 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			430 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| /* SPDX-License-Identifier: GPL-2.0+ */
 | |
| /*
 | |
|  * Copyright (c) 2016 Google, Inc
 | |
|  */
 | |
| 
 | |
| OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
 | |
| OUTPUT_ARCH(i386)
 | |
| ENTRY(_start)
 | |
| 
 | |
| SECTIONS
 | |
| {
 | |
| 	. = 0x00000010;
 | |
| 	_start = .;
 | |
| 
 | |
| 	. = ALIGN(4);
 | |
| 	.text :
 | |
| 	{
 | |
| 		__my_start_sym = .;
 | |
| 		*(.text*)
 | |
| 	}
 | |
| 
 | |
| 	. = ALIGN(4);
 | |
| 	.binman_sym_table : {
 | |
| 		__binman_sym_start = .;
 | |
| 		KEEP(*(SORT(.binman_sym*)));
 | |
| 		__binman_sym_end = .;
 | |
| 	}
 | |
| 	.interp : { *(.interp*) }
 | |
| 
 | |
| }
 |