[PATCH] D15594: Track whether all relocations in a section are implicit, and don't emit them in that case

Pete Cooper via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 16 15:50:16 PST 2015


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

Hi Nick

The __eh_frame section contains relocations which can always be implicitly generated.

This patch tracks whether sections have only implicitly relocations and skips emitting them to the object file if that is the case.

The test case here ensures that this is the case for __eh_frame sections.

http://reviews.llvm.org/D15594

Files:
  lib/ReaderWriter/MachO/ArchHandler_arm64.cpp
  lib/ReaderWriter/MachO/MachONormalizedFileBinaryUtils.h
  lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp
  lib/ReaderWriter/MachO/MachONormalizedFileToAtoms.cpp
  test/mach-o/arm64-reloc-negDelta32-fixup.yaml
  test/mach-o/do-not-emit-unwind-fde-arm64.yaml

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15594.43077.patch
Type: text/x-patch
Size: 14843 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151216/534230c6/attachment.bin>


More information about the llvm-commits mailing list