[all-commits] [llvm/llvm-project] 9482aa: [lld/mac] Let OutputSegment store its start address

Nico Weber via All-commits all-commits at lists.llvm.org
Fri Jul 23 08:44:24 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9482aa98e5514f8d399bc5a16d0ff33a7f746e9d
      https://github.com/llvm/llvm-project/commit/9482aa98e5514f8d399bc5a16d0ff33a7f746e9d
  Author: Nico Weber <thakis at chromium.org>
  Date:   2021-07-23 (Fri, 23 Jul 2021)

  Changed paths:
    M lld/MachO/OutputSection.cpp
    M lld/MachO/OutputSegment.h
    M lld/MachO/SyntheticSections.cpp
    M lld/MachO/Writer.cpp

  Log Message:
  -----------
  [lld/mac] Let OutputSegment store its start address

segment$start$/segment$end$ symbols allow creating segments without
sections, so getting the segment address off the first section
won't work there. Storing the address on the segment is arguably a
bit simpler too.

No behavior change, part of PR50760.

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




More information about the All-commits mailing list