Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finish elf_shared_objector_iterator API #15

Open
elfmaster opened this issue Feb 28, 2020 · 0 comments
Open

Finish elf_shared_objector_iterator API #15

elfmaster opened this issue Feb 28, 2020 · 0 comments

Comments

@elfmaster
Copy link
Owner

Currently the elf_shared_object_iterator API which is contained within both libelfmaster.c and internal.c, is already fairly well developed with several flags that determine the behavior, method, and performance of the iterator that can be used based on the use-case. Nevertheless it still requires several important capabilities:

  1. Respect DT_ORIGIN (Which is the value of $CWD/, and it looks there first)
  2. Respect DT_RUNPATH/DT_RPATH which specifies an explicit path for the linker to try first during resolution. I.E DT_RUNPATH: /home/elfmaster/libs would be the same as setting LD_LIBRARY_PATH=/home/elfmaster/libs -- the only difference being that DT_RUNPATH is apart of the binary and is therefore permanent.
  3. Perform hard disk lookups in the following order:
DT_RUNPATH
DT_ORIGIN
/lib/x86_64-linux-gnu/
/usr/lib/x86_64-linux-gnu/
/usr/lib
/lib
@elfmaster elfmaster added this to the shared_object_iterator_init milestone Mar 14, 2020
@elfmaster elfmaster assigned En14c and unassigned En14c Mar 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants