xref: /llvm-project/lld/test/ELF/file-access.s (revision 17d71c014cdd93a71b9c6801c7da3344f893ba97)
1# REQUIRES: x86, shell
2
3# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
4# RUN: ld.lld -r %t.o -o %t1.o
5# RUN: [ ! -x %t1.o ]
6# RUN: ld.lld -shared %t.o -o %t2.so
7# RUN: [ -x %t2.so ]
8# RUN: ld.lld %t.o -o %t3
9# RUN: [ -x %t3 ]
10
11.global _start
12_start:
13  nop
14