llvm-project/llvm/test/tools/llvm-objdump/MachO
Daniel Rodríguez Troitiño 652713e268 [MachO][ObjCopy] Handle exports trie in LC_DYLD_INFO and LC_DYLD_EXPORTS_TRIE
The exports trie used to be pointed by the information in LC_DYLD_INFO,
but when chained fixups are present, the exports trie is pointed by
LC_DYLD_EXPORTS_TRIE instead.

Modify ObjCopy code to calculate the right offset and size needed
depending on the existence of LC_DYLD_INFO or LC_DYLD_EXPORTS_TRIE, read
the exports from either of those places, and write the export
information as pointed to either of those places.

Depends on D134571.

Reviewed By: alexander-shaposhnikov

Differential Revision: https://reviews.llvm.org/D137879
2022-11-22 18:50:06 -08:00
..
AArch64 [llvm-objdump] Add --no-print-imm-hex to tests depending on it. 2022-10-29 15:40:26 -07:00
ARM
Inputs [objdump] Fix typo in error message. 2022-09-23 16:27:24 -07:00
LLVM-bundle.test
archive-headers.test
bad-bind.test
bad-dysymtab.test
bad-ordinal.test
bad-trie.test [objdump] Fix typo in error message. 2022-09-23 16:27:24 -07:00
bind.test [llvm-objdump][MachO] Print a newline before lazy bind/bind/weak/exports trie 2021-05-10 09:16:18 -07:00
bind2.test
build-version.yaml [llvm-otool] Make `llvm-otool -l` output compatible with otool for LC_BUILD_VERSION 2022-05-04 19:19:09 -04:00
chained-fixups.test [llvm-objdump] Complete -chained_fixups support 2022-08-24 19:29:11 +02:00
compact-unwind-i386.test
compact-unwind-x86_64.test
cstring-dump.test
data-in-code.ll
dis-no-leading-addr.test
dis-symname.test
disassemble-all.test [FileCheck] Catch missspelled directives. 2022-05-26 11:37:19 +01:00
disassemble-arm64-tlv-modifers.s [aarch64/mac] Correctly disassemble @TLVPPAGE(OFF) relocs 2021-11-10 10:41:18 -05:00
disassemble-g-dsym.test
disassemble-kextbundle.test
disassemble-relocs-data-x86_64.test
disassemble-source-dsym.test [objdump] Support finding --source via --dsym files 2022-10-04 11:15:51 -07:00
disassemble-stab.test
disassemble-stripped.test
disassemble-symbol-same-addr.test [llvm-objdump/mac] Print symbols at the same address deterministically 2021-06-30 22:38:07 -04:00
dyld-info.test [llvm-otool] Print dyld_info output before chained_fixup output 2022-08-30 11:03:30 -04:00
dylib.test
eh_frame-arm64.test
exports-trie-lc.test [MachO][ObjCopy] Handle exports trie in LC_DYLD_INFO and LC_DYLD_EXPORTS_TRIE 2022-11-22 18:50:06 -08:00
exports-trie.test [llvm-objdump][MachO] Print a newline before lazy bind/bind/weak/exports trie 2021-05-10 09:16:18 -07:00
function-starts.test [llvm-objdump/mac] Add new function starts print mode 2022-10-14 15:42:18 -07:00
hex-displacement.test
image-info.test
indirect-symbols.test
info-plist-nofollow.test
info-plist.test
lazy-bind.test [llvm-objdump][MachO] Print a newline before lazy bind/bind/weak/exports trie 2021-05-10 09:16:18 -07:00
lit.local.cfg
literal-pointers-i386.test
literal-pointers-x86_64.test
literals.test
maccatalyst-build-version.yaml
macho-objc-meta-data.test
malformed-machos.test
malformed-unwind-x86_64.test
malformed.test
no-text-symbols-disassembly.test [llvm-objdump] Exclude __mh_*_header symbols during MachO disassembly 2021-05-12 06:39:14 -07:00
nofirst-symbol-disassembly.test
nontext-disasm.test
objc-meta-data.test
preload-relocations.test
print-thread.test
private-header.test
private-headers.test
rebase.test [llvm-objdump][MachO] Print a newline before lazy bind/bind/weak/exports trie 2021-05-10 09:16:18 -07:00
relocations.test
rpaths.test llvm-objdump: add --rpaths to macho support 2021-04-22 16:01:10 -07:00
section-contents.test
section-headers.test [llvm-objdump] Improve newline consistency between different pieces of information 2021-05-04 09:56:07 -07:00
section.test
sections.test
stabs.test
stub-nosyms-disassembly.test
stubbed-dylib.test
symbol-table.test
symbolized-disassembly.test [demangler] No need to space adjacent template closings 2022-05-09 06:14:44 -07:00
symbolized-subtractor-i386.test
symbolized-subtractor.test
truncated-section.test
universal-arm64.test
universal-x86_64.i386.test
unwind-info-arm64.test
unwind-info-excess-x86_64.test
unwind-info-no-relocs.test
unwind-info-x86_64.test
unwind-info.test
weak-bind.test