[all-commits] [llvm/llvm-project] 7996a1: [lld-macho] Make sure ZeroFill sections are at the...

Jez Ng via All-commits all-commits at lists.llvm.org
Wed Jul 1 19:40:13 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 7996a1ef7020e4bda1252f6f26c26e1c78aa3eac
      https://github.com/llvm/llvm-project/commit/7996a1ef7020e4bda1252f6f26c26e1c78aa3eac
  Author: Jez Ng <jezng at fb.com>
  Date:   2020-07-01 (Wed, 01 Jul 2020)

  Changed paths:
    M lld/MachO/Writer.cpp
    M lld/test/MachO/bss.s

  Log Message:
  -----------
  [lld-macho] Make sure ZeroFill sections are at the end of their segments

Summary:
ld64 does this, and references an internal rdar:// number as an explanation. No
idea what that rdar issue is, but in practice, it seems that not putting a BSS
section at the end can cause subsequent sections in the same segment to be
overwritten with zeroes.

Reviewers: #lld-macho

Subscribers: llvm-commits

Tags: #llvm

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




More information about the All-commits mailing list