This is an archive of the discontinued LLVM Phabricator instance.

[profile] Delete zero-size dummy sections
ClosedPublic

Authored by MaskRay on Feb 28 2021, 5:08 PM.

Details

Summary

They were added so that if no metadata section is present,
__start_llvm_prf_* references would not cause "undefined symbol"
errors. By switching to undefined weak symbols in D96936, the dummy
sections are not needed.

This patch is also needed to work around
https://sourceware.org/bugzilla/show_bug.cgi?id=27490

Diff Detail

Event Timeline

MaskRay requested review of this revision.Feb 28 2021, 5:08 PM
MaskRay created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptFeb 28 2021, 5:08 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
davidxl accepted this revision.Feb 28 2021, 6:25 PM

lgtm

This revision is now accepted and ready to land.Feb 28 2021, 6:25 PM
This revision was automatically updated to reflect the committed changes.