This is an archive of the discontinued LLVM Phabricator instance.

COFF: Sort output sections which start with .debug to the end of the file
ClosedPublic

Authored by majnemer on Jul 30 2015, 10:46 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

majnemer updated this revision to Diff 31049.Jul 30 2015, 10:46 AM
majnemer retitled this revision from to COFF: Sort output sections which start with .debug to the end of the file.
majnemer updated this object.
majnemer added a reviewer: ruiu.
majnemer added a subscriber: llvm-commits.
ruiu added inline comments.Jul 30 2015, 12:58 PM
COFF/Writer.cpp
405 ↗(On Diff #31049)

I'd check for S->getPermissions() & DISCARDABLE.

majnemer updated this revision to Diff 31067.Jul 30 2015, 1:12 PM
  • Address review comments
ruiu accepted this revision.Jul 30 2015, 1:16 PM
ruiu edited edge metadata.

LGTM with a nit.

COFF/Writer.cpp
401 ↗(On Diff #31067)

Please add a comment saying that the code is to move DISCARDABLE (or non-memory-mapped) sections to the end of file because the loader cannnot handle holes.

This revision is now accepted and ready to land.Jul 30 2015, 1:16 PM
This revision was automatically updated to reflect the committed changes.