Skip to content
Snippets Groups Projects
Commit 0cd28263 authored by Simon McVittie's avatar Simon McVittie
Browse files

process_pt_dynamic: Iterate over the dynamic section entries twice


In the first pass, we record the information we'll need in the second
pass. In the second pass, we do the actual work.

In particular this appears to fix a crash I was seeing with OpenArena
on a Debian 9 runtime on a Debian 8-based host, where the symbol
table appeared to be NULL - it looks as though that was crashing
because for that particular library, the DT_SYMTAB happened to appear
later in the dynamic section entry array than the DT_RELA or DT_JMPREL.

This should also let us stop using find_value(), but I haven't tried
that yet.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent 622359fc
No related branches found
No related tags found
1 merge request!311Build capsule-capture-libs from a bundled copy of libcapsule
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment