Skip to content

Commit 4672e52

Browse files
committed
[llvm-readobj] llvm-readobj --elf-output-style=GNU => llvm-readelf
While updating the test, change -l -S to -S -l as the output of -S goes before -l. llvm-svn: 359653
1 parent 97c17e8 commit 4672e52

20 files changed

+27
-27
lines changed

lld/test/ELF/eh-frame-padding-no-rosegment.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ bar:
3535
// RUN: ld.lld --hash-style=sysv %t.o -no-rosegment -o %t -shared
3636

3737
// Check that .eh_frame is in the same segment as .text
38-
// RUN: llvm-readobj -l --elf-output-style=GNU %t | FileCheck --check-prefix=PHDR %s
38+
// RUN: llvm-readelf -l %t | FileCheck --check-prefix=PHDR %s
3939

4040
// PHDR: Segment Sections
4141
// PHDR: .eh_frame {{.*}}.text

lld/test/ELF/empty-pt-load.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// REQUIRES: x86
22
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
33
// RUN: ld.lld %t.o -o %t.so -shared
4-
// RUN: llvm-readobj -l --elf-output-style=GNU %t.so | FileCheck %s
4+
// RUN: llvm-readelf -l %t.so | FileCheck %s
55

66
// Test that we don't create an empty executable PT_LOAD.
77

lld/test/ELF/gc-sections-keep-shared-start.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
44
# RUN: ld.lld -shared --gc-sections -o %t1 %t
5-
# RUN: llvm-readobj --elf-output-style=GNU --file-headers --symbols %t1
5+
# RUN: llvm-readelf --file-headers --symbols %t1
66
# | FileCheck %s
77
# CHECK: Entry point address: 0x1000
88
# CHECK: 0000000000001000 0 FUNC LOCAL HIDDEN 4 _start

lld/test/ELF/gc-sections-non-alloc-to-merge.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
44
# RUN: ld.lld %t.o -o %t --gc-sections
5-
# RUN: llvm-readobj -S --elf-output-style=GNU %t | FileCheck %s
5+
# RUN: llvm-readelf -S %t | FileCheck %s
66

77
# CHECK: .merge1 PROGBITS {{[0-9a-z]*}} {{[0-9a-z]*}} 000004
88

lld/test/ELF/linkerscript/extend-pt-load1.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# REQUIRES: x86
22
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/extend-pt-load.s -o %t.o
33
# RUN: ld.lld --hash-style=sysv -o %t1 --script %s %t.o -shared
4-
# RUN: llvm-readobj --elf-output-style=GNU -l -S %t1 | FileCheck %s
4+
# RUN: llvm-readelf -S -l %t1 | FileCheck %s
55

66
# This test demonstrates an odd consequence of the way we handle sections with just symbol
77
# assignments.

lld/test/ELF/linkerscript/extend-pt-load2.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# REQUIRES: x86
22
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/extend-pt-load.s -o %t.o
33
# RUN: ld.lld --hash-style=sysv -o %t2 --script %s %t.o -shared
4-
# RUN: llvm-readobj --elf-output-style=GNU -l -S %t2 | FileCheck %s
4+
# RUN: llvm-readelf -S -l %t2 | FileCheck %s
55

66
# Then add the section bar. Note how bar is given AX flags, which causes the PT_LOAD to now
77
# cover the padding bits created by ALIGN.

lld/test/ELF/linkerscript/extend-pt-load3.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# REQUIRES: x86
22
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/extend-pt-load.s -o %t.o
33
# RUN: ld.lld --hash-style=sysv -o %t3 --script %s %t.o -shared
4-
# RUN: llvm-readobj --elf-output-style=GNU -l -S %t3 | FileCheck --check-prefix=CHECK %s
4+
# RUN: llvm-readelf -S -l %t3 | FileCheck --check-prefix=CHECK %s
55

66
# If the current behavior becomes a problem we should consider just moving the commands out
77
# of the section. That is, handle the above like the following test.

lld/test/ELF/linkerscript/header-phdr.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# RUN: echo '.section .zed, "a"; .zero 4' \
33
# RUN: | llvm-mc -filetype=obj -triple=x86_64-unknown-linux - -o %t.o
44
# RUN: ld.lld --script %s %t.o -o %t
5-
# RUN: llvm-readelf -l -S -W %t | FileCheck %s
5+
# RUN: llvm-readelf -S -l -W %t | FileCheck %s
66

77
# CHECK: [ 1] .abc PROGBITS 0000000000001000 001000 000004 00 A 0 0 1
88
# CHECK: LOAD 0x000000 0x0000000000000000 0x0000000000000000 0x001004 0x001004 R E 0x1000

lld/test/ELF/linkerscript/multiple-tbss.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
33
# RUN: echo "SECTIONS { }" > %t.script
44
# RUN: ld.lld -T %t.script %t.o -o %t
5-
# RUN: llvm-readobj -l -S %t | FileCheck %s
5+
# RUN: llvm-readobj -S -l %t | FileCheck %s
66

77
# CHECK: Name: .tbss
88
# CHECK-NEXT: Type: SHT_NOBITS

lld/test/ELF/linkerscript/overlapping-sections.s

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
# Verify that the .sec2 was indeed placed in a PT_LOAD where the PhysAddr
1919
# overlaps with where .sec1 is loaded:
20-
# RUN: llvm-readobj --sections -l --elf-output-style=GNU %t.so | FileCheck %s -check-prefix BAD-LMA
20+
# RUN: llvm-readelf --sections -l %t.so | FileCheck %s -check-prefix BAD-LMA
2121
# BAD-LMA-LABEL: Section Headers:
2222
# BAD-LMA: .sec1 PROGBITS 0000000000008000 002000 000100 00 WA 0 0 1
2323
# BAD-LMA: .sec2 PROGBITS 0000000000008800 002800 000100 00 WA 0 0 1
@@ -43,7 +43,7 @@
4343

4444
# Check that the expected binary was created with --noinhibit-exec:
4545
# RUN: ld.lld -o %t.so --script %t-vaddr.script %t.o -shared --noinhibit-exec
46-
# RUN: llvm-readobj --sections -l --elf-output-style=GNU %t.so | FileCheck %s -check-prefix BAD-VADDR
46+
# RUN: llvm-readelf --sections -l %t.so | FileCheck %s -check-prefix BAD-VADDR
4747
# BAD-VADDR-LABEL: Section Headers:
4848
# BAD-VADDR: .sec1 PROGBITS 0000000000008000 002000 000100 00 WA 0 0 1
4949
# BAD-VADDR: .sec2 PROGBITS 0000000000008020 003020 000100 00 WA 0 0 1
@@ -91,7 +91,7 @@
9191
# Starting here the contents of .sec2 overwrites .sec1:
9292
# BROKEN-OUTPUT-FILE-NEXT: 8040 02020202 02020202 02020202 02020202
9393

94-
# RUN: llvm-readobj --sections -l --elf-output-style=GNU %t.so | FileCheck %s -check-prefix BAD-BOTH
94+
# RUN: llvm-readelf --sections -l %t.so | FileCheck %s -check-prefix BAD-BOTH
9595
# BAD-BOTH-LABEL: Section Headers:
9696
# BAD-BOTH: .sec1 PROGBITS 0000000000008000 002000 000100 00 WA 0 0 1
9797
# BAD-BOTH: .sec2 PROGBITS 0000000000008040 002040 000100 00 WA 0 0 1

0 commit comments

Comments
 (0)