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>
		
			
				
	
	
		
			18 lines
		
	
	
		
			299 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			299 B
		
	
	
	
		
			C
		
	
	
	
	
	
// SPDX-License-Identifier: GPL-2.0+
 | 
						|
/*
 | 
						|
 * Copyright (c) 2016 Google, Inc
 | 
						|
 *
 | 
						|
 * Simple program to create a bss_data region so the symbol can be read
 | 
						|
 * by binutils. This is used by binman tests.
 | 
						|
 */
 | 
						|
 | 
						|
int bss_data[10];
 | 
						|
int __bss_size = sizeof(bss_data);
 | 
						|
 | 
						|
int main()
 | 
						|
{
 | 
						|
	bss_data[2] = 2;
 | 
						|
 | 
						|
	return 0;
 | 
						|
}
 |