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

llvm: Avoid looking at /proc/self/exe #18074

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

fornwall
Copy link
Member

@fornwall fornwall commented Oct 2, 2023

LLVM looks at /proc/self/exe to determine which binary has been called. This does not work with the proposed changes for termux-exec: termux/termux-exec#24

Luckily the fallback to look at argv0 works instead.

LLVM looks at /proc/self/exe to determine which binary has been called.
This does not work with the proposed changes for termux-exec:
termux/termux-exec#24

Luckily the fallback to look at argv0 works instead.
@fornwall fornwall merged commit 710c81c into termux:master Oct 4, 2023
@landfillbaby landfillbaby mentioned this pull request Oct 15, 2023
@landfillbaby
Copy link
Member

what if instead we use the dladdr option further down the file? https://github.com/llvm/llvm-project/blob/llvmorg-17.0.2/llvm/lib/Support/Unix/Path.inc#L320

@fornwall
Copy link
Member Author

@landfillbaby I can try it out!

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

Successfully merging this pull request may close these issues.

2 participants