mirror of
				https://sourceware.org/git/glibc.git
				synced 2025-11-03 20:53:13 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			28 lines
		
	
	
		
			323 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			323 B
		
	
	
	
		
			C
		
	
	
	
	
	
#include <dlfcn.h>
 | 
						|
#include <stdio.h>
 | 
						|
#include <stdlib.h>
 | 
						|
 | 
						|
void
 | 
						|
mod3_fini2 (void)
 | 
						|
{
 | 
						|
}
 | 
						|
 | 
						|
void
 | 
						|
mod3_fini (void)
 | 
						|
{
 | 
						|
  mod3_fini2 ();
 | 
						|
}
 | 
						|
 | 
						|
void
 | 
						|
mod3 (void)
 | 
						|
{
 | 
						|
  void *h = dlopen ("$ORIGIN/unload8mod2.so", RTLD_LAZY);
 | 
						|
  if (h == NULL)
 | 
						|
    {
 | 
						|
      puts ("dlopen unload8mod2.so failed");
 | 
						|
      exit (1);
 | 
						|
    }
 | 
						|
 | 
						|
  atexit (mod3_fini);
 | 
						|
}
 |