llvm-for-llvmta/test/tools/llvm-objcopy/MachO/real-world-input-copy.test

16 lines
740 B
Plaintext
Raw Permalink Normal View History

2022-04-25 10:02:23 +02:00
# 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