[LLD][ELF] - Update tests after r352366.

r352366 "[llvm-objdump] - Print LMAs when dumping section headers." changed the format of
llvm-objdump output. We have to update the LLD tests.

llvm-svn: 352372
This commit is contained in:
George Rimar 2019-01-28 15:03:47 +00:00
parent b2702d6a45
commit 8bb8433a1a
28 changed files with 31 additions and 31 deletions

View File

@ -4,7 +4,7 @@
# RUN: llvm-objdump -t -section-headers %t2 | FileCheck %s
# CHECK: Sections:
# CHECK: Idx Name Size Address Type
# CHECK: Idx Name Size VMA Type
# CHECK: 2 .bss 00000004 0000000000201000 BSS
# CHECK: SYMBOL TABLE:
# CHECK: 0000000000201000 .bss 00000000 __bss_start

View File

@ -12,7 +12,7 @@
## 3) Address of _end is different from _edata because of 2.
## 4) Addresses of _edata == edata, _end == end and _etext == etext.
# CHECK: Sections:
# CHECK-NEXT: Idx Name Size Address Type
# CHECK-NEXT: Idx Name Size VMA Type
# CHECK-NEXT: 0 00000000 0000000000000000
# CHECK-NEXT: 1 .text 00000001 0000000000201000 TEXT
# CHECK-NEXT: 2 .data 00000002 0000000000202000 DATA

View File

@ -7,7 +7,7 @@
## Check we produce DT_PLTREL/DT_JMPREL/DT_PLTGOT and DT_PLTRELSZ tags
## when there are no other relocations except R_*_IRELATIVE.
# CHECK: Name Size Address
# CHECK: Name Size VMA
# CHECK: .rela.plt 00000030 0000000000000210
# CHECK: .got.plt 00000010 0000000000002000

View File

@ -16,7 +16,7 @@ _start:
# CHECK: _start:
# CHECK-NEXT: 401001: 8b 1d {{.*}} movl 4202496, %ebx
# CHECK: Sections:
# CHECK: Name Size Address
# CHECK: Name Size VMA
# CHECK: .got 00000004 0000000000402000
# RUN: not ld.lld %t.o -o %t -pie 2>&1 | FileCheck %s --check-prefix=ERR

View File

@ -38,7 +38,7 @@
# CHECK-NEXT: 40100d: 8b 80 {{.*}} movl -4(%eax), %eax
# CHECK-NEXT: 401013: 8b 83 {{.*}} movl -4(%ebx), %eax
# CHECK: Sections:
# CHECK: Name Size Address
# CHECK: Name Size VMA
# CHECK: .got 00000004 0000000000403000
# RUN: not ld.lld %S/Inputs/i386-got32x-baseless.elf -o %t1 -pie 2>&1 | \

View File

@ -4,7 +4,7 @@
# RUN: llvm-objdump -section-headers %t1 | FileCheck %s
# CHECK: Sections:
# CHECK-NEXT: Idx Name Size Address Type
# CHECK-NEXT: Idx Name Size VMA Type
# CHECK-NEXT: 0 00000000 0000000000000000
# CHECK-NEXT: 1 .text 00000000 0000000000001000 TEXT
# CHECK-NEXT: 2 .foo.1 00000008 0000000000001000 DATA

View File

@ -13,7 +13,7 @@ SECTIONS {
}
# CHECK: Sections:
# CHECK-NEXT: Idx Name Size Address
# CHECK-NEXT: Idx Name Size VMA
# CHECK-NEXT: 0 00000000 0000000000000000
# CHECK-NEXT: 1 .dynsym 00000018 0000000000000190
# CHECK-NEXT: 2 .gnu.hash 0000001c 00000000000001a8

View File

