# REQUIRES: arm
# RUN: yaml2obj %s -o %t.o
# RUN: ld.lld %t.o -o %t
-# RUN: llvm-readelf -sections %t | FileCheck %s
+# RUN: llvm-readelf -S %t | FileCheck %s
# RUN: ld.lld -shared %t.o -o %t
-# RUN: llvm-readelf -sections %t | FileCheck %s
+# RUN: llvm-readelf -S %t | FileCheck %s
# CHECK: .text
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t2.o
# RUN: ld.lld -o %t.exe %t2.o --as-needed %t1.so
-# RUN: llvm-readelf -dynamic-table -dyn-symbols %t.exe | FileCheck %s
+# RUN: llvm-readelf -d --dyn-syms %t.exe | FileCheck %s
# CHECK-NOT: libfoo
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t2.o
# RUN: ld.lld -shared -o %t.so --dynamic-list %t.list %t.a %t2.o
-# RUN: llvm-readelf -dyn-symbols %t.so | FileCheck %s
+# RUN: llvm-readelf --dyn-syms %t.so | FileCheck %s
# CHECK-NOT: foo
.global _start
# RUN: llvm-objdump -d %t | FileCheck %s --check-prefix=DISASM
# RUN: llvm-dwarfdump -gdb-index %t | FileCheck %s --check-prefix=DWARF
-# RUN: llvm-readelf -sections %t | FileCheck %s --check-prefix=SECTION
+# RUN: llvm-readelf -S %t | FileCheck %s --check-prefix=SECTION
# DISASM: Disassembly of section .text:
# DISASM-EMPTY:
# RUN: ld.lld %t.o -o %t1.exe -Ttext=0x10000
# RUN: ld.lld -just-symbols=%t1.exe -o %t2.exe
-# RUN: llvm-readelf -symbols %t2.exe | FileCheck %s
+# RUN: llvm-readelf -s %t2.exe | FileCheck %s
# CHECK: 0000000000010000 0 NOTYPE GLOBAL DEFAULT ABS foo
# CHECK: 0000000000011001 40 OBJECT GLOBAL DEFAULT ABS bar
# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/at3.s -o %t.o
# RUN: ld.lld %t.o --script %s -o %t
-# RUN: llvm-readelf -sections -program-headers %t | FileCheck %s
+# RUN: llvm-readelf -S -l %t | FileCheck %s
MEMORY {
FOO (ax) : ORIGIN = 0x1000, LENGTH = 0x100
# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/at6.s -o %t.o
# RUN: ld.lld %t.o --script %s -o %t
-# RUN: llvm-readelf -sections -program-headers %t | FileCheck %s
+# RUN: llvm-readelf -S -l %t | FileCheck %s
MEMORY {
FLASH : ORIGIN = 0x08000000, LENGTH = 0x100
# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/at7.s -o %t.o
# RUN: ld.lld %t.o --script %s -o %t
-# RUN: llvm-readelf -sections -program-headers %t | FileCheck %s
+# RUN: llvm-readelf -S -l %t | FileCheck %s
MEMORY {
RAM : ORIGIN = 0x20000000, LENGTH = 0x200
# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/at8.s -o %t.o
# RUN: ld.lld %t.o --script %s -o %t
-# RUN: llvm-readelf -sections -program-headers %t | FileCheck %s
+# RUN: llvm-readelf -S -l %t | FileCheck %s
MEMORY {
FLASH : ORIGIN = 0x08000000, LENGTH = 0x100
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %t.s -o %t.o
# RUN: ld.lld -o %t %t.o --script %s
-# RUN: llvm-readelf -sections -program-headers %t | FileCheck %s
+# RUN: llvm-readelf -S -l %t | FileCheck %s
## Check that we can produce output without errors,
## and .foo section has proper size.
# RUN: .text : AT (0x4200) { *(.text) } \
# RUN: }" > %t.script
# RUN: ld.lld %t.o --script %t.script -o %t
-# RUN: llvm-readelf -program-headers %t | FileCheck %s
+# RUN: llvm-readelf -l %t | FileCheck %s
# Test that we put the header in the first PT_LOAD. We used to create a PT_LOAD
# just for it and it would have a different virtual to physical address delta.
# RUN: /DISCARD/ : { *(.comment) } \
# RUN: }" > %t.script
# RUN: ld.lld -o %t --script %t.script %t.o
-# RUN: llvm-readelf -S -symbols %t | FileCheck %s
+# RUN: llvm-readelf -S -s %t | FileCheck %s
# CHECK: .bss NOBITS ffffffff80002000 002008 000002 00 WA 0 0 4096
# CHECK: ffffffff80003000 0 NOTYPE GLOBAL DEFAULT 3 _end
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
# RUN: echo "TARGET(binary) INPUT(\"%t.o\") TARGET(elf64-x86-64) INPUT(\"%t.o\")" > %t.script
# RUN: ld.lld --script %t.script -o %t.exe
-# RUN: llvm-readelf -symbols %t.exe | FileCheck %s
+# RUN: llvm-readelf -s %t.exe | FileCheck %s
# CHECK: _binary_
# CHECK: foobar
// RUN: llvm-mc -filetype=obj -triple=powerpc64le-unknown-linux %s -o %t.o
// RUN: ld.lld -shared %t.o -o %t.so
-// RUN: llvm-readelf -dyn-relocations %t.so | FileCheck %s -allow-empty --implicit-check-not={{.}}
+// RUN: llvm-readelf --dyn-relocations %t.so | FileCheck %s -allow-empty --implicit-check-not={{.}}
// RUN: llvm-mc -filetype=obj -triple=powerpc64-unknown-linux %s -o %t.o
// RUN: ld.lld -shared %t.o -o %t.so
-// RUN: llvm-readelf -dyn-relocations %t.so | FileCheck %s -allow-empty --implicit-check-not={{.}}
+// RUN: llvm-readelf --dyn-relocations %t.so | FileCheck %s -allow-empty --implicit-check-not={{.}}
.text
.abiversion 2
## 4) .symtab_shndx has size equal to
## (sizeof(.symtab) / entsize(.symtab)) * entsize(.symtab_shndx) = 0x4 * 0x180078 / 0x18 == 0x040014
-# RUN: llvm-readelf -sections -symbols %t | FileCheck %s
+# RUN: llvm-readelf -S -s %t | FileCheck %s
# [Nr] Name Type Address Off Size ES Flg Lk Inf Al
# CHECK: [65539] .note.GNU-stack PROGBITS 0000000000000000 000040 000000 00 0 0 1
# CHECK: [65540] .symtab SYMTAB 0000000000000000 000040 180078 18 65543 65539 8
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux - -o %t2.o
# RUN: ld.lld %t2.o -o %t2.so -shared
# RUN: ld.lld %t1.o --as-needed --gc-sections %t2.so -o %t
-# RUN: llvm-readelf -dynamic-table -dyn-symbols %t | FileCheck %s
+# RUN: llvm-readelf -d --dyn-syms %t | FileCheck %s
# The crt files on linux have a weak reference to __cxa_finalize. It
# is important that a weak undefined reference is produced. Like