bolt/deps/llvm-18.1.8/llvm/test/tools/llvm-objcopy/MachO/real-world-input-copy.test
2025-02-14 19:21:04 +01:00

15 lines
740 B
Text

# RUN: llvm-mc -assemble -triple i386-apple-darwin9 -filetype=obj %p/Inputs/macho.32.s -o %t.32.o
# RUN: llvm-objcopy %t.32.o %t.32.copy.o
# RUN: cmp %t.32.o %t.32.copy.o
# RUN: llvm-mc -assemble -triple x86_64-apple-darwin9 -filetype=obj %p/Inputs/macho.64.s -o %t.64.o
# RUN: llvm-objcopy %t.64.o %t.64.copy.o
# RUN: cmp %t.64.o %t.64.copy.o
# Make sure that it properly constructs LC_DYSYMTAB and handles virtual sections
# (the bss section for example).
# RUN: llvm-mc -assemble -triple x86_64-apple-darwin9 -filetype=obj %p/Inputs/various-symbols.s -o %t.various-symbols.o
# RUN: llvm-objcopy %t.various-symbols.o %t.various-symbols.copy.o
# RUN: cmp %t.various-symbols.o %t.various-symbols.copy.o
# REQUIRES: x86-registered-target