[all-commits] [llvm/llvm-project] efb465: [lipo] Support creating Universal 64 bit Mach-O fi...

Daniel Rodríguez Troitiño via All-commits all-commits at lists.llvm.org
Sat Sep 30 15:25:54 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: efb46515ce9bfcc1c51d935bfbf1c5680980b275
      https://github.com/llvm/llvm-project/commit/efb46515ce9bfcc1c51d935bfbf1c5680980b275
  Author: Daniel Rodríguez Troitiño <drodriguez at users.noreply.github.com>
  Date:   2023-09-30 (Sat, 30 Sep 2023)

  Changed paths:
    M llvm/include/llvm/Object/MachOUniversalWriter.h
    M llvm/lib/Object/MachOUniversalWriter.cpp
    A llvm/test/tools/llvm-lipo/create-fat64.test
    M llvm/tools/llvm-lipo/LipoOpts.td
    M llvm/tools/llvm-lipo/llvm-lipo.cpp

  Log Message:
  -----------
  [lipo] Support creating Universal 64 bit Mach-O files. (#67737)

Xcode `lipo` seems to support a non-documented `-fat64` option that
creates Universal Mach-O archives using 64 bit versions of the
`fat_arch` header, which allows offsets larger than 32 bits to be
specified.

Modify `llvm-lipo` to support the same flag, and use the value of the
flag to use either 32 bits or 64 bits Mach-O headers.

The Mach-O universal writer allows specifying a new option to write
these 64 bits headers. The default is still using 32 bits.

`dsymutil` implemented support for a similar flag in
https://reviews.llvm.org/D146879.




More information about the All-commits mailing list