This is an archive of the discontinued LLVM Phabricator instance.

Revert r330966: Replace SharedSymbols with Defined when creating copy relocations.
AbandonedPublic

Authored by orivej on Sep 29 2018, 4:35 PM.

Details

Summary

This revert has one meaningful change in getSymSectionIndex in ELF/SyntheticSections.cpp: if Sym->getOutputSection() is not null, it should take priority over isa<Defined> check, as it did before r338247 (https://reviews.llvm.org/D49541).

Fixes https://bugs.llvm.org/show_bug.cgi?id=39104

TODO: add a test case.

Diff Detail

Repository
rLLD LLVM Linker

Event Timeline

orivej created this revision.Sep 29 2018, 4:35 PM
grimar added a comment.Oct 1 2018, 7:08 AM

I do not think we really need to revert it.
See: D52724