mirror of
				https://sourceware.org/git/glibc.git
				synced 2025-11-03 20:53:13 +03:00 
			
		
		
		
	Mostly tests around not-exported IFUNC functions, IFUNC in statically linked binaries and PIEs, etc.
		
			
				
	
	
		
			20 lines
		
	
	
		
			226 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			226 B
		
	
	
	
		
			C
		
	
	
	
	
	
/* Test STT_GNU_IFUNC symbol reference in a shared library.  */
 | 
						|
 | 
						|
extern int foo (void);
 | 
						|
 | 
						|
typedef int (*foo_p) (void);
 | 
						|
 | 
						|
foo_p foo_ptr = foo;
 | 
						|
 | 
						|
foo_p
 | 
						|
get_foo_p (void)
 | 
						|
{
 | 
						|
  return foo_ptr;
 | 
						|
}
 | 
						|
 | 
						|
foo_p
 | 
						|
get_foo (void)
 | 
						|
{
 | 
						|
  return foo;
 | 
						|
}
 |