[all-commits] [llvm/llvm-project] c9c236: [lld-macho][nfc] Don't mix file sizes with addresses

Jez Ng via All-commits all-commits at lists.llvm.org
Tue Mar 22 14:53:10 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c9c2363048b00749561070008d3b696438ee1024
      https://github.com/llvm/llvm-project/commit/c9c2363048b00749561070008d3b696438ee1024
  Author: Jez Ng <jezng at fb.com>
  Date:   2022-03-22 (Tue, 22 Mar 2022)

  Changed paths:
    M lld/MachO/SyntheticSections.cpp

  Log Message:
  -----------
  [lld-macho][nfc] Don't mix file sizes with addresses

Update DataInCode's calculation of `endAddr` to use `getSize()` instead
of `getFileSize()` -- while in practice they're the same for
non-zerofill sections (which code sections are), we still should treat
address sizes / offsets as distinct from file sizes / offsets.




More information about the All-commits mailing list