HomeFreeBSD

Pull in r328738 from upstream lld trunk (by Rafael Espindola):

Description

Pull in r328738 from upstream lld trunk (by Rafael Espindola):

Strip @VER suffices from the LTO output.

This fixes pr36623.

The problem is that we have to parse versions out of names before LTO
so that LTO can use that information.

When we get the LTO produced .o files, we replace the previous symbols
with the LTO produced ones, but they still have @ in their names.

We could just trim the name directly, but calling parseSymbolVersion
to do it is simpler.

This is a follow-up to r331366, since we discovered that lld could
append version strings to symbols twice, when using Link Time
Optimization.

MFC after: 3 months
X-MFC-With: r327952

Details

Provenance
dimAuthored on
Parents
rS331730: MFC kernel build-id support
Branches
Unknown
Tags
Unknown