This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: atexit in a glibc function


On Saturday 16 June 2012 21:15:27 Amittai Aviram wrote:
> You are right--it works great.  Follow-up question:  what do you mean by
> their being "designed to be overridden at runtime"?  How do they differ
> from other library functions so that they are specifically designed with
> this in mind?

pretty much all other functions have PLT bypasses added so that when one C 
library func calls another C library func, it doesn't have to go through the 
symbol lookup/PLT indirection but just jump directly to it.

the malloc funcs however never have the PLT bypasses added so that people can 
create their own memory allocation functions and have the C library funcs that 
allocate/free memory go through the overridden ones.
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]