[all-commits] [llvm/llvm-project] 334a57: [llvm-objcopy] Add support of symbol modification ...

Richard Dzenis via All-commits all-commits at lists.llvm.org
Tue Dec 24 06:05:32 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 334a5766d7591bfaadf6990b3d8568c9688e22a5
      https://github.com/llvm/llvm-project/commit/334a5766d7591bfaadf6990b3d8568c9688e22a5
  Author: Richard Dzenis <richard at dzenis.dev>
  Date:   2024-12-24 (Tue, 24 Dec 2024)

  Changed paths:
    M llvm/docs/CommandGuide/llvm-objcopy.rst
    M llvm/docs/ReleaseNotes.md
    M llvm/lib/ObjCopy/ConfigManager.cpp
    M llvm/lib/ObjCopy/MachO/MachOObjcopy.cpp
    M llvm/lib/ObjCopy/MachO/MachOObject.cpp
    M llvm/lib/ObjCopy/MachO/MachOObject.h
    A llvm/test/tools/llvm-objcopy/MachO/globalize-symbol.test
    A llvm/test/tools/llvm-objcopy/MachO/keep-global-symbol.test
    A llvm/test/tools/llvm-objcopy/MachO/localize-symbol.test
    A llvm/test/tools/llvm-objcopy/MachO/skip-symbol.test

  Log Message:
  -----------
  [llvm-objcopy] Add support of symbol modification flags for MachO (#120895)

This patch adds support of the following llvm-objcopy flags for MachO:

- `--globalize-symbol`, `--globalize-symbols`,
- `--keep-global-symbol`, `-G`, `--keep-global-symbols`,
- `--localize-symbol`, `-L`, `--localize-symbols`,
- `--skip-symbol`, `--skip-symbols`.

Code in `updateAndRemoveSymbols` for MachO
is kept similar to its version for ELF.

Fixes #120894



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list