This is an archive of the discontinued LLVM Phabricator instance.

[lld-macho] Error on encountering undefined symbols
ClosedPublic

Authored by int3 on May 18 2020, 3:57 PM.

Details

Summary

... instead of silently emitting a reference to the zero address.

Depends on D80049.

Diff Detail

Event Timeline

int3 created this revision.May 18 2020, 3:57 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 18 2020, 3:58 PM
smeenai accepted this revision.May 19 2020, 1:51 PM

LGTM, thanks for fixing!

LLD ELF does this as part of its scanRelocations loop. That might be nicer cos we'd bail out with undefined symbol errors earlier. It doesn't matter a whole lot right now, but we could add a TODO.

This revision is now accepted and ready to land.May 19 2020, 1:51 PM
int3 updated this revision to Diff 265079.May 19 2020, 4:17 PM

move to scanRelocations

This revision was automatically updated to reflect the committed changes.