From b3f2172ce4bc7c8956ac5d78187f9cdb7a998a03 Mon Sep 17 00:00:00 2001 From: Han Shen Date: Thu, 10 May 2018 22:32:39 +0000 Subject: [PATCH] Fix test cases failure caused by revision 332038. The previous CL changes the order of output sections, which causes address changes in test cases. Review: https://reviews.llvm.org/D46730 llvm-svn: 332054 --- lld/test/ELF/aarch64-copy.s | 2 +- lld/test/ELF/arm-copy.s | 2 +- lld/test/ELF/relocation.s | 4 ++-- lld/test/ELF/version-script-extern.s | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lld/test/ELF/aarch64-copy.s b/lld/test/ELF/aarch64-copy.s index 9196aa0..3e19278 100644 --- a/lld/test/ELF/aarch64-copy.s +++ b/lld/test/ELF/aarch64-copy.s @@ -90,4 +90,4 @@ _start: // RODATA: Contents of section .rodata: // S(z) = 0x40014 -// RODATA-NEXT: 102ab 14000400 +// RODATA-NEXT: 10282 14000400 diff --git a/lld/test/ELF/arm-copy.s b/lld/test/ELF/arm-copy.s index c93c18e..70f7219 100644 --- a/lld/test/ELF/arm-copy.s +++ b/lld/test/ELF/arm-copy.s @@ -78,4 +78,4 @@ _start: // RODATA: Contents of section .rodata: // S(z) = 0x13004 -// RODATA-NEXT: 101c1 04300100 +// RODATA-NEXT: 10198 04300100 diff --git a/lld/test/ELF/relocation.s b/lld/test/ELF/relocation.s index 5f49c32..7ac9ca3 100644 --- a/lld/test/ELF/relocation.s +++ b/lld/test/ELF/relocation.s @@ -113,7 +113,7 @@ R_X86_64_64: .quad R_X86_64_64 // CHECK: Contents of section .R_X86_64_64: -// CHECK-NEXT: 2002b0 b0022000 00000000 +// CHECK-NEXT: 200287 87022000 00000000 .section .R_X86_64_GOTPCREL,"a",@progbits .global R_X86_64_GOTPCREL @@ -123,7 +123,7 @@ R_X86_64_GOTPCREL: // 0x2020F8 - 0x2001D8 = 7952 // 7952 = 0x101f0000 in little endian // CHECK: Contents of section .R_X86_64_GOTPCREL -// CHECK-NEXT: 2002b8 382e0000 +// CHECK-NEXT: 20028f 612e0000 .section .R_X86_64_GOT32,"a",@progbits .global R_X86_64_GOT32 diff --git a/lld/test/ELF/version-script-extern.s b/lld/test/ELF/version-script-extern.s index 7b540c0..edfd700 100644 --- a/lld/test/ELF/version-script-extern.s +++ b/lld/test/ELF/version-script-extern.s @@ -68,8 +68,8 @@ # DSO-NEXT: ] # DSO-NEXT: Version symbols { # DSO-NEXT: Section Name: .gnu.version -# DSO-NEXT: Address: 0x32A -# DSO-NEXT: Offset: 0x32A +# DSO-NEXT: Address: 0x300 +# DSO-NEXT: Offset: 0x300 # DSO-NEXT: Link: 1 # DSO-NEXT: Symbols [ # DSO-NEXT: Symbol { -- 2.7.4