brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.9 KiB · 1f6d066 Raw
71 lines · plain
1# RUN: yaml2obj %s -o %t2# RUN: llvm-objcopy --strip-symbol baz -N bar %t %t23# RUN: llvm-readobj --symbols --sections %t2 | FileCheck %s4# RUN: llvm-strip --strip-symbol baz -N bar %t -o %t35# RUN: cmp %t2 %t36# RUN: llvm-objcopy --regex --strip-symbol '^b.*' -N bar %t %t47# RUN: cmp %t2 %t48# RUN: llvm-strip --regex --strip-symbol '^b.*' -N bar %t -o %t59# RUN: cmp %t3 %t510# RUN: echo " bar # bar" > %t-list.txt11# RUN: echo " baz # baz" >> %t-list.txt12# RUN: echo " # no symbol" >> %t-list.txt13# RUN: llvm-objcopy --strip-symbols %t-list.txt %t %t614# RUN: cmp %t3 %t615# RUN: echo "b.* # bar & baz" > %t-list2.txt16# RUN: llvm-objcopy --regex --strip-symbols %t-list2.txt %t %t717# RUN: cmp %t3 %t718 19!ELF20FileHeader:21  Class:           ELFCLASS6422  Data:            ELFDATA2LSB23  Type:            ET_REL24  Machine:         EM_X86_6425Sections:26  - Name:            .text27    Type:            SHT_PROGBITS28    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]29    Address:         0x100030    AddressAlign:    0x000000000000001031    Size:            6432Symbols:33  - Name:     foo34    Type:     STT_FUNC35    Section:  .text36    Value:    0x100037    Size:     838  - Name:     bar39    Type:     STT_FUNC40    Size:     841    Section:  .text42    Value:    0x100843    Binding:  STB_WEAK44  - Name:     baz45    Type:     STT_FUNC46    Size:     847    Section:  .text48    Value:    0x101049    Binding:  STB_GLOBAL50 51#CHECK: Symbols [52#CHECK-NEXT:  Symbol {53#CHECK-NEXT:    Name:54#CHECK-NEXT:    Value: 0x055#CHECK-NEXT:    Size: 056#CHECK-NEXT:    Binding: Local57#CHECK-NEXT:    Type: None58#CHECK-NEXT:    Other: 059#CHECK-NEXT:    Section: Undefined60#CHECK-NEXT:  }61#CHECK-NEXT:  Symbol {62#CHECK-NEXT:    Name: foo63#CHECK-NEXT:    Value: 0x100064#CHECK-NEXT:    Size: 865#CHECK-NEXT:    Binding: Local66#CHECK-NEXT:    Type: Function67#CHECK-NEXT:    Other: 068#CHECK-NEXT:    Section: .text69#CHECK-NEXT:  }70#CHECK-NEXT:]71