llvm-project/llvm/test/tools/llvm-objcopy/MachO
Daniel Rodríguez Troitiño d6704e5ed9 [llvm-objcopy][MachO] Ignore all LC_SUB_* commands.
The LC_SUB_FRAMEWORK, LC_SUB_UMBRELLA, LC_SUB_CLIENT, and LC_SUB_LIBRARY
are used to indicate related libraries, binaries or framework names.
Their only payload is the string with the name of the object. Adding
those commands to the list of ignored/skipped load commands will avoid
an error that stop the process of copying/stripping and will copy their
contents verbatim.

Additionally, in order to have a test for this case, `yaml2obj` now
allows those four commands to contain a `Content`.

Differential Revision: https://reviews.llvm.org/D106412
2021-07-28 17:35:26 -07:00
..
Inputs [yaml2obj][MachO] Rename PayloadString to Content 2021-07-26 09:04:51 -07:00
add-multiple-sections.test
add-section-32.test
add-section-64.test
add-section-error.test
arm64-relocs.s [llvm-objcopy][MachO] Support ARM64_RELOC_ADDEND 2021-06-29 11:23:30 -07:00
basic-big-endian-32-copy.test
basic-big-endian-64-copy.test
basic-executable-copy.test [yaml2obj][MachO] Rename PayloadString to Content 2021-07-26 09:04:51 -07:00
basic-little-endian-32-copy.test
basic-little-endian-64-copy.test
code_signature_lc.test
discard-all.test
dump-section-before-add-remove.test
dump-section.test
encrypt_info_64_lc.test
encrypt_info_lc.test
indirect-symbol-table-copy.s
install-name-tool-add-rpath.test
install-name-tool-change.test [yaml2obj][MachO] Rename PayloadString to Content 2021-07-26 09:04:51 -07:00
install-name-tool-delete-rpath.test [yaml2obj][MachO] Rename PayloadString to Content 2021-07-26 09:04:51 -07:00
install-name-tool-id.test [yaml2obj][MachO] Rename PayloadString to Content 2021-07-26 09:04:51 -07:00
install-name-tool-prepend-rpath.test
install-name-tool-rpath.test [yaml2obj][MachO] Rename PayloadString to Content 2021-07-26 09:04:51 -07:00
keep-undefined.test
lc-linker-optimization-hint.s [llvm-objcopy][MachO] Support LC_LINKER_OPTIMIZATION_HINT load command 2021-06-29 18:47:55 -07:00
lc-load-weak-dylib.test [yaml2obj][MachO] Rename PayloadString to Content 2021-07-26 09:04:51 -07:00
lc-thread.test [llvm-objcopy][MachO] Add support for LC_THREAD/LC_UNIXTHREAD 2021-04-28 16:29:33 -07:00
min-version-load-commands.test
only-section.test
real-world-input-copy.test
redefine-symbol.s
relocations.test
remove-lc-index-update.test [yaml2obj][MachO] Rename PayloadString to Content 2021-07-26 09:04:51 -07:00
remove-section-dead-symbols.test
remove-section-error.test
remove-section.test
remove-swift-symbols.test [test] Avoid llvm-readelf/llvm-readobj one-dash long options and deprecated aliases (e.g. --file-headers) 2021-07-15 10:26:21 -07:00
segment-size-alignment.test [yaml2obj][MachO] Rename PayloadString to Content 2021-07-26 09:04:51 -07:00
segments-vmsize.test [yaml2obj][MachO] Rename PayloadString to Content 2021-07-26 09:04:51 -07:00
strip-all.test [llvm-objcopy][MachO] Do not strip symbols with the flag REFERENCED_DYNAMICALLY set 2021-06-11 16:34:59 -07:00
strip-debug.test
sub-load-commands.test [llvm-objcopy][MachO] Ignore all LC_SUB_* commands. 2021-07-28 17:35:26 -07:00
symbol-table.test [llvm-readobj] Recognize N_THUMB_DEF as a symbol flag 2021-04-30 17:39:56 -04:00
universal-object.test
virtual-section.test
zero-offset-section.test