@ -13,7 +13,7 @@ SECTIONS {
}
# CHECK: Sections:
# CHECK-NEXT: Idx Name Size Address Type
# CHECK-NEXT: Idx Name Size VMA Type
# CHECK-NEXT: 0 00000000 0000000000000000
# CHECK-NEXT: 1 .aaa 00000008 0000000000010000 DATA
# CHECK-NEXT: 2 .bbb 00000008 0000000000011000 DATA
@ -25,7 +25,7 @@ SECTIONS {
# RUN: llvm-objdump -section-headers %t4 | FileCheck %s -check-prefix=ZERO
# ZERO: Sections:
# ZERO-NEXT: Idx Name Size Address Type
# ZERO-NEXT: Idx Name Size VMA Type
# ZERO-NEXT: 0 00000000 0000000000000000
# ZERO-NEXT: 1 .aaa 00000008 0000000000000123 DATA

View File

@ -13,7 +13,7 @@ SECTIONS {
}
# CHECK: Sections:
# CHECK-NEXT: Idx Name Size Address Type
# CHECK-NEXT: Idx Name Size VMA Type
# CHECK-NEXT: 0 00000000 0000000000000000
# CHECK-NEXT: 1 .aaa 00000008 0000000000010000 DATA
# CHECK-NEXT: 2 .bbb 00000008 0000000000011000 DATA

View File

@ -11,7 +11,7 @@ SECTIONS {
}
# CHECK: Sections:
# CHECK-NEXT: Idx Name Size Address Type
# CHECK-NEXT: Idx Name Size VMA Type
# CHECK-NEXT: 0 00000000 0000000000000000
# CHECK-NEXT: 1 .aaa 00000008 0000000000010000 DATA
# CHECK-NEXT: 2 .bbb 00000008 0000000000011000 DATA

View File

@ -48,7 +48,7 @@ SECTIONS {
# CHECK-NEXT: }
# SECTIONS: Sections:
# SECTIONS-NEXT: Idx Name Size Address
# SECTIONS-NEXT: Idx Name Size VMA
# SECTIONS-NEXT: 0 00000000 0000000000000000
# SECTIONS-NEXT: 1 .foo1 00000008 0000000000002000
# SECTIONS-NEXT: 2 .foo2 00000008 0000000000002008

View File

@ -16,7 +16,7 @@ SECTIONS {
# RUN: ld.lld %t1.o -o %t1 --script %p/Inputs/insert-after.script --script %s
# RUN: llvm-objdump -section-headers %t1 | FileCheck %s
# CHECK: Sections:
# CHECK-NEXT: Idx Name Size Address Type
# CHECK-NEXT: Idx Name Size VMA Type
# CHECK-NEXT: 0 00000000 0000000000000000
# CHECK-NEXT: 1 .text 00000008 0000000000000000 TEXT
# CHECK-NEXT: 2 .foo.text 00000008 0000000000000008 TEXT

View File

@ -16,7 +16,7 @@ SECTIONS {
# RUN: ld.lld %t1.o -o %t1 --script %p/Inputs/insert-after.script --script %s
# RUN: llvm-objdump -section-headers %t1 | FileCheck %s
# CHECK: Sections:
# CHECK-NEXT: Idx Name Size Address Type
# CHECK-NEXT: Idx Name Size VMA Type
# CHECK-NEXT: 0 00000000 0000000000000000
# CHECK-NEXT: 1 .foo.text 00000008 0000000000000000 TEXT
# CHECK-NEXT: 2 .text 00000008 0000000000000008 TEXT

View File

@ -4,7 +4,7 @@
# RUN: echo ". = 0x150; . = 0x10; .text : {} }" >> %t.script
# RUN: ld.lld %t.o --script %t.script -o %t -shared
# RUN: llvm-objdump -section-headers %t | FileCheck %s
# CHECK: Name Size Address
# CHECK: Name Size VMA
# CHECK: .text 00000000 0000000000000010
# RUN: echo "SECTIONS { . = 0x20; . = ASSERT(0x1, "foo"); }" > %t2.script

View File

@ -14,7 +14,7 @@
## Check we place .text into first defined memory region with appropriate flags.
# CHECK: Sections:
# CHECK: Idx Name Size Address
# CHECK: Idx Name Size VMA
# CHECK: 0 00000000 0000000000000000
# CHECK: 1 .text 00000001 0000000000001000

View File

@ -8,7 +8,7 @@
# RUN: llvm-objdump -section-headers %t1 | FileCheck %s
# CHECK: Sections:
# CHECK-NEXT: Idx Name Size Address Type
# CHECK-NEXT: Idx Name Size VMA Type
# CHECK: .aaa 00000010 0000000000002000 DATA
@ -20,7 +20,7 @@
# RUN: llvm-objdump -section-headers %t2 | FileCheck %s --check-prefix=REV
# REV: Sections:
# REV-NEXT: Idx Name Size Address Type
# REV-NEXT: Idx Name Size VMA Type
# REV: .aaa 00000010 0000000000001000 DATA
.global _start

View File

@ -9,7 +9,7 @@ SECTIONS {
}
# CHECK: Sections:
# CHECK-NEXT: Idx Name Size Address
# CHECK-NEXT: Idx Name Size VMA
# CHECK-NEXT: 0 00000000 0000000000000000
# CHECK-NEXT: 1 .dynsym 00000030 0000000000001000
# CHECK: 5 .text 00000000 000000000000106c

View File

@ -18,7 +18,7 @@
# RUN: llvm-objdump -section-headers %t2 | FileCheck %s
# CHECK: Sections:
# CHECK-NEXT: Idx Name Size Address
# CHECK-NEXT: Idx Name Size VMA
# CHECK-NEXT: 0 00000000 0000000000000000
# CHECK-NEXT: 1 .hex1 00000008 0000000000001000
# CHECK-NEXT: 2 .hex2 00000008 0000000000001010
@ -67,7 +67,7 @@
# RUN: ld.lld %t --script %t8.script -o %t6
# RUN: llvm-objdump -section-headers %t6 | FileCheck -check-prefix=SECADDR %s
# SECADDR: Sections:
# SECADDR-NEXT: Idx Name Size Address
# SECADDR-NEXT: Idx Name Size VMA
# SECADDR-NEXT: 0 00000000 0000000000000000
# SECADDR-NEXT: 1 .hex1 00000008 0000000000000400
# SECADDR-NEXT: 2 .hex2 00000008 0000000000000500

View File

@ -22,7 +22,7 @@
# must take responsibility to make sure this does not happen.
# CHECK: Sections:
# CHECK-NEXT: Idx Name Size Address Type
# CHECK-NEXT: Idx Name Size VMA Type
# CHECK-NEXT: 0 00000000 0000000000000000
# CHECK-NEXT: 1 .data 00000008 0000000000004000
# CHECK-NEXT: 2 .dynamic 00000060 0000000000004008

View File

@ -5,7 +5,7 @@
# RUN: ld.lld -o %t1 --script %t.script %t
# RUN: llvm-objdump -section-headers %t1 | FileCheck %s
# CHECK: Sections:
# CHECK-NEXT: Idx Name Size Address Type
# CHECK-NEXT: Idx Name Size VMA Type
# CHECK-NOT: .foo
# CHECK: .foo 00000008 {{.*}} DATA
# CHECK-NOT: .foo

View File

@ -8,7 +8,7 @@
# RUN: ld.lld -T %t.script -o %t.so %t.o --gc-sections
# RUN: llvm-objdump -h %t.so | FileCheck %s
# CHECK: Idx Name Size Address Type
# CHECK: Idx Name Size VMA Type
# CHECK-NEXT: 0
# CHECK-NEXT: used_in_reloc
# CHECK-NEXT: .text

View File

@ -12,7 +12,7 @@ SECTIONS {
}
# CHECK: Sections:
# CHECK-NEXT: Idx Name Size Address
# CHECK-NEXT: Idx Name Size VMA
# CHECK-NEXT: 0 00000000 0000000000000000
# CHECK: abc 00000000 [[ADDR:[0-9a-f]*]]
# CHECK: bar 00000000 0000000000001000

View File

@ -5,7 +5,7 @@
# RUN: ld.lld -o %t1 --script %t.script %t
# RUN: llvm-objdump -section-headers %t1 | FileCheck %s
# CHECK: Sections:
# CHECK-NEXT: Idx Name Size Address
# CHECK-NEXT: Idx Name Size VMA
# CHECK-NEXT: 0 00000000 0000000000000000
# CHECK-NEXT: 1 .foo 00000004 0000000000000000
# CHECK-NEXT: 2 .boo 00000004 0000000000000004

View File

@ -25,7 +25,7 @@
// There should be 2 reserved doublewords before the first entry. The dynamic
// linker will fill those in with the address of the resolver entry point and
// the dynamic object identifier.
// DIS: Idx Name Size Address Type
// DIS: Idx Name Size VMA Type
// DIS: .plt 00000018 0000000010030000 BSS
// DT_PLTGOT should point to the start of the .plt section.

View File

@ -53,7 +53,7 @@
# CHECK-NEXT: }
# SECTION: Sections:
# SECTION: Idx Name Size Address Type
# SECTION: Idx Name Size VMA Type
# SECTION: 0 00000000 0000000000000000
# SECTION: 1 .text 00000056 0000000000000000 TEXT
# SECTION: 2 .rela.text 00000090 0000000000000000

View File

@ -7,7 +7,7 @@
# RUN: llvm-readobj --program-headers %t | FileCheck --check-prefix=NOPHDRS %s
# NORELRO: Sections:
# NORELRO-NEXT: Idx Name Size Address Type
# NORELRO-NEXT: Idx Name Size VMA Type
# NORELRO-NEXT: 0 00000000 0000000000000000
# NORELRO-NEXT: 1 .dynsym 00000048 0000000000200120
# NORELRO-NEXT: 2 .hash 00000020 0000000000200168

View File

@ -5,7 +5,7 @@
# RUN: llvm-objdump -section-headers %t1 | FileCheck %s
# CHECK: Sections:
# CHECK-NEXT: Idx Name Size Address Type
# CHECK-NEXT: Idx Name Size VMA Type
# CHECK-NEXT: 0 00000000 0000000000000000
# CHECK-NEXT: 1 .text 00000001 0000000000000010 TEXT
# CHECK-NEXT: 2 .data 00000004 0000000000000020 DATA

View File

@ -5,7 +5,7 @@
# RUN: llvm-objdump -section-headers %t | FileCheck %s
# CHECK: Sections:
# CHECK-NEXT: Idx Name Size Address Type
# CHECK-NEXT: Idx Name Size VMA Type
# CHECK-NEXT: 0 00000000 0000000000000000
# CHECK-NEXT: 1 .text 00000001 0000000000100000 TEXT
# CHECK-NEXT: 2 .data 00000004 0000000000110000 DATA