llvm.org GIT mirror llvm / 72ae258
[llvm-objcopy] [COFF] Remove pointless comment chars from .test files. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@351173 91177308-0d34-0410-b5e6-96231b3b80d8 Martin Storsjo 10 months ago
2 changed file(s) with 30 addition(s) and 30 deletion(s). Raw diff Collapse all Expand all
None # RUN: yaml2obj %p/Inputs/strip-symbols.yaml > %t.o
1 # RUN: not llvm-objcopy -N foo %t.o 2>&1 | FileCheck %s --check-prefix=ERROR
2 # RUN: not llvm-objcopy --strip-symbol foo %t.o 2>&1 | FileCheck %s --check-prefix=ERROR
0 RUN: yaml2obj %p/Inputs/strip-symbols.yaml > %t.o
1 RUN: not llvm-objcopy -N foo %t.o 2>&1 | FileCheck %s --check-prefix=ERROR
2 RUN: not llvm-objcopy --strip-symbol foo %t.o 2>&1 | FileCheck %s --check-prefix=ERROR
33
4 # ERROR: error: '{{.*}}{{/|\\}}strip-reloc-symbol.test.tmp.o': not stripping symbol 'foo' because it is named in a relocation.
4 ERROR: error: '{{.*}}{{/|\\}}strip-reloc-symbol.test.tmp.o': not stripping symbol 'foo' because it is named in a relocation.
None # RUN: yaml2obj %p/Inputs/strip-symbols.yaml > %t.in.o
0 RUN: yaml2obj %p/Inputs/strip-symbols.yaml > %t.in.o
11
2 # RUN: llvm-readobj -relocations %t.in.o | FileCheck %s --check-prefixes=RELOCS,RELOCS-PRE
3 # RUN: llvm-objdump -t %t.in.o | FileCheck %s --check-prefixes=SYMBOLS,SYMBOLS-PRE
2 RUN: llvm-readobj -relocations %t.in.o | FileCheck %s --check-prefixes=RELOCS,RELOCS-PRE
3 RUN: llvm-objdump -t %t.in.o | FileCheck %s --check-prefixes=SYMBOLS,SYMBOLS-PRE
44
5 # RUN: llvm-objcopy -N mainfunc %t.in.o %t.out.o
6 # RUN: llvm-readobj -relocations %t.out.o | FileCheck %s --check-prefixes=RELOCS,RELOCS-POST
7 # RUN: llvm-objdump -t %t.out.o | FileCheck %s --check-prefix=SYMBOLS
5 RUN: llvm-objcopy -N mainfunc %t.in.o %t.out.o
6 RUN: llvm-readobj -relocations %t.out.o | FileCheck %s --check-prefixes=RELOCS,RELOCS-POST
7 RUN: llvm-objdump -t %t.out.o | FileCheck %s --check-prefix=SYMBOLS
88
9 # RUN: llvm-objcopy --strip-symbol mainfunc %t.in.o %t.out.o
10 # RUN: llvm-readobj -relocations %t.out.o | FileCheck %s --check-prefixes=RELOCS,RELOCS-POST
11 # RUN: llvm-objdump -t %t.out.o | FileCheck %s --check-prefix=SYMBOLS
9 RUN: llvm-objcopy --strip-symbol mainfunc %t.in.o %t.out.o
10 RUN: llvm-readobj -relocations %t.out.o | FileCheck %s --check-prefixes=RELOCS,RELOCS-POST
11 RUN: llvm-objdump -t %t.out.o | FileCheck %s --check-prefix=SYMBOLS
1212
13 # Explicitly listing the relocations for the input as well, to show
14 # that the symbol index of the symbol foo is updated in the relocations,
15 # while keeping relocations to two distinct .rdata symbols separate.
13 Explicitly listing the relocations for the input as well, to show
14 that the symbol index of the symbol foo is updated in the relocations,
15 while keeping relocations to two distinct .rdata symbols separate.
1616
17 # RELOCS: Relocations [
18 # RELOCS-NEXT: Section (1) .text {
19 # RELOCS-NEXT: 0x3 IMAGE_REL_AMD64_REL32 .rdata (0)
20 # RELOCS-NEXT: 0xA IMAGE_REL_AMD64_REL32 .rdata (1)
21 # RELOCS-PRE-NEXT: 0x11 IMAGE_REL_AMD64_REL32 foo (3)
22 # RELOCS-POST-NEXT: 0x11 IMAGE_REL_AMD64_REL32 foo (2)
23 # RELOCS-NEXT: }
24 # RELOCS-NEXT: ]
17 RELOCS: Relocations [
18 RELOCS-NEXT: Section (1) .text {
19 RELOCS-NEXT: 0x3 IMAGE_REL_AMD64_REL32 .rdata (0)
20 RELOCS-NEXT: 0xA IMAGE_REL_AMD64_REL32 .rdata (1)
21 RELOCS-PRE-NEXT: 0x11 IMAGE_REL_AMD64_REL32 foo (3)
22 RELOCS-POST-NEXT: 0x11 IMAGE_REL_AMD64_REL32 foo (2)
23 RELOCS-NEXT: }
24 RELOCS-NEXT: ]
2525
26 # SYMBOLS: SYMBOL TABLE:
27 # SYMBOLS-NEXT: .rdata
28 # SYMBOLS-NEXT: .rdata
29 # SYMBOLS-PRE-NEXT: mainfunc
30 # SYMBOLS-NEXT: foo
31 # SYMBOLS-EMPTY:
26 SYMBOLS: SYMBOL TABLE:
27 SYMBOLS-NEXT: .rdata
28 SYMBOLS-NEXT: .rdata
29 SYMBOLS-PRE-NEXT: mainfunc
30 SYMBOLS-NEXT: foo
31 SYMBOLS-EMPTY: