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

Committed
emasteJun 13 2017, 12:31 AM
Parents
rS319884: Update bmake to 20170510
Branches
Unknown
Tags
Unknown