You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
566 B

## 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
...