1 # REQUIRES: aarch64-registered-target
2 # RUN: llvm-mc -triple=x86_64 %s | FileCheck %s --check-prefix=ASM
3 # RUN: llvm-mc -filetype=obj -triple=x86_64 %s | llvm-readobj -hS - | FileCheck %s --check-prefixes=GNU,OBJ,OBJ-GNU
4 # RUN: llvm-mc -filetype=obj -triple=aarch64-freebsd %s | llvm-readobj -hS - | FileCheck %s --check-prefixes=FREEBSD,OBJ,OBJ-GNU
5 # RUN: llvm-mc -filetype=obj -triple=x86_64-solaris %s | llvm-readobj -hS - | FileCheck %s --check-prefixes=SOLARIS,OBJ,OBJ-SOLARIS
7 # ASM: .section retain,"aR",@progbits
9 ## ELFOSABI_NONE is changed to ELFOSABI_GNU. Other OSABI values are unchanged.
10 # GNU: OS/ABI: GNU/Linux
11 # FREEBSD: OS/ABI: FreeBSD
12 # SOLARIS: OS/ABI: Solaris
15 # OBJ-NEXT: Type: SHT_PROGBITS
18 # OBJ-GNU-NEXT: SHF_GNU_RETAIN
19 # OBJ-SOLARIS-NEXT: SHF_SUNW_NODISCARD
22 .section retain,"aR",@progbits