This is an archive of the discontinued LLVM Phabricator instance.

[asan] Fixed link error by setting jump symbol to R_X86_64_PLT32.
ClosedPublic

Authored by kstoimenov on Sep 2 2021, 12:28 PM.

Details

Summary

Fixing this link error:
ld: error: relocation R_X86_64_PC32 cannot be used against symbol __asan_report_load...; recompile with -fPIC

Diff Detail

Event Timeline

kstoimenov created this revision.Sep 2 2021, 12:28 PM
kstoimenov requested review of this revision.Sep 2 2021, 12:28 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 2 2021, 12:28 PM
vitalybuka accepted this revision.Sep 2 2021, 1:08 PM

It should be visible in test? Can you please update one?

This revision is now accepted and ready to land.Sep 2 2021, 1:08 PM
kstoimenov updated this revision to Diff 370413.Sep 2 2021, 2:33 PM

Added tests.

kstoimenov updated this revision to Diff 370418.Sep 2 2021, 2:49 PM

Fixed a test.

This revision was landed with ongoing or failed builds.Sep 2 2021, 2:51 PM
This revision was automatically updated to reflect the committed changes.