This is an archive of the discontinued LLVM Phabricator instance.

[lld-macho] Sibling N_SO symbols must have the empty string
ClosedPublic

Authored by int3 on Apr 6 2021, 7:06 PM.

Details

Summary

We had been giving them a string index of zero, which actually corresponds to a
string with a single space due to D89639: [lld-macho] Emit empty string as first entry of string table.

This was far from obvious in the old test because llvm-nm doesn't quote the
symbol names, making the empty string look identical to a string of a single
space. dsymutil -s quotes its strings, so I've changed the test accordingly.

Fixes llvm.org/PR48714. Thanks @clayborg for the tips!

Diff Detail

Event Timeline

int3 created this revision.Apr 6 2021, 7:06 PM
Herald added a project: Restricted Project. · View Herald Transcript
int3 requested review of this revision.Apr 6 2021, 7:06 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 6 2021, 7:06 PM
int3 updated this revision to Diff 335697.Apr 6 2021, 7:06 PM

add test dependency on dsymutil

clayborg accepted this revision.Apr 6 2021, 8:57 PM

LGTM

This revision is now accepted and ready to land.Apr 6 2021, 8:57 PM
This revision was automatically updated to reflect the committed changes.