mirror of
				https://sourceware.org/git/glibc.git
				synced 2025-10-30 10:45:40 +03:00 
			
		
		
		
	Exporting functions and relying on symbol interposition from libc.so
makes the choice of implementation dependent on DT_NEEDED order, which
is not what some compiler drivers expect.
This commit replaces one magic mechanism (symbol interposition) with
another one (preprocessor-/compiler-based redirection).  This makes
the hand-over from the minimal malloc to the full malloc more
explicit.
Removing the ABI symbols is backwards-compatible because libc.so is
always in scope, and the dynamic loader will find the malloc-related
symbols there since commit f0b2132b35
("ld.so: Support moving versioned symbols between sonames
[BZ #24741]").
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
		
	
		
			
				
	
	
		
			6 lines
		
	
	
		
			143 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			6 lines
		
	
	
		
			143 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| GLIBC_2.2 __libc_stack_end D 0x4
 | |
| GLIBC_2.2 _dl_mcount F
 | |
| GLIBC_2.2 _r_debug D 0x14
 | |
| GLIBC_2.3 __tls_get_addr F
 | |
| GLIBC_2.4 __stack_chk_guard D 0x4
 |