Skip to content

isExecutable check for PHDR placement adjustment isn't reliable #165

Open
@rcombs

Description

@rcombs

See

if (isExecutable) {

This check is insufficient, as it only handles cases where the file has a PT_INTERP header, which means it won't run on static executables. Most static executables don't need to read AT_PHDR, but some do; e.g. static PIE executables.

This could alternately be handled by enforcing that PHDRs are always in the first page, which would also fix #153.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions