Skip to content

ELD is crashing when AArch64 objects contain unsupported relocations #773

@nezetic

Description

@nezetic

Due to a missing assert, eld crashes when trying to link AArch64 objects including unsupported relocations.

This is due to pType not being validated before accessing ApplyFunctions in AArch64Relocator::getSize.

Relocator::Size AArch64Relocator::getSize(Relocation::Type pType) const {
   return ApplyFunctions[pType].size;
 }

#772 is adding the missing assert along with additional checks and tests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions