This is an archive of the discontinued LLVM Phabricator instance.

[libomptarget][amdgcn] Tolerate deadstripped env variable
ClosedPublic

Authored by JonChesterfield on Feb 9 2021, 3:52 AM.

Details

Summary

[libomptarget][amdgcn] Tolerate deadstripped env variable

Discovered by Pushpinder. If the device_environment variable is unused
it can be deadstripped, in which case we should not abort due to it
missing. This change is safe in that a missing symbol which is actually
used can be reported by both linker and loader, and a missing unused
symbol is better deadstripped than left in the image.

Diff Detail

Event Timeline

JonChesterfield created this revision.Feb 9 2021, 3:52 AM
JonChesterfield requested review of this revision.Feb 9 2021, 3:52 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 9 2021, 3:52 AM
pdhaliwal accepted this revision.Feb 9 2021, 3:56 AM

LGTM, thanks for fixing it.

This revision is now accepted and ready to land.Feb 9 2021, 3:56 AM
This revision was landed with ongoing or failed builds.Feb 9 2021, 3:58 AM
This revision was automatically updated to reflect the committed changes.