mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 20:42:43 +00:00 
			
		
		
		
	 89a38b72b7
			
		
	
	
		89a38b72b7
		
	
	
	
	
		
			
			This implements the dladdr() function which lets the caller look up the symbol name, symbol address as well as library name and library base address for an arbitrary address.
		
			
				
	
	
		
			13 lines
		
	
	
	
		
			318 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
	
		
			318 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2021, Gunnar Beutner <gunnar@beutner.name>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #include <LibDl/dlfcn_integration.h>
 | |
| 
 | |
| // These are used by libdl and are filled in by the dynamic loader.
 | |
| DlCloseFunction __dlclose;
 | |
| DlOpenFunction __dlopen;
 | |
| DlSymFunction __dlsym;
 | |
| DlAddrFunction __dladdr;
 |