File tree 13 files changed +15
-15
lines changed
13 files changed +15
-15
lines changed Original file line number Diff line number Diff line change 1
1
# REQUIRES: x86
2
2
# RUN: llvm-mc -filetype=obj -triple=i686-pc-linux %s -o %t.o
3
3
# RUN: ld.lld %t.o -o %t -pie
4
- # RUN: llvm-readelf -r -s %t | FileCheck %s
4
+ # RUN: llvm-readelf -r -S %t | FileCheck %s
5
5
6
6
# Unlike bfd and gold we accept this.
7
7
Original file line number Diff line number Diff line change 4
4
5
5
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/align.s -o %t1.o
6
6
# RUN: ld.lld -r -o %t2.o --script %s %t1.o
7
- # RUN: llvm-readelf -s %t2.o | FileCheck %s
7
+ # RUN: llvm-readelf -S %t2.o | FileCheck %s
8
8
9
9
# CHECK: Section Headers:
10
10
# CHECK-NEXT: Name Type Address Off Size ES Flg Lk Inf Al
Original file line number Diff line number Diff line change 16
16
# RUN: .foo : {*(.foo)} :foo \
17
17
# RUN: }" > %t.script
18
18
# RUN: ld.lld -o %t --script %t.script %t.o
19
- # RUN: llvm-readelf -s -l %t | FileCheck %s
19
+ # RUN: llvm-readelf -S -l %t | FileCheck %s
20
20
# RUN: llvm-readobj -l %t | FileCheck --check-prefix=PHDR %s
21
21
22
22
# CHECK: Program Headers:
Original file line number Diff line number Diff line change 3
3
4
4
# RUN: echo "SECTIONS { .foo 0 : {*(foo)} }" > %t.script
5
5
# RUN: ld.lld --hash-style=sysv -o %t --script %t.script %t.o -shared
6
- # RUN: llvm-readelf -s -l %t | FileCheck %s
6
+ # RUN: llvm-readelf -S -l %t | FileCheck %s
7
7
8
8
# Test that we create all necessary PT_LOAD. We use to stop at the first
9
9
# non-alloc, causing us to not create PT_LOAD for linker generated sections.
Original file line number Diff line number Diff line change 10
10
# RUN: /DISCARD/ : { *(.comment) } \
11
11
# RUN: }" > %t.script
12
12
# RUN: ld.lld -o %t --script %t.script %t.o
13
- # RUN: llvm-readelf -s -symbols %t | FileCheck %s
13
+ # RUN: llvm-readelf -S -symbols %t | FileCheck %s
14
14
15
15
# CHECK: .bss NOBITS ffffffff80002000 002008 000002 00 WA 0 0 4096
16
16
# CHECK: ffffffff80003000 0 NOTYPE GLOBAL DEFAULT 3 _end
Original file line number Diff line number Diff line change 10
10
# RUN: .rw : { *(.rw) } \
11
11
# RUN: }" > %t.script
12
12
# RUN: ld.lld -o %t --script %t.script %t.o
13
- # RUN: llvm-readelf -s -l %t | FileCheck %s
13
+ # RUN: llvm-readelf -S -l %t | FileCheck %s
14
14
15
15
## Check that the orphan section is placed correctly and belongs to
16
16
## the correct segment.
Original file line number Diff line number Diff line change 9
9
# RUN: .foo : {*(.foo)} :NONE \
10
10
# RUN: }" > %t.script
11
11
# RUN: ld.lld -o %t --script %t.script %t.o
12
- # RUN: llvm-readelf -s -l %t | FileCheck %s
12
+ # RUN: llvm-readelf -S -l %t | FileCheck %s
13
13
14
14
## Test that section .foo is placed in segment NONE when assigned to segment
15
15
## NONE in the linker script and segment NONE is defined.
19
19
# RUN: .foo : {*(.foo)} :NONE \
20
20
# RUN: }" > %t.script
21
21
# RUN: ld.lld -o %t --script %t.script %t.o
22
- # RUN: llvm-readelf -s -l %t | FileCheck --check-prefix=DEFINED %s
22
+ # RUN: llvm-readelf -S -l %t | FileCheck --check-prefix=DEFINED %s
23
23
24
24
# CHECK: Section to Segment mapping:
25
25
# CHECK-NEXT: Segment Sections...
Original file line number Diff line number Diff line change 3
3
4
4
# RUN: echo "SECTIONS { foo : {*(foo)} }" > %t.script
5
5
# RUN: ld.lld --hash-style=sysv -o %t --script %t.script %t.o -shared
6
- # RUN: llvm-readelf -s %t | FileCheck %s
6
+ # RUN: llvm-readelf -S %t | FileCheck %s
7
7
8
8
# CHECK: .dynsym {{.*}} A
9
9
# CHECK-NEXT: .hash {{.*}} A
Original file line number Diff line number Diff line change 7
7
# RUN: }" > %t.script
8
8
# RUN: ld.lld -shared -o %t.so --script %t.script %t.o
9
9
10
- # RUN: llvm-readelf -s %t.so | FileCheck %s
10
+ # RUN: llvm-readelf -S %t.so | FileCheck %s
11
11
# CHECK-NOT: .got
12
12
# CHECK-NOT: .plt
13
13
# CHECK: .dynsym
Original file line number Diff line number Diff line change 1
1
; REQUIRES: x86
2
2
; RUN: llvm-as %s -o %t.o
3
3
; RUN: ld.lld %t.o -o %t.so -shared
4
- ; RUN: llvm-readelf -s %t.so | FileCheck %s
4
+ ; RUN: llvm-readelf -S %t.so | FileCheck %s
5
5
; RUN: ld.lld %t.o -o %t.so -shared --gc-sections
6
- ; RUN: llvm-readelf -s %t.so | FileCheck --check-prefix=GC %s
6
+ ; RUN: llvm-readelf -S %t.so | FileCheck --check-prefix=GC %s
7
7
8
8
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
9
9
target triple = "x86_64-unknown-linux-gnu"
Original file line number Diff line number Diff line change 2
2
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
3
3
4
4
# RUN: ld.lld --hash-style=sysv -no-rosegment -o %t %t.o -shared
5
- # RUN: llvm-readelf -s %t | FileCheck %s
5
+ # RUN: llvm-readelf -S %t | FileCheck %s
6
6
7
7
# CHECK: .dynsym {{.*}} A
8
8
# CHECK-NEXT: .hash {{.*}} A
Original file line number Diff line number Diff line change 1
1
// REQUIRES: x86
2
2
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
3
3
// RUN: ld.lld %t.o -shared -o %t.so
4
- // RUN: llvm-readelf -s %t.so | FileCheck %s -check-prefix=SECTION
4
+ // RUN: llvm-readelf -S %t.so | FileCheck %s -check-prefix=SECTION
5
5
// RUN: llvm-objdump -d %t.so | FileCheck %s
6
6
7
7
// SECTION: .dynamic DYNAMIC 0000000000003000
Original file line number Diff line number Diff line change 1
1
// REQUIRES: x86
2
2
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
3
3
// RUN: ld.lld %t.o -shared -o %t.so
4
- // RUN: llvm-readelf -s %t.so | FileCheck %s -check-prefix=SECTION
4
+ // RUN: llvm-readelf -S %t.so | FileCheck %s -check-prefix=SECTION
5
5
// RUN: llvm-objdump -d %t.so | FileCheck %s
6
6
7
7
// SECTION: .got PROGBITS 0000000000003070 003070 000000
You can’t perform that action at this time.
0 commit comments