[PATCH] D15868: Sort MachO sections in -r mode

Pete Cooper via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 4 13:35:38 PST 2016


pete created this revision.
pete added a reviewer: lhames.
pete added subscribers: kledzik, llvm-commits.
pete added a project: lld.

Currently, final linked images are sorted according to things like __text before __data.

-r files however, are only sorted according to the atom sorter, which is correct within a section, but not really across sections.

After discussing this with Nick, he said there was no reason for the difference, and so this patch removes all the special logic which avoided sorting -r files, and just uses the same sort for everything.

http://reviews.llvm.org/D15868

Files:
  lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp
  test/mach-o/arm64-reloc-negDelta32-fixup.yaml
  test/mach-o/arm64-section-order.yaml
  test/mach-o/parse-data-relocs-x86_64.yaml

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15868.43917.patch
Type: text/x-patch
Size: 12955 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160104/04b5d2d0/attachment.bin>


More information about the llvm-commits mailing list