mirror of
				https://sourceware.org/git/glibc.git
				synced 2025-10-30 10:45:40 +03:00 
			
		
		
		
	Statically built binaries use __pointer_chk_guard_local, while dynamically built binaries use __pointer_chk_guard. Provide the right definition depending on the test case we are building.
		
			
				
	
	
		
			13 lines
		
	
	
		
			317 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			317 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #include <stdint.h>
 | |
| 
 | |
| extern uintptr_t __stack_chk_guard;
 | |
| #define STACK_CHK_GUARD __stack_chk_guard
 | |
| 
 | |
| #ifdef PTRGUARD_LOCAL
 | |
| extern uintptr_t __pointer_chk_guard_local;
 | |
| # define POINTER_CHK_GUARD __pointer_chk_guard_local
 | |
| #else
 | |
| extern uintptr_t __pointer_chk_guard;
 | |
| # define POINTER_CHK_GUARD __pointer_chk_guard
 | |
| #endif
 |