[all-commits] [llvm/llvm-project] 4eb6f4: [lld-macho][re-land] Support .subsections_via_symbols

Jez Ng via All-commits all-commits at lists.llvm.org
Tue May 19 12:32:17 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 4eb6f4854eba6ce8d9b381f537be39ff04d3b030
      https://github.com/llvm/llvm-project/commit/4eb6f4854eba6ce8d9b381f537be39ff04d3b030
  Author: Jez Ng <jezng at fb.com>
  Date:   2020-05-19 (Tue, 19 May 2020)

  Changed paths:
    M lld/MachO/Driver.cpp
    M lld/MachO/InputFiles.cpp
    M lld/MachO/InputFiles.h
    M lld/MachO/InputSection.cpp
    M lld/MachO/InputSection.h
    A lld/test/MachO/subsections-section-relocs.s
    A lld/test/MachO/subsections-symbol-relocs.s

  Log Message:
  -----------
  [lld-macho][re-land] Support .subsections_via_symbols

Summary:
This diff restores and builds upon @pcc and @ruiu's initial work on
subsections.

The .subsections_via_symbols directive indicates we can split each
section along symbol boundaries, unless those symbols have been marked
with `.alt_entry`.

We exercise this functionality in our tests by using order files that
rearrange those symbols.

Depends on D79668.

Reviewers: ruiu, pcc, MaskRay, smeenai, alexshap, gkm, Ktwu, christylee

Reviewed By: smeenai

Subscribers: thakis, llvm-commits, pcc, ruiu

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D79926


  Commit: ce0d8beebcf0460fe58a725fbf4d29b49775f5e4
      https://github.com/llvm/llvm-project/commit/ce0d8beebcf0460fe58a725fbf4d29b49775f5e4
  Author: Jez Ng <jezng at fb.com>
  Date:   2020-05-19 (Tue, 19 May 2020)

  Changed paths:
    M lld/MachO/Arch/X86_64.cpp
    M lld/MachO/InputFiles.cpp
    M lld/MachO/InputSection.cpp
    M lld/MachO/InputSection.h
    M lld/MachO/Target.h
    A lld/test/MachO/x86-64-reloc-unsigned.s

  Log Message:
  -----------
  [lld-macho][re-land] Support X86_64_RELOC_UNSIGNED

This reverts commit db8559eee4a07c44babcc4618eef3d185cf79cc6.


Compare: https://github.com/llvm/llvm-project/compare/b2d733c35078...ce0d8beebcf0


More information about the All-commits mailing list