llvm-for-llvmta/test/tools/llvm-ar/mri-addmod.test

28 lines
566 B
Plaintext
Raw Permalink Normal View History

2022-04-25 10:02:23 +02:00
## Test the ADDMOD MRI command.
# RUN: rm -rf %t && mkdir -p %t
# RUN: yaml2obj %s -o %t/f.o
# RUN: echo "CREATE %t/addmod.a" > %t/addmod.mri
# RUN: echo "ADDMOD %t/f.o" >> %t/addmod.mri
# RUN: echo "SAVE" >> %t/addmod.mri
# RUN: llvm-ar -M < %t/addmod.mri
# RUN: llvm-nm --print-armap %t/addmod.a | FileCheck %s
# CHECK: f in f.o
--- !ELF
FileHeader:
Class: ELFCLASS64
Data: ELFDATA2LSB
Type: ET_REL
Machine: EM_X86_64
Sections:
- Name: .text
Type: SHT_PROGBITS
Symbols:
- Name: f
Binding: STB_GLOBAL
Section: .text
...