HomeFreeBSD

lld: ELF: Fix ICF crash on absolute symbol relocations.

Description

lld: ELF: Fix ICF crash on absolute symbol relocations.

If two sections contained relocations to absolute symbols with the same
value we would crash when trying to access their sections. Add a check that
both symbols point to sections before accessing their sections, and treat
absolute symbols as equal if their values are equal.

Obtained from: LLD commit r292578
MFC after: 3 days

Details

Provenance
emasteAuthored on
Parents
rS319884: Update bmake to 20170510
Branches
Unknown
Tags
Unknown