[all-commits] [llvm/llvm-project] 7a836b: [llvm-objcopy][MachO] Ignore LC_LINKER_OPTION when...

Keith Smiley via All-commits all-commits at lists.llvm.org
Mon Jan 31 15:50:08 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7a836ba3c5f2bdbd8b802a205f21b477ef91963d
      https://github.com/llvm/llvm-project/commit/7a836ba3c5f2bdbd8b802a205f21b477ef91963d
  Author: Keith Smiley <keithbsmiley at gmail.com>
  Date:   2022-01-31 (Mon, 31 Jan 2022)

  Changed paths:
    M llvm/test/tools/llvm-objcopy/MachO/redefine-symbol.s
    M llvm/tools/llvm-objcopy/MachO/MachOLayoutBuilder.cpp

  Log Message:
  -----------
  [llvm-objcopy][MachO] Ignore LC_LINKER_OPTION when redefining symbols

Previously you would get this error:

```
error: unsupported load command (cmd=0x2d)
```

If the binary you were redefining the symbols of contained a
LC_LINKER_OPTION load command. This command does not need to be changed
when redefining symbols so we can ignore it like many others.

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




More information about the All-commits mailing list