• Dima Zavin's avatar
    linker: Make the errors reported by dlopen/dlsym be more useful. · 2e85579c
    Dima Zavin authored
    
    
    Changed it so that when the linker generates error messages, they are
    scribbled away into a buffer that dlfcn and friends can read from.
    
    Since the error messages are generetad with snprintf, and snprintf
    MAY call malloc during some code paths, we now link against a version
    of libc that does not contain malloc/free/realloc/calloc. We then define
    malloc and friends in the dynamic loader, and make them abort() if they
    are ever called.
    Signed-off-by: default avatarDima Zavin <dima@android.com>
    2e85579c
Android.mk 2.12 KB