[all-commits] [llvm/llvm-project] c4053c: [lld/mac] Don't crash on -order_file with assembly...

Nico Weber via All-commits all-commits at lists.llvm.org
Fri May 28 18:01:05 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c4053cd14eb9b5fe12b4ea9bc99bd83548d1f371
      https://github.com/llvm/llvm-project/commit/c4053cd14eb9b5fe12b4ea9bc99bd83548d1f371
  Author: Nico Weber <thakis at chromium.org>
  Date:   2021-05-28 (Fri, 28 May 2021)

  Changed paths:
    M lld/MachO/Writer.cpp
    M lld/test/MachO/order-file.s

  Log Message:
  -----------
  [lld/mac] Don't crash on -order_file with assembly inputs on arm64

.s files with `-g` generate __debug_aranges on darwin/arm64 for some
reason, and those lead to `nullptr` symbols. Don't crash on that.

Fixes PR50517.

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




More information about the All-commits mailing list