This is an archive of the discontinued LLVM Phabricator instance.

[lld-macho][nfc] Move list of section names into InputSection.h
ClosedPublic

Authored by int3 on Mar 13 2021, 9:43 AM.

Details

Summary

They were previously in SyntheticSections.h, but now there are
a bunch of non-synthetic section names in the list.

Also renamed __functionStarts to __func_starts for uniformity with
other section names + keeps the name under 16 characters (in case we ever
want to write it out as a real section).

Diff Detail

Event Timeline

int3 created this revision.Mar 13 2021, 9:43 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 13 2021, 9:43 AM
int3 requested review of this revision.Mar 13 2021, 9:43 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 13 2021, 9:43 AM
compnerd accepted this revision.Mar 13 2021, 2:22 PM
compnerd added a subscriber: compnerd.

I don't think that LC_FUNCTION_STARTS would create an actual section.

This revision is now accepted and ready to land.Mar 13 2021, 2:22 PM
int3 added a comment.Mar 13 2021, 2:39 PM

I think ld64 has the option of emitting section headers for all hidden sections, probably for debugging purposes. LLD doesn't support that at the moment though

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