• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1## This test makes sure that --strip-all and --strip-all-gnu preserve
2## .ARM.attributes sections in ELF files. This is needed to maintain
3## compatibility for Ubuntu/Debian distributions on ARM.
4
5# RUN: yaml2obj %s -o %t
6# RUN: llvm-objcopy --strip-all %t %t2
7# RUN: llvm-readobj --sections %t2 | FileCheck %s
8# RUN: llvm-objcopy --strip-all-gnu %t %t3
9# RUN: llvm-readobj --sections %t3 | FileCheck %s
10# RUN: llvm-strip %t -o %t4
11# RUN: cmp %t4 %t2
12# RUN: llvm-strip --strip-all-gnu %t -o %t5
13# RUN: cmp %t5 %t3
14
15!ELF
16FileHeader:
17  Class:           ELFCLASS32
18  Data:            ELFDATA2LSB
19  Type:            ET_DYN
20  Machine:         EM_ARM
21Sections:
22  - Name:            .ARM.attributes
23    Type:            SHT_ARM_ATTRIBUTES
24
25# CHECK: Name: .ARM.attributes
26