mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-11-03 21:48:15 +00:00 
			
		
		
		
	Binman needs to be able to update the contents of an ELF file after it has been build. To support this, add a function to locate the position of a symbol's contents within the file. Fix the comments on bss_data.c and Symbol while we are here. Signed-off-by: Simon Glass <sjg@chromium.org>
		
			
				
	
	
		
			17 lines
		
	
	
		
			331 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			331 B
		
	
	
	
		
			C
		
	
	
	
	
	
// SPDX-License-Identifier: GPL-2.0+
 | 
						|
/*
 | 
						|
 * Copyright 2021 Google LLC
 | 
						|
 *
 | 
						|
 * Simple program including some embedded data that can be accessed by binman.
 | 
						|
 * This is used by binman tests.
 | 
						|
 */
 | 
						|
 | 
						|
int first[10] = {1};
 | 
						|
int embed[3] __attribute__((section(".embed"))) = {0x1234, 0x5678};
 | 
						|
int second[10] = {1};
 | 
						|
 | 
						|
int main(void)
 | 
						|
{
 | 
						|
	return 0;
 | 
						|
}
 |