This is an archive of the discontinued LLVM Phabricator instance.

[lld-macho] Have inputOrder default to less than INT_MAX
ClosedPublic

Authored by int3 on Jun 20 2021, 3:13 PM.

Details

Reviewers
thakis
gkm
Group Reviewers
Restricted Project
Commits
rGf79e7a5a4818: [lld-macho] Have inputOrder default to less than INT_MAX
Summary

We make it less than INT_MAX in order not to conflict with the ordering
of zerofill sections, which must always be placed at the end of their
segment.

This is the more structural fix for the issue addressed in D104596: [lld/mac] Make sure __thread_ptrs is in front of __thread_bss.

Diff Detail

Event Timeline

int3 created this revision.Jun 20 2021, 3:13 PM
Herald added a project: Restricted Project. · View Herald Transcript
int3 requested review of this revision.Jun 20 2021, 3:13 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 20 2021, 3:13 PM
thakis accepted this revision.Jun 20 2021, 4:30 PM

Great, thanks!

This revision is now accepted and ready to land.Jun 20 2021, 4:30 PM
smeenai added inline comments.
lld/MachO/OutputSection.h
27

Any particular significance to the 1024?

int3 added inline comments.Jun 20 2021, 4:34 PM
lld/MachO/OutputSection.h
27

nope, I just wanted a nice round number

This revision was landed with ongoing or failed builds.Jun 20 2021, 4:49 PM
This revision was automatically updated to reflect the committed changes.