Skip to content

Commit 37fa659

Browse files
committed
[plugin-api] LinkerWrapper::doRelocation
Do not emit relocation sections for calls from plugins when applying relocations. Signed-off-by: Shankar Easwaran <seaswara@qti.qualcomm.com>
1 parent ea91f90 commit 37fa659

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/LinkerWrapper/LinkerWrapper.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,7 @@ eld::Expected<void> LinkerWrapper::doRelocation() {
258258
CHECK_LINK_STATE(*this, "CreatingSegments");
259259
/// FIXME: we can report better errors if ObjectLinker::relocation() returned
260260
/// eld::Expected
261-
if (!m_Module.getLinker()->getObjectLinker()->relocation(
262-
m_Module.getConfig().options().emitRelocs()))
261+
if (!m_Module.getLinker()->getObjectLinker()->relocation(false))
263262
return std::make_unique<DiagnosticEntry>(Diag::error_relocations_plugin);
264263
return {};
265264
}

0 commit comments

Comments
 (0)