Skip to content
This repository has been archived by the owner on Sep 10, 2018. It is now read-only.

ento/glibc-absolute-path-link-mcve

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What's in here:

  • Makefile
  • getaddrinfo.c - a small program that results in a call to dl_open_worker
  • build.sh - optionally specify a prefix to build against glibc installed at non-standard location
  • fixup_glibc_path.sh - replaces libc.so.6 in the given file's DT_NEEDED section with its absolute path
  • info.sh - print the DT_NEEDED section and interpreter of a given file

Prerequisite:

  • patchelf
  • build scripts assume linux/x86_64

About

mcve that demonstrates glibc's unexpected behavior when libc is linked through an absolute path

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published