33 lines · plain
1# REQUIRES: x862 3# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o4# RUN: ld.lld %t.o -o %t15#RUN: llvm-objdump --section-headers %t1 | FileCheck %s --check-prefix BEFORE6#BEFORE: .symtab7#BEFORE-NEXT: .shstrtab8#BEFORE-NEXT: .strtab9 10#RUN: ld.lld %t.o --strip-all -o %t111#RUN: llvm-objdump --section-headers %t1 | FileCheck %s --check-prefix AFTER12#AFTER-NOT: .symtab13#AFTER: .shstrtab14#AFTER-NOT: .strtab15 16# Ignore --strip-all if -r is specified17#RUN: ld.lld %t.o --strip-all -r -o %t118#RUN: llvm-objdump --section-headers %t1 | FileCheck %s --check-prefix BEFORE19 20# Test alias -s21#RUN: ld.lld %t.o -s -o %t122#RUN: llvm-objdump --section-headers %t1 | FileCheck %s --check-prefix AFTER23 24# RUN: not ld.lld %t.o --strip-all --emit-relocs -o /dev/null 2>&1 | FileCheck --check-prefix=ERR %s25# ERR: error: --strip-all and --emit-relocs may not be used together26 27# exits with return code 42 on linux28.globl _start29_start:30 mov $60, %rax31 mov $42, %rdi32 syscall33