This is an archive of the discontinued LLVM Phabricator instance.

[memprof] Update the test comments to include -Wl,-no-pie
ClosedPublic

Authored by snehasish on Jun 14 2022, 4:32 PM.

Details

Summary

Until we have symbolization for position independent code lets update
this documentation since clang now defaults to position independent
code.

Diff Detail

Event Timeline

snehasish created this revision.Jun 14 2022, 4:32 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 14 2022, 4:32 PM
snehasish requested review of this revision.Jun 14 2022, 4:32 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 14 2022, 4:32 PM
tejohnson added inline comments.Jun 14 2022, 4:35 PM
llvm/test/tools/llvm-profdata/memprof-basic.test
29–30

Do we also need -fno-pie here and elsewhere?

32

BTW I noticed that the binary name here and in a couple other files is wrong.

snehasish updated this revision to Diff 436978.Jun 14 2022, 5:01 PM

Update binary names to be consistent.

snehasish marked an inline comment as done.Jun 14 2022, 5:04 PM

PTAL, thanks!

llvm/test/tools/llvm-profdata/memprof-basic.test
29–30

No, I checked for this test case (and the others in this patch) -Wl,-no-pie is sufficient.

This revision is now accepted and ready to land.Jun 14 2022, 7:16 PM
This revision was landed with ongoing or failed builds.Jun 15 2022, 9:49 AM
This revision was automatically updated to reflect the committed changes.