Factor out retrieving the interpreter path from the main ELF
loader routine.
One small difference is that it no longer errors out if there
are multiple PT_INTERP sections; it just uses the first one.
Differential D19715
Factor out retrieving the interpreter path from the main ELF
loader routine. trasz on Mar 26 2019, 3:42 PM. Authored by Tags None Referenced Files
Subscribers
Details
Factor out retrieving the interpreter path from the main ELF One small difference is that it no longer errors out if there
Diff Detail
Event TimelineComment Actions If you only move some parts of the case PT_INTERP into the helper, you can 1. avoid one more pass over phdrs 2. easily keep the logic to error on more than one interpreter. Also I do not completely like the removal of the interp_name_len argument from the get_brandinfo args.
Comment Actions Kib's suggestions. Updating D19715: Factor out retrieving the interpreter path from the main ELFloader routine.
Comment Actions Improve. Updating D19715: Factor out retrieving the interpreter path from the main ELFloader routine.
|