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

plthook_elf.c: plthook_open() fails on executables with local hint symbols (__INIT_ARRAY, _end) #29

Closed
smichaku opened this issue Mar 30, 2020 · 1 comment

Comments

@smichaku
Copy link

We came across an executable in which the plthook_open_by_handle() fails as
dlsym() can't find the __INIT_ARRAY__ and _end symbols. The _end symbol
seems to be local in the file:

micha ~/temp/plthook $ nm -CD example | egrep -w "__INIT_ARRAY__|_end"
0111ab6c b _end

It might be because this is executable was extracted from a UPX packed
executable. Unlike _end the _start symbol is exported:

001b3d48 T _start

We currently added a call to dlsym(hndl, "_start") in order to make it
work.

@kubo kubo closed this as completed in f60fbcf Mar 30, 2020
@kubo
Copy link
Owner

kubo commented Mar 30, 2020

Thanks. _start is also checked in plthook_open_by_handle() now.

